EJSC.DateAxis

               

Hierarchy                Properties                Methods                Events

Top  Previous  Next

 

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

 

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

 

Constructor

 

               EJSC.DateAxis( [ object options] )

 

Example

 

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

               axis_bottom: new EJSC.DateAxis({

                               caption: "Year/Month"

               })

});

 

 

Defining Properties and Events

 

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

               });

               chart.axis_bottom.caption = "Year/Month/Day";

               chart.axis_bottom.color = "#F00";

 

Setting properties in batch

 

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

                               axis_bottom: new EJSC.DateAxis({

                                               caption: "Test",

                                               color: "#F00"

                               })

               });