Crosshair

This section is regarding Methods and Properties available in the Crosshair element.

Example :
        chart.axisX[0].crosshair.get(“labelFontSize”);
        chart.axisX[0].crosshair.set(“enabled”, true);
Note
  • Chart should be rendered before you can access Crosshair & its methods / properties.

StripLine Methods

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();

Writable Properties in Crosshair

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.

Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question