mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 21:29:07 +02:00
42 lines
585 B
JavaScript
42 lines
585 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'polarArea',
|
||
|
data: {
|
||
|
labels: [0, 1, 2, 3, 4, 5],
|
||
|
datasets: [
|
||
|
{
|
||
|
// option in dataset
|
||
|
data: [0, 2, 4, null, 6, 8],
|
||
|
borderAlign: [
|
||
|
'center',
|
||
|
'inner',
|
||
|
'center',
|
||
|
'inner',
|
||
|
'center',
|
||
|
'inner',
|
||
|
],
|
||
|
borderColor: '#00ff00'
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
options: {
|
||
|
elements: {
|
||
|
arc: {
|
||
|
backgroundColor: 'transparent',
|
||
|
borderColor: '#ff0000',
|
||
|
borderWidth: 5,
|
||
|
}
|
||
|
},
|
||
|
scale: {
|
||
|
display: false
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 512
|
||
|
}
|
||
|
}
|
||
|
};
|