View Full Version : [FIXED] (Beta 1) Area Chart - AreaSeries SeriesItemOverEvent Issue

29 Dec 2011, 1:17 AM

The tool tips for an area series do not work well.

When you add a SeriesItemOverHandler to an AreaSeries, the index and value properties in the SeriesItemOverEvent returned have nearly constant values. There is no way to determine which time interval along a TimeAxis or category item along a CategoryAxis the event corresponds to, which makes it impossible to show anything of interest in the tool tip.

The index seems to correspond to an entire yField without regard to time interval or category item.

The value appears to be the sum of all of the time intervals or category items for the yField, which winds up being a rather large and meaningless number (please see attached AreaChartToolTipIssue.png).

If you run the attached ColumnChart_AreaSeriesToolTips.txt file and view the tool tips you will see what I mean.

In a Flex area chart you can add a stroke to an area series yField that runs along the very top of the area series yField fill. Everywhere a TimeAxis time interval or a CategoryAxis category item intersected the stroke a tool tip would appear. Tool tips did not appear in the fill area of an AreaSeries yField.

Perhaps we can do something similar here. Everywhere a TimeAxis time interval or a CategoryAxis category item intersects the top of an area series yField fill, show a tool tip if one is setup, etc.

I have not worked with the line series yet, but I noticed on the demo site in the mixed series chart example that a line can have a fill. I imagine that if tool tips where setup in this example they would only show on the line at the intersection points.

Hope this helps.
John Lewis

29 Dec 2011, 4:30 PM

I got around to working with the line series and found that by using the fill and fill renderer options along with configuring tool tips that I could get the same functionality that I had in Flex area charts.

So, I do not really need any changes to the area series class as I can use the line series class instead for area charts.

Nice work on the line series class!

John Lewis

27 Jan 2012, 2:25 PM
The default AreaSeries highlighting and default tooltip values have been completely revamped to be more accurate. This change is currently in SVN and will be in the next release.
Glad to hear you found a workaround in LineSeries. We have worked hard to make the series as easily customized as possible.