MCPcopy Create free account
hub / github.com/chartjs/Chart.js / _getSortedDatasetMetas

Method _getSortedDatasetMetas

src/core/core.controller.js:816–829  ·  view source on GitHub ↗

* @private

(filterVisible)

Source from the content-addressed store, hash-verified

814 * @private
815 */
816 _getSortedDatasetMetas(filterVisible) {
817 const metasets = this._sortedMetasets;
818 const result = [];
819 let i, ilen;
820
821 for (i = 0, ilen = metasets.length; i < ilen; ++i) {
822 const meta = metasets[i];
823 if (!filterVisible || meta.visible) {
824 result.push(meta);
825 }
826 }
827
828 return result;
829 }
830
831 /**
832 * Gets the visible dataset metas in drawing order

Callers 4

getGroupedMetasFunction · 0.80
getSortedDatasetIndicesFunction · 0.80
generateLabelsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected