Chart.js/test/fixtures/core.layouts/long-labels.js
2021-02-10 08:21:39 -05:00

37 lines
650 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: {
plugins: {
legend: false
},
scales: {
x: {
type: 'category',
ticks: {
maxRotation: 0,
autoSkip: false
}
},
y: {
type: 'linear',
position: 'right'
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 150,
width: 512
}
}
};