It would be lovely if we could retrieve the bezier curve that displays the values with something like const curve = chart.getLines()[0] and then request that it interpolate the values:
const points = curve.interpolate();
And that would fill in the null values.
Another thing that would be neat is if we could target segments for more labels and values.
For example in Inkscape we can select nodes and click add node to add more nodes.
It would be neat if ChartJS could do something like this adding empty labels and corresponding values for a segment where we are requesting that more values be added. So for example:
plot.addValues(startPoint, EndPoint, N);
That would add N more values between the start and end point and the labels would be empty strings.
Feature Proposal
It would be nice if chartjs could "Interpolate" null values provided in the data set.
This is a SO question for context.
So for example if we provide data like this:
It would be lovely if we could retrieve the bezier curve that displays the values with something like
const curve = chart.getLines()[0]
and then request that it interpolate the values:And that would fill in the
null
values.Another thing that would be neat is if we could target segments for more labels and values.
For example in Inkscape we can select nodes and click add node to add more nodes.
Here's a demo: https://youtu.be/dVjJfx2oc5w?t=173
It would be neat if ChartJS could do something like this adding empty labels and corresponding values for a segment where we are requesting that more values be added. So for example:
That would add N more values between the start and end point and the labels would be empty strings.
Possible Implementation
No response