mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
3b76488373
* Refine logarithmic scaling / tick generation * Disable autoSkip on reverese test * Reduce ticks, fix min
32 lines
617 B
JavaScript
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
|
|
}
|
|
};
|