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.
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.
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.
You can use stripLines to highlight the area according to your requirements.
Thanks the reply. I didn’t see that option or didn’t make the connection.
This will do quite nicely.
You can add stripline to the chart based on mousedown and mouseup events as shown in this JSFiddle.
You must be logged in to reply to this topic.