Is it anyway to disable interpolation in line chart
using chartjs
? I just red entire documentation and didnt find anything about this.
@UPDATE
lineTension: 0
is the thing I was looking for.
(Thanks @tektiv for the answer)
You need to edit the lineTension
property (check the documentation), stored in the dataset :
datasets: [{
label: "My First dataset",
lineTension: 0,
data: [/* ... */],
// ...
}]
Setting it to 0
will prevent the interpolation from working.
You can see the result on this jsFiddle, and here is a screenshot :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With