This section is regarding Methods and Properties available in the Crosshair element.
Example :Method | Description | Example |
---|---|---|
get(String propertyName) | Returns the specified property of Crosshair | chart.axisX[0].crosshair.get(“color”); |
set(String propertyName, Mixed value [,Boolean updateChart = true]) | Sets the specified property of Crosshair & optionally updates (default) the chart | chart.axisX[0].crosshair.set(“opacity”, 0.7); |
showAt(Mixed value) | Shows the Crosshair for the specified value | chart.axisX[0].crosshair.showAt(10); |
hide() | Hides the Crosshair | chart.axisX[0].crosshair.hide(); |
All the crosshair options becomes available as properties after chart is rendered. You can access them either via get method or dot notation. But you change / set those values only via set method.
Please refer to Crosshair Element for complete list of properties available.
Also See: