Different borderDash from datapoint to datapoint.
A function is needed that calculates the length of the line between 2 data points, so it can calculate de borderDash between points by using a single line.
This is usefull for charts with a forecast and charts with gaps in the data (to be filled in).
You don't want a second dataset to 'hack' dashed lines into the chart. It gives awefull bar charts with 2 datasets when you change chart type.
If you can somehow calculate the length of a line between 2 points, you can calculate how many dash/dots/solid etc you need.
borderDash: [170, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 130, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
This is probably easier for line charts with straight lines then with curves.
Feature Proposal
Different borderDash from datapoint to datapoint.
A function is needed that calculates the length of the line between 2 data points, so it can calculate de borderDash between points by using a single line.
Feature Use Case
https://codepen.io/hedva/pen/BajQEwm
This is usefull for charts with a forecast and charts with gaps in the data (to be filled in).
You don't want a second dataset to 'hack' dashed lines into the chart. It gives awefull bar charts with 2 datasets when you change chart type.
Possible Implementation
If you can somehow calculate the length of a line between 2 points, you can calculate how many dash/dots/solid etc you need.
This should be calculated somehow by someone with big brain
https://codepen.io/hedva/pen/BajQEwm
This is probably easier for line charts with straight lines then with curves.