EJSC.Chart.axis_left

See Also

 

Definition

 

EJSC.Axis axis_left = EJSC.LinearAxis

 

Description

 

Defines the axis that will at the left side of the chart.  All four axes are defined as EJSC.LinearAxis by default when the chart is created and do not need to be manually created unless a different type of axis is needed.  These properties automatically allow the setting of axis properties during chart creation as shown in the example below.

 

Types:

EJSC.LinearAxis

EJSC.LogarithmicAxis

 

Example

 

>> Hide the left axis

 

var chart =  new EJSC.Chart(

            "chart",

       {

               axis_left: { visible: false }

       }

);

 

 

>> Display a base 10 logarithmic axis at the left side of the chart.

 

var chart =  new EJSC.Chart(

            "chart",

       {

               axis_left: new EJSC.LogarithmicAxis({ base: 10 })

       }

);