灵活图表:只显示特定系列的数据提示? [英] Flex Charting: Only display datatip for specific series?

查看:116
本文介绍了灵活图表:只显示特定系列的数据提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆