mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
d315934513
Scriptable radialLinear options
33 lines
536 B
JavaScript
33 lines
536 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'radar',
|
|
data: {
|
|
labels: ['A', 'B', 'C', 'D', 'E']
|
|
},
|
|
options: {
|
|
responsive: false,
|
|
legend: false,
|
|
title: false,
|
|
scale: {
|
|
gridLines: {
|
|
display: true,
|
|
},
|
|
angleLines: {
|
|
color: function(context) {
|
|
return context.index % 2 === 0 ? 'red' : 'green';
|
|
},
|
|
lineWidth: function(context) {
|
|
return context.index % 2 === 0 ? 1 : 5;
|
|
},
|
|
},
|
|
pointLabels: {
|
|
display: false
|
|
},
|
|
ticks: {
|
|
display: false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|