tags:

views:

1897

answers:

4

I'm using a graph with a <mx:LineSeries>. When I hover over the line it shows the data points as little circular points. How can I get these points to display all of the time?

+1  A: 

I think what you are looking for is:

showDataTips="true"
Ryan Guill
unfortunately this only works when hovering
Shawn Simon
+2  A: 

If you're using <mx:LineSeries>, then set the following property:

itemRenderer="mx.charts.renderers.CircleItemRenderer"

When constructing a LineSeries in ActionScript, then set the itemRenderer style on your LineSeries object before adding to the series array:

lineSeries.setStyle("itemRenderer", new ClassFactory(mx.charts.renderers.CircleItemRenderer));

Don't forget to...

import mx.charts.renderers.*;

You don't have to stick to the circle item renderer either, you can use any of the item renderers found in the renderers package.

ianmjones
thanks ill try this at somepoint. i wound up just using both a mx:plotseries and a mx:lineseries with the same data, then turned off data tips. is there anyway to turn data tips on for only one series in the chart?
Shawn Simon
Not that I know of, maybe a good subject for another question? :-)
ianmjones
+1  A: 

To turn off the datatips for a particular series, set the series.interactive property to false.

Kumar
A: 

Nope, You're looking for

LineChart.showAllDataTips = true;
Limited Atonement