Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex Charting: Only display datatip for specific series?

Tags:

apache-flex

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?

like image 517
eduffy Avatar asked May 19 '09 17:05

eduffy


1 Answers

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>
like image 58
Florian F Avatar answered Nov 15 '22 05:11

Florian F