mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
021561072b
Disabling all plugins when options.plugins = false
37 lines
588 B
JavaScript
37 lines
588 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'polarArea',
|
|
data: {
|
|
labels: [0, 1, 2, 3, 4, 5],
|
|
datasets: [
|
|
{
|
|
// option in element (fallback)
|
|
data: [0, 2, 4, null, 6, 8],
|
|
}
|
|
]
|
|
},
|
|
options: {
|
|
elements: {
|
|
arc: {
|
|
backgroundColor: 'transparent',
|
|
borderColor: '#ff00ff',
|
|
borderWidth: 8,
|
|
borderAlign: function(ctx) {
|
|
var value = ctx.dataset.data[ctx.dataIndex] || 0;
|
|
return value > 4 ? 'center' : 'inner';
|
|
}
|
|
}
|
|
},
|
|
scale: {
|
|
display: false
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
canvas: {
|
|
height: 256,
|
|
width: 512
|
|
}
|
|
}
|
|
};
|