mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 05:09:08 +02:00
32 lines
427 B
JavaScript
32 lines
427 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
datasets: [{
|
||
|
data: [1, 2, 3],
|
||
|
}],
|
||
|
labels: ['Long long label 1', 'Label2', 'Label3']
|
||
|
},
|
||
|
options: {
|
||
|
indexAxis: 'y',
|
||
|
legend: false,
|
||
|
title: false,
|
||
|
scales: {
|
||
|
y: {
|
||
|
position: 'left',
|
||
|
ticks: {
|
||
|
crossAlignment: 'center',
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
spriteText: true,
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 512
|
||
|
}
|
||
|
}
|
||
|
};
|