EJSC.Axis.crosshair

See Also: Using Colors

Top  Previous  Next

 

Definition

 

object crosshair = {

               show: false,

               color: "#F00"

}

 

Description

 

Defines if crosshair should be shown on the chart at the current mouse coordinates as they relate to the given axis.  May be enabled and disabled for each axis independently. This is automatically disabled for all axes if EJSC.Chart.allow_interactivity is set to false.

 

Example

 

>> Show crosshair based on the bottom axis mouse position.

 

var chart = new EJSC.Chart( "chart", {

       axis_bottom: { 

               crosshair: { show: true }

       }

} );