EJSC.AnalogGaugeSeries

       

Hierarchy                Properties                Methods                Events

 

In order to use the AnalogGaugeSeries, the file EJSChart_Gauges.js must be included in the HTML page after the inclusion of the standard EJSChart.js file.

 

<head>

       <script type="text/javascript" src="/EJSChart/EJSChart.js"></script>

       <script type="text/javascript" src="/EJSChart/EJSChart_Gauges.js"></script>

</head>

 

 

The AnalogGaugeSeries is rendered as a circular (or semi-circular) gauge with a needle directed towards the current value stored in its EJSC.GaugePoint.

 

The constructor expects an instantiated EJSC.DataHandler descendant and an optional set of object properties.

 

Constructor

 

       EJSC.AnalogGaugeSeries( EJSC.DataHandler dataHandler [, object options] )

 

Example

 

var myAnalogGaugeSeries = new EJSC.AnalogGaugeSeries(

       new EJSC.ArrayDataHandler([[50,"Gauge Value"]]),

       { title: "New Analog Gauge Series" }

);

 

 

Defining Properties and Events

 

AnalogGaugeSeries properties may be set individually after the series has been created or in batch using the options parameter during instantiation.

 

Setting properties individually

 

       var mySeries = new EJSC.AnalogGaugeSeries(new EJSC.ArrayDataHandler([[50,"Gauge Value"]]));

       mySeries.title = "New Analog Gauge Series";

       mySeries.min = 0;

       mySeries.max = 100;

 

Setting properties in batch

 

       var mySeries = new EJSC.AnalogGaugeSeries(

               new EJSC.ArrayDataHandler([[50,"Gauge Value"]]),

               { title: "New Analog Gauge Series", min: 0, max: 100 }

       );