Chart.js/test/fixtures/scale.logarithmic/large-values-small-range.js
Jukka Kurkela 3b76488373
Refine logarithmic scaling / tick generation (#9166)
* Refine logarithmic scaling / tick generation

* Disable autoSkip on reverese test

* Reduce ticks, fix min
2022-08-22 14:05:27 -04:00

32 lines
617 B
JavaScript

module.exports = {
config: {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
backgroundColor: 'red',
borderColor: 'red',
fill: false,
data: [5000.002, 5000.012, 5000.01, 5000.03, 5000.04, 5000.004, 5000.032]
}]
},
options: {
responsive: true,
scales: {
x: {
display: false,
},
y: {
type: 'logarithmic',
ticks: {
autoSkip: false
}
}
}
}
},
options: {
spriteText: true
}
};