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>
24 lines
343 B
JavaScript
24 lines
343 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'doughnut',
|
|
data: {
|
|
datasets: [
|
|
{
|
|
data: [0, 2, 4, null, 6, 8]
|
|
},
|
|
{
|
|
data: [5, 1, 6, 2, null, 9]
|
|
}
|
|
]
|
|
},
|
|
options: {
|
|
plugins: {
|
|
legend: false,
|
|
colors: {
|
|
enabled: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|