Home › forums › Using CanvasJS › Line chart, break line
This topic contains 3 replies, has 3 voices, and was last updated by Suyash Singh 1 year, 2 months ago.
I have a multi-series line chart, like the first chart here:
Multi Series Charts
And I have data series which are basically a group of data sets. That’s why I want to split a line in multiple lines. (For example: In the example above. The green line should be (X-values): 10-20-30-40 and the second green line should be the rest (50-60-70-80-90)
But I cannot split it to another data series, because than I have for example multiple entries in the legend. Hiding in the legend is also not a great solution, because legend.itemclick and the content of tooltips will getting much complexer.
Is there any other way, to do get this working?
Thanks in advance.
From your question, it looks like you are just looking for a break in the line. If so, you can insert empty dataPoints in between two set of datas as shown here. http://jsfiddle.net/canvasjs/rw563ftt/
If this does not answer your question, please post your data and explain in more detail on your requirement – any picture depicting the same would be of helpful.
that’s exactly the point.
Maybe an example or a hint can be added here:
We have just released v2.0 GA with axis scale-breaks, crosshair, 5 new chart types & several other features. Please refer the release blog for more information & let us know your feedback.
We have just released v2.0 Beta 1 with axis scale-breaks, new chart-types, crosshair, and new themes. Please refer to the release blog for more information. Do download the latest version from our download page and let us know your feedback.
You must be logged in to reply to this topic.