I have a line chart with a column chart as a secondary series. When I roll over the line, the datatips appear. However, if I move the mouse to a spot where a column appears while still on the line, the data tip item appears for the line AND the column. How do I get it so that I only show datatips for the line but not the column?
<mx:AreaChart id="areachart" dataProvider="{data}" showDataTips="true" >
<mx:series>
<mx:AreaSeries id="areaSeries" xField="date" yField="volume" >
</mx:AreaSeries>
<mx:ColumnSeries id="secondSeries" xField="date" yField="name" >
</mx:ColumnSeries>
</mx:series>
</mx:AreaChart>
Subclass AreaChart and override findDataPoints method to filter out the data points you don’t want:
And then use this new class instead of AreaChart.