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>
33 lines
505 B
JavaScript
33 lines
505 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'bubble',
|
|
data: {
|
|
datasets: [{
|
|
data: [{x: 12, y: 54, r: 22.4}]
|
|
}, {
|
|
data: [{x: 18, y: 38, r: 25}]
|
|
}]
|
|
},
|
|
options: {
|
|
scales: {
|
|
x: {
|
|
ticks: {
|
|
display: false,
|
|
}
|
|
},
|
|
y: {
|
|
ticks: {
|
|
display: false,
|
|
}
|
|
}
|
|
},
|
|
plugins: {
|
|
legend: false,
|
|
colors: {
|
|
enabled: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|