public static class DataGrouping.Unit
extends com.google.gwt.json.client.JSONArray
DataGrouping.setUnits(DataGrouping.Unit...)
Sample usage:
chart.setPlotoptions(
new PlotOptions()
.setDataGrouping(
new DataGrouping()
.setUnits(
new Unit("week", 1),
new Unit("month", 1, 2, 3, 4, 6)
)
)
);
| Constructor and Description |
|---|
DataGrouping.Unit(String unitName,
Number... intervals)
Constructor for the Unit class.
|
public DataGrouping.Unit(String unitName, Number... intervals)
new Unit("millisecond", 1, 2, 5, 10, 20, 25, 50, 100, 200, 500)
This will produce the following:
[['millisecond', // unit name
[1, 2, 5, 10, 20, 25, 50, 100, 200, 500]] // allowed multiples
unitName - The Name of the unit for which you wish to set intervals.intervals - The intervals that the data is allowed to be grouped inDataGrouping.setUnits(org.moxieapps.gwt.highcharts.client.plotOptions.DataGrouping.Unit...)Copyright © 2015. All Rights Reserved.