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

Function createChart

test/specs/scale.linear.tests.js:1531–1552  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1529
1530 it('should not throw errors when chart size is negative', function() {
1531 function createChart() {
1532 return window.acquireChart({
1533 type: 'bar',
1534 data: {
1535 labels: [0, 1, 2, 3, 4, 5, 6, 7, '7+'],
1536 datasets: [{
1537 data: [29.05, 4, 15.69, 11.69, 2.84, 4, 0, 3.84, 4],
1538 }],
1539 },
1540 options: {
1541 plugins: false,
1542 layout: {
1543 padding: {top: 30, left: 1, right: 1, bottom: 1}
1544 }
1545 }
1546 }, {
1547 canvas: {
1548 height: 0,
1549 width: 0
1550 }
1551 });
1552 }
1553
1554 expect(createChart).not.toThrow();
1555 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected