Igor Lukanin 1c2f66a00e
Introduce Colors plugin (#10764)
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>
2022-10-21 08:21:08 -04:00

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
},
}
}
}
};