mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
1f6d0a244b
* 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
24 lines
369 B
JavaScript
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
|
|
}
|
|
};
|