EJSC.LinearAxis

       

Hierarchy                Properties                Methods                Events

 

LinearAxis is the default axis type for all four chart axes.

 

The constructor takes an optional set of object properties used to perform initial configuration.

 

Constructor

 

       EJSC.LinearAxis( [ object options] )

 

Example

 

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

       axis_bottom: new EJSC.LinearAxis({

               caption: "Test"

       })

});

 

 

Defining Properties and Events

 

LinearAxis properties may be set individually after the chart has been initialized and/or the axis has been created or in batch using the options parameter during instantiation.

 

Setting properties individually

 

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

               axis_bottom: new EJSC.LinearAxis()

       });

       chart.axis_bottom.caption = "Test";

       chart.axis_bottom.color = "#F00";

 

Setting properties in batch

 

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

               axis_bottom: new EJSC.LinearAxis({

                       caption: "Test",

                       color: "#F00"

               })

       });