EJSC.LogarithmicAxis

       

Hierarchy                Properties                Methods                Events

 

LogarithmicAxis may be created and assigned to any of the four chart axes in order to enable a logarithmic scale.

 

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

 

Constructor

 

       EJSC.LogarithmicAxis( [ object options] )

 

Example

 

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

       axis_bottom: new EJSC.LogarithmicAxis({

               caption: "Test",

               base: 8

       })

});

 

 

Defining Properties and Events

 

LogarithmicAxis 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.LogarithmicAxis()

       });

       chart.axis_bottom.base = 8;

       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({

                       base: 8,

                       caption: "Test",

                       color: "#F00"

               })

       });