Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top