new Chart('chart', {
// ...
data: {
datasets: [{ data: [1, 2, 3], backgroundColor: 'rgba(10, 194, 130, 0.5)' }]
}
});
- 'chart' - id of
canvas
element - data: [1, 2, 3] - example dataset
- backgroundColor: 'rgba(10, 194, 130, 0.5)' - set point color to semi-transparent green
group: line_style