I have a LineChart
that contains multiple series, both LineSeries
and PlotSeries
, and I have a custom dataTipFunction
set for the chart. However, I only want data tips displayed for line series, not the plot series. I have tried returning null
from my format function, but that just displays an empty box. I have also tried disable mouse events on the plot series (by setting both mouseEnabled
and mouseFocusEnabled
to false
), to no avail. Is this even possible?
views:
1396answers:
1
+3
A:
You can set the interactive
property of a *Series to false
<mx:series>
<mx:LineSeries yField="Profit" form="curve" displayName="Profit"/>
<mx:LineSeries yField="Expenses" form="curve" displayName="Expenses"/>
<mx:LineSeries yField="Amount" form="curve" displayName="Amount"/>
<mx:PlotSeries yField="Amount" interactive="false"/>
</mx:series>
PeZ
2009-05-19 20:08:37
That did it. Thank you!
eduffy
2009-05-20 12:15:19
Does the interactive field get ignored when showAllDataTips is set to true? I want to the same behavior, but I want the data tips to always be shown (except for 1 series)
gmoniey
2009-11-05 22:07:30