Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 362 Bytes

line_point_color.md

File metadata and controls

16 lines (13 loc) · 362 Bytes

Set line chart point color

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