|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.json.client.JSONValue com.google.gwt.json.client.JSONArray org.moxieapps.gwt.highcharts.client.plotOptions.DataGrouping.Unit
public static class DataGrouping.Unit
Basic class to support DataGrouping. This class should not be instantiated on its own, but as a parameter
of DataGrouping.setUnits(DataGrouping.Unit...)
chart.setPlotoptions(
new PlotOptions()
.setDataGrouping(
new DataGrouping()
.setUnits(
new Unit("week", 1),
new Unit("month", 1, 2, 3, 4, 6)
)
)
);
Constructor Summary | |
---|---|
DataGrouping.Unit(String unitName,
Number... intervals)
Constructor for the Unit class. |
Method Summary |
---|
Methods inherited from class com.google.gwt.json.client.JSONArray |
---|
equals, get, getJavaScriptObject, hashCode, isArray, set, size, toString |
Methods inherited from class com.google.gwt.json.client.JSONValue |
---|
isBoolean, isNull, isNumber, isObject, isString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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...)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |