When i am using two different lines in stacked format and both have different time sets.
I am facing two issue : -
Plz help me
I think this is currently working as expected. @simonbrunel @benmccann thoughts?
@etimberg it doesn't look right to me that it's plotting a value of 1.0 for June 7. Both datasets have a value of 0 for that date, so I would expect it to plot a 0. Why do you think it should plot a 1.0 for that date?
Hi @etimberg,
The 2nd issue , how to display both value at the selected point on mouse hover. Or when mouse hover on line.
( Tooltips : car :0, bike :0)
Hello guys I have this example of weird behavior, is something wrong with my data or it is a bug?
Is there an option that can sort it out?
https://jsfiddle.net/zs2xy91p/3/
or this
Hi @etimberg @benmccann @simonbrunel
I'm in middle of the project and really stuck here. if you will give me time estimate regarding the issue then very helpful for me.
Waiting for your reply.....
If you really want it fixed you should send a PR. You might be waiting indefinitely if waiting for someone else to fix it
@benmccann Can we diagnose it better first, though?
I'm having this issue:
I have a non-categorical, yAxis stacked line chart with dates in the xAxis.
The stacking is happening as if the line chart was categorical, as in: the first value on each series is stacked against the first value of every series, regardless of the xAxis value being the same or not.
Is this what you're experiencing as well?
The impact for me is that I cannot enable stacking on https://github.com/marianogappa/chart, which uses Chart.js for the rendering.
The issue I'm facing is exactly what @marianogappa described:
I'm also using a yAxis stacked line chart with dates in the xAxis (and labels to define the correct min and max dates). The x values of the different datasets data points are not always identical. Meaning mychart.data.datasets[X].data[0].x != mychart.data.datasets[Y].data[0].x. But the stacking is done on identical indices of the dataset arrays without regard to the different x (date) values.
I now also found a related issue in stacked bar charts. It's a bit hard to explain, so please take a look at https://jsfiddle.net/r8415uq3/. The issue get's obvious when hiding one of the datasets (clicking on the label)
I've just discovered that the error does not just happen if the datasets do not start with the same date as x-value at index 0. The y values are stacked exclusively on the basis of the dataset array indices, the x value is always ignored.
Issue 1 was fixed by #6576. Note that reverse or unordered data does not work well (does not fill)
https://codepen.io/kurkle/pen/dyPVEvq?editors=0010
Updating the fiddle from @kurkle above https://codepen.io/etimberg/pen/pogJGKq?editors=0010
I'm not sure what option 2 refers to at this point and this is quite old. Going to close as stale.
Most helpful comment
@benmccann Can we diagnose it better first, though?
I'm having this issue:
I have a non-categorical, yAxis stacked line chart with dates in the xAxis.
The stacking is happening as if the line chart was categorical, as in: the first value on each series is stacked against the first value of every series, regardless of the xAxis value being the same or not.
Is this what you're experiencing as well?
The impact for me is that I cannot enable stacking on https://github.com/marianogappa/chart, which uses Chart.js for the rendering.