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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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>