Home forums Using CanvasJS Multi Date in a chart line

This topic contains 1 reply, has 2 voices, and was last updated by  Sunil Urs 3 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5223

    fredericg
    Participant

    Hi,

    Is it possible to display two parallel curves in the same chart (line) each with its own period (eg line 1 shows the data for week 1 and line 2 shows the data for the week 2). When i try i have one line on the left side and another on the right side (and not parallel).

    And, is-it can to display a vertical line in the chart When a mouse over a date in the AxisX?

    Regards

    #5224

    Sunil Urs
    Keymaster

    Frederic,

    Because the axis is DateTime type, values just run linearly and hence having two dataPoints with different date/time/value is not possible.

    I can suggest you a way of emulating it though.

    1. Use label to set same values (monday, tuesday, etc) for both the series so that they get drawn one on top of the other. Don’t set x values.
    2. Set toolTipContent for individual dataPoints – as required

    And, is-it can to display a vertical line in the chart When a mouse over a date in the AxisX?

    If you meant a vertical crosshair, it is not possible yet. Its planned for v1.5


    Sunil Urs

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

You must be logged in to reply to this topic.