Home forums Using CanvasJS Line chart, break line

This topic contains 3 replies, has 3 voices, and was last updated by  Suyash Singh 1 month, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9643

    schuerle
    Member

    Hey everyone,

    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.

    Best regards

    #9650

    Sanjoy
    Moderator

    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.

    #9651

    schuerle
    Member

    Hey Sanjoy,

    that’s exactly the point.
    Thank you!

    Maybe an example or a hint can be added here:

    Line Chart

    Best regards

    #17180

    Suyash Singh
    Moderator

    @schuerle,

    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.
    ___
    Suyash Singh
    Team CanvasJS

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.