ChartDirector 5.1 (PHP Edition)

JsChartViewer.setAutoHide


Usage

setAutoHide(id, eventId)

Description

Hides one or more objects drawn by JsChartViewer when a certain event occurs.

This method automatically calls JsChartViewer.hideObj when a certain event occurs. For example, it can be used to hide the crosshair cursor or all objects drawn by JsChartViewer when the JsChartViewer.MouseOutPlotArea event occurs. Using this method can avoid the need to create a separate event handler.

This method only applies to the first occurrence of the specified event after calling this method.

JsChartViewer.removeAutoHide can be used to cancel the automatic action set up by this method.

Arguments

ArgumentDefaultDescription
id(Mandatory)The id argument to be used to call JsChartViewer.hideObj.
eventId(Mandatory)A text string representing the event that triggers the call to JsChartViewer.hideObj. An example is "MouseOutPlotArea" (for the JsChartViewer.MouseOutPlotArea event).

Return Value

None