9951 explained code solutions for 126 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