0👍
It works if length of data arrays are equals.
You have 3 options:
- Decrease line chart data array length to 3 (same as bar charts).
- Extend bar charts data length to length of line chart data array (fill empty items with
null
), also for labels array. - Define new x-axis for line chart.
- Chartjs-How can I build a vertical line without going through my dots on my line graph? (charts.js)
- Chartjs-ChartJS Adding Different Lines for each column
Source:stackexchange.com