Shawn
Shawn

Reputation: 19793

Show data points on a Flex <mx:LineSeries>

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?

Upvotes: 2

Views: 6302

Answers (4)

lmat - Reinstate Monica
lmat - Reinstate Monica

Reputation: 7768

Nope, You're looking for

LineChart.showAllDataTips = true;

Upvotes: 2

kmxr
kmxr

Reputation: 479

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

Upvotes: 2

ianmjones
ianmjones

Reputation: 3415

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.

Upvotes: 6

Ryan Guill
Ryan Guill

Reputation: 13886

I think what you are looking for is:

showDataTips="true"

Upvotes: 1

Related Questions