2808 explained code solutions for 75 technologies


chart.jsSet line chart line width


new Chart('chart', {
  // ...
  data: {
    datasets: [{ data: [1, 2, 3], borderWidth: 3 }]
  }
});ctrl + c
'chart'

id of canvas element

data: [1, 2, 3]

example dataset

borderWidth: 3

change line width to 3 pixels