灵活图表:只显示特定系列的数据提示? [英] Flex Charting: Only display datatip for specific series?
问题描述
我有一个 LineChart
,它包含多个系列, LineSeries
和 PlotSeries
,并为图表设置了自定义
dataTipFunction
。但是,我只希望显示线条系列的数据提示,而不是剧情系列。我已经尝试从我的格式函数返回 null
,但只是显示一个空框。我也尝试禁用鼠标事件的剧情系列(通过设置 mouseEnabled
和 mouseFocusEnabled
到 false
),无济于事。这可能吗?
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?
推荐答案
您可以设置交互式
属性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>
这篇关于灵活图表:只显示特定系列的数据提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!