ChartDirector 5.1 (.NET Edition)

JsChartViewer.getPlotAreaMouseX


Usage

getPlotAreaMouseX()

Description

Gets the mouse cursor x-coordinate on the plot area in the chart pixel coordinate system.

If the mouse cursor is not on the plot area, but is on the extended plot area (see JsChartViewer.setPlotAreaMouseMargin), this method will behave as if the mouse cursor is on the nearest plot area edge.

If the mouse cursor is not even on the extended plot area mouse region, this method will return the last coordinate when the mouse was still on the extended plot area.

This method is only valid when called inside the JsChartViewer.MouseMoveChart or JsChartViewer.MouseMovePlotArea events.

Arguments

None

Return Value

The mouse cursor x-coordinate in the chart pixel coordinate system.