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

Function makeChart

test/specs/plugin.legend.tests.js:506–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

504
505 it('should not throw when the label options are missing', function() {
506 var makeChart = function() {
507 window.acquireChart({
508 type: 'bar',
509 data: {
510 datasets: [{
511 label: 'dataset1',
512 backgroundColor: '#f31',
513 borderCapStyle: 'butt',
514 borderDash: [2, 2],
515 borderDashOffset: 5.5,
516 data: []
517 }],
518 labels: []
519 },
520 options: {
521 plugins: {
522 legend: {
523 labels: false,
524 }
525 }
526 }
527 });
528 };
529 expect(makeChart).not.toThrow();
530 });
531

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected