9951 explained code solutions for 126 technologies


chart.jsSet line chart point color


new Chart('chart', {
  // ...
  data: {
    datasets: [{ data: [1, 2, 3], backgroundColor: 'rgba(10, 194, 130, 0.5)' }]
  }
});ctrl + c
'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