Chart.js/test/fixtures/scale.linear/tick-count-min-max.js
Evert Timberg 1f6d0a244b
Linear Scale: Ability to specify a fixed number of ticks (#8643)
* Option to specify exact number of ticks on linear scale
* Fix issue description in tests
* Add tests for conditions where min/max do not align with niceMin/niceMax
* Refactor linear tick generation algorithm
* Add TS definitions
* Update docs
* Code review feedback + lint fixes
2021-03-15 08:49:25 -04:00

24 lines
369 B
JavaScript

module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/4234',
config: {
type: 'line',
options: {
scales: {
y: {
max: 50,
min: 0,
ticks: {
count: 21,
}
},
x: {
display: false
}
}
}
},
options: {
spriteText: true
}
};