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>
38 lines
651 B
JavaScript
38 lines
651 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'scatter',
|
|
data: {
|
|
datasets: [{
|
|
data: [{x: 10, y: 15}, {x: 15, y: 10}],
|
|
pointRadius: 10,
|
|
showLine: true,
|
|
label: 'dataset1'
|
|
}, {
|
|
data: [{x: 20, y: 45}, {x: 5, y: 15}],
|
|
pointRadius: 20,
|
|
label: 'dataset2'
|
|
}],
|
|
},
|
|
options: {
|
|
scales: {
|
|
x: {
|
|
ticks: {
|
|
display: false,
|
|
}
|
|
},
|
|
y: {
|
|
ticks: {
|
|
display: false,
|
|
}
|
|
}
|
|
},
|
|
plugins: {
|
|
legend: false,
|
|
colors: {
|
|
enabled: true
|
|
},
|
|
}
|
|
}
|
|
}
|
|
};
|