mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 05:09:08 +02:00
cfd9c98575
* Option resolution with proxies * Remove plugin fallback to root options/defaults * Update core plugins, reduntant font fallbacks * Add some notes
35 lines
734 B
JavaScript
35 lines
734 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'radar',
|
|
data: {
|
|
labels: ['A', 'B', 'C', 'D', 'E']
|
|
},
|
|
options: {
|
|
responsive: false,
|
|
scales: {
|
|
r: {
|
|
gridLines: {
|
|
display: true,
|
|
color: function(context) {
|
|
return context.index % 2 === 0 ? 'green' : 'red';
|
|
},
|
|
lineWidth: function(context) {
|
|
return context.index % 2 === 0 ? 5 : 1;
|
|
},
|
|
},
|
|
angleLines: {
|
|
color: 'rgba(255, 255, 255, 0.5)',
|
|
lineWidth: 2
|
|
},
|
|
pointLabels: {
|
|
display: false
|
|
},
|
|
ticks: {
|
|
display: false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|