用户难以精确双击 Adobe Flex 图表中的数据点
我们有一些与 Flex 图表内数据点上的双击事件相关的操作。当用户悬停鼠标指针时,鼠标数据提示会正确显示。但是,用户需要“精确”双击该点才能正确触发事件。我们可以增加此点击事件的“半径”或“范围”或“区域”或“目标区域”吗?
PS:技术细节是 -
- myChart.addEventListener(ChartItemEvent.ITEM_DOUBLE_CLICK, doubleClickHandler);
mychart.dataTipFunction = myDataTipFunction ;
Firefox 3.5
- Flex SDK 3.3
- Flash Player 10
请帮忙!!!!
提前致谢。
We have some actions associated with double-click events on a data point inside Flex charts. When user hovers mouse pointer, the mouse datatip is shown properly. However, user needs to double click 'precisely' onto the point, to fire the event correctly. Can we increase 'radius' or 'range' or 'region' or 'target area' of this click event?
PS: Technical details are -
- myChart.addEventListener(ChartItemEvent.ITEM_DOUBLE_CLICK, doubleClickHandler);
mychart.dataTipFunction = myDataTipFunction ;
Firefox 3.5
- Flex SDK 3.3
- Flash Player 10
Please help !!!!
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以在图表上设置 mouseSensitivity 属性来指定数据点周围的边界半径,flex 在确定某个点是否被单击时将使用该边界半径。
来自文档:
public var mouseSensitivity:Number = 5
指定当指针在图表中移动时 Flex 认为数据点位于鼠标指针下方的距离(以像素为单位)。 Flex 认为任何小于 mouseSensitivity 像素的数据点都位于鼠标指针下方。 findDataPoints 方法也使用该值。
Yes, you can set the mouseSensitivity property on your chart to specify a bounding radius around your data points that flex will use when determining if a point was clicked.
From the docs:
public var mouseSensitivity:Number = 5
Specifies the distance, in pixels, that Flex considers a data point to be under the mouse pointer when the pointer moves around a chart. Flex considers any data point less than mouseSensitivity pixels away to be under the mouse pointer. This value is also used by the findDataPoints method.