Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Hover Over Stack Area Chart Areas Not Just Line Points
posted

I have a stacked area chart showing hourly usage (picture available below).

When the user holds their cursor over a data line point, I have it set to call the "DataItemOver" event.

When this is called, a tooltip pops up showing relevant data to that point.

I would like to be able to do this for the chart's stacked area's as well.

For instance, holding my mouse over a chart area and showing the tooltip as well as being able to hold it over the individual points.

Is there a mouse over event I'm missing here or is this possible some other way?

 

Thank you all for your help and replies,

Nick Funk

Parents
No Data
Reply
  • 26458
    Offline posted

    Unfortunately, the chart doesn't support mouse events for non-rectangular polygons. I can't think of a good workaround, but in theory you can use use chart's mousemove event to store the mouse location, then use chart's FillSceneGraph event to loop through each Polyline's DataPoints collection to determine if the mouse is positioned within those data points. And if so, show a tooltip using a tooltip control.

Children
No Data