mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
32 lines
463 B
JavaScript
32 lines
463 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'pie',
|
||
|
data: {
|
||
|
labels: ['aaaa', 'bb', 'c'],
|
||
|
datasets: [
|
||
|
{
|
||
|
data: [1, 2, 3]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
options: {
|
||
|
plugins: {
|
||
|
legend: {
|
||
|
position: 'right',
|
||
|
rtl: true,
|
||
|
labels: {
|
||
|
textAlign: 'left'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
spriteText: true,
|
||
|
canvas: {
|
||
|
width: 256,
|
||
|
height: 256
|
||
|
}
|
||
|
}
|
||
|
};
|