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

Function lastTick

test/specs/core.scale.tests.js:59–63  ·  view source on GitHub ↗
(chart)

Source from the content-addressed store, hash-verified

57 }
58
59 function lastTick(chart) {
60 var xAxis = chart.scales.x;
61 var ticks = xAxis.getTicks();
62 return ticks[ticks.length - 1];
63 }
64
65 it('should use autoSkip amount of ticks when maxTicksLimit is set to a larger number as autoSkip calculation', function() {
66 var chart = getChartBigData(300);

Callers 1

Calls 1

getTicksMethod · 0.65

Tested by

no test coverage detected