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

Function cleanDecimatedDataset

src/plugins/plugin.decimation.js:156–168  ·  view source on GitHub ↗
(dataset)

Source from the content-addressed store, hash-verified

154}
155
156function cleanDecimatedDataset(dataset) {
157 if (dataset._decimated) {
158 const data = dataset._data;
159 delete dataset._decimated;
160 delete dataset._data;
161 Object.defineProperty(dataset, 'data', {
162 configurable: true,
163 enumerable: true,
164 writable: true,
165 value: data,
166 });
167 }
168}
169
170function cleanDecimatedData(chart) {
171 chart.data.datasets.forEach((dataset) => {

Callers 2

cleanDecimatedDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected