mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
37 lines
542 B
JavaScript
37 lines
542 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'line',
|
|
data: {
|
|
datasets: [
|
|
{data: [10, 5, 0, 25, 78, -10]}
|
|
],
|
|
labels: ['tick1 is very long one', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6 is very long one']
|
|
},
|
|
options: {
|
|
legend: {
|
|
display: false
|
|
},
|
|
scales: {
|
|
x: {
|
|
type: 'category',
|
|
ticks: {
|
|
maxRotation: 0,
|
|
autoSkip: false
|
|
}
|
|
},
|
|
y: {
|
|
type: 'linear',
|
|
position: 'right'
|
|
}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true,
|
|
canvas: {
|
|
height: 150,
|
|
width: 512
|
|
}
|
|
}
|
|
};
|