0👍
If you were to change your fake data function to be:
function generateFakeData() {
var res = [];
res[0] = 0;
res[200] = 200;
return res;
}
and add spanGaps: true
to the options, the line will be nice and straight, otherwise the way the pixels line up will make it look jagged as it tries to connect each one.
Not sure if this helps with your use case.
- Chartjs-How do you add Axis Labels on to both x-axis and y-axis? (Chart.js)
- Chartjs-How to change radius in rg-gauge-chart in Angular
Source:stackexchange.com