MCPcopy
hub / github.com/chartjs/Chart.js / _getSortedDatasetMetas

Method _getSortedDatasetMetas

src/core/core.controller.js:737–750  ·  view source on GitHub ↗

* @private

(filterVisible)

Source from the content-addressed store, hash-verified

735 * @private
736 */
737 _getSortedDatasetMetas(filterVisible) {
738 const metasets = this._sortedMetasets;
739 const result = [];
740 let i, ilen;
741
742 for (i = 0, ilen = metasets.length; i < ilen; ++i) {
743 const meta = metasets[i];
744 if (!filterVisible || meta.visible) {
745 result.push(meta);
746 }
747 }
748
749 return result;
750 }
751
752 /**
753 * Gets the visible dataset metas in drawing order

Callers 3

getSortedDatasetIndicesFunction · 0.80
generateLabelsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected