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

Function createChart

test/specs/plugin.decimation.tests.js:189–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 }
188
189 function createChart() {
190 return window.acquireChart({
191 type: 'line',
192 data: {
193 datasets: [{
194 data
195 }]
196 },
197 options: {
198 devicePixelRatio: 1.25,
199 parsing: false,
200 scales: {
201 x: {
202 type: 'linear'
203 }
204 },
205 plugins: {
206 decimation: {
207 enabled: true,
208 algorithm: 'lttb'
209 }
210 }
211 }
212 }, {
213 canvas: {width: 511, height: 511},
214 });
215 }
216 expect(createChart).not.toThrow();
217 });
218 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected