MCPcopy
hub / github.com/chartjs/Chart.js / getChartBigData

Function getChartBigData

test/specs/core.scale.tests.js:37–57  ·  view source on GitHub ↗
(maxTicksLimit)

Source from the content-addressed store, hash-verified

35 }
36
37 function getChartBigData(maxTicksLimit) {
38 return window.acquireChart({
39 type: 'line',
40 data: {
41 labels: new Array(300).fill('red'),
42 datasets: [{
43 data: new Array(300).fill(5),
44 }]
45 },
46 options: {
47 scales: {
48 x: {
49 ticks: {
50 autoSkip: true,
51 maxTicksLimit
52 }
53 }
54 }
55 }
56 });
57 }
58
59 function lastTick(chart) {
60 var xAxis = chart.scales.x;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected