mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Introduces a colors plugin that provides a color palette Co-authored-by: Dan Onoshko <danon0404@gmail.com> Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
35 lines
554 B
JavaScript
35 lines
554 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'radar',
|
|
data: {
|
|
labels: [0, 1, 2, 3, 4, 5],
|
|
datasets: [
|
|
{
|
|
data: [0, 5, 10, null, -10, -5]
|
|
},
|
|
{
|
|
data: [4, -5, -10, null, 10, 5]
|
|
}
|
|
]
|
|
},
|
|
options: {
|
|
scales: {
|
|
r: {
|
|
ticks: {
|
|
display: false
|
|
},
|
|
pointLabels: {
|
|
display: false,
|
|
}
|
|
}
|
|
},
|
|
plugins: {
|
|
legend: false,
|
|
colors: {
|
|
enabled: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|