EJSC.Axis.formatter

See Also

 

Definition

 

EJSC.Formatter formatter = EJSC.Formatter

 

Description

 

Defines the formatter that will be used to format the tick marks on the axis before displaying them.

 

Types:

EJSC.DateFormatter

EJSC.NumberFormatter

EJSC.StringFormatter

 

Example

 

>> Display bottom axis tick labels as $0.00

 

var chart =  new EJSC.Chart(

            "chart",

       {

               axis_bottom: {

                       formatter: new EJSC.NumberFormatter( { currency_symbol: "$", forced_decimals: 2,  variable_decimals: 2 } )

               }

       }

);