Home forums Using CanvasJS Highlight area of chart

This topic contains 3 replies, has 2 voices, and was last updated by  Vishwas R 4 months, 2 weeks ago.

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

    Hi, I cannot see if it is possible to highlight a section of an area chart (almost like when you do a zoom) similar to the image below.

    highligted area chart example

    The area chart works in conjunction with a map and when a portion of the route is highlighted or selected, I want to be able to show the corresponding section of the area chart. This technique is used by various mapping applications to show the elevation segments that are being examined in detail and I would like to carry over the same convention to the work I am doing.

    #25069

    @smithfx,

    You can use stripLines to highlight the area according to your requirements.


    Vishwas R
    Team CanvasJS

    #25071

    Vishwas,

    Thanks the reply. I didn’t see that option or didn’t make the connection.

    This will do quite nicely.

    Matt.

    #25084

    @smithfx,

    You can add stripline to the chart based on mousedown and mouseup events as shown in this JSFiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.