EJSC.BarSeries.groupedBars

See Also

Top  Previous  Next

 

Definition

 

boolean groupedBars = true

 

Description

 

Defines whether the bars from different bar series in a single chart are grouped or overlayed.

 

NOTE: Only the first bar series added to the chart may use this property to affect the grouped/overlay display.  To change the style after the first bar series has been added, use the EJSC.BarSeries.setGroupedBars from any bar series in the chart.  Currently you cannot mix both overlayed and grouped bars within the same chart.

 

Example

 

>> Make the bar series overlay

 

var chart =  new EJSC.Chart("chart");

var bar1 = chart.addSeries(new EJSC.BarSeries(

   data,

   {

      groupedBars: false,

   }

));

var bar2 = chart.addSeries(new EJSC.BarSeries(data));