0👍
I don’t think you can connect points from different datasets into a single line. The only way I can think to do it is to simply include each of the data values into a single data set shown below
const data = {
labels: ['January', 'February', 'March'],
datasets: [
{
label: 'My First dataset',
backgroundColor: 'rgba(255,99,132,0.2)',
borderColor: 'rgba(255,99,132,1)',
borderWidth: 1,
hoverBackgroundColor: 'rgba(255,99,132,0.4)',
hoverBorderColor: 'rgba(255,99,132,1)',
data: [65, 86, 95]
}
}
If you wouldn’t mind explaining why you need these in separate datasets, I might be able to help further
- Chartjs-How to make chart which has both positive and negative value, starts with 0 – x axis
- Chartjs-Chart.js multi line chart that has different labels
Source:stackexchange.com