Everything i put in the options of the Line charts doesnt work

1👍

As you can read in the documents about the line chart, showLine is a dataset property. You use it directly in your dataset, not under the options property.

datasets: [{
  type: 'line',
  label: 'Line data',
  data: [randomData(), randomData(), randomData(), randomData(), randomData()],
  showLine: false
}]

Almost all other options you use in the options property. tension for Bezier curves is one of them.

options:  {
  elements: {
    line: {
      tension: 0
    }
  }
}

Leave a comment