弹性条形图中的多项选择 [英] Multiple selections in flex bar chart

查看:67
本文介绍了弹性条形图中的多项选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在flex中有一个滚动条形图.每当我进行多个选择然后滚动条形图时,这些选择都会被取消选择.即使我滚动条形图,也该如何进行选择.请以某种方式建议我.

I have a scrolling bar chart in flex. Whenever i am doing multiple selections and then scrolling the bar chart, the selections get deselected. How can i make the selections as it is even if i am scrolling the bar chart. Please suggest me some way.

推荐答案

存储选择并重置它.

放松选择是控件的本机行为.只要没有其他选择,该选择就有效.

因此,应该有一个存储选择内容的选择事件和一个鼠标移动后重置选择的鼠标事件.

请确保避免由于操作而导致图表闪烁.
store the selection and reset it.

To loose the selection is a native behavior of the control. The selection is valid as long as there is no other selection made.

So you should have a selection event where you store the selection and a mouse event where the selection is reset after mouse moved.

Be sure to avoid a blinking chart due to the actions.


这篇关于弹性条形图中的多项选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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