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

Function createChart

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected