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

Method _getSortedDatasetMetas

src/core/core.controller.js:741–754  ·  view source on GitHub ↗

* @private

(filterVisible)

Source from the content-addressed store, hash-verified

739 * @private
740 */
741 _getSortedDatasetMetas(filterVisible) {
742 const metasets = this._sortedMetasets;
743 const result = [];
744 let i, ilen;
745
746 for (i = 0, ilen = metasets.length; i < ilen; ++i) {
747 const meta = metasets[i];
748 if (!filterVisible || meta.visible) {
749 result.push(meta);
750 }
751 }
752
753 return result;
754 }
755
756 /**
757 * 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