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

Function createChart

test/specs/core.scale.tests.js:485–508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

483
484 it('should create the chart with custom scale ids without axis or position options', function() {
485 function createChart() {
486 return window.acquireChart({
487 type: 'scatter',
488 data: {
489 datasets: [{
490 data: [{x: 0, y: 0}, {x: 1, y: 1}, {x: 2, y: 2}],
491 xAxisID: 'customIDx',
492 yAxisID: 'customIDy'
493 }]
494 },
495 options: {
496 scales: {
497 customIDx: {
498 type: 'linear',
499 display: false
500 },
501 customIDy: {
502 type: 'linear',
503 display: false
504 }
505 }
506 }
507 });
508 }
509
510 expect(createChart).not.toThrow();
511 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected