mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 13:19:07 +02:00
30 lines
392 B
JavaScript
30 lines
392 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
datasets: [{
|
||
|
data: [1, 2, 3],
|
||
|
}],
|
||
|
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
|
||
|
},
|
||
|
options: {
|
||
|
legend: false,
|
||
|
title: false,
|
||
|
scales: {
|
||
|
x: {
|
||
|
ticks: {
|
||
|
crossAlignment: 'far',
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
spriteText: true,
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 512
|
||
|
}
|
||
|
}
|
||
|
};
|