Package org.zkoss.chart
Class DataSorting
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.DataSorting
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class DataSorting extends Optionable
Options for the series data sorting.- Since:
- 10.2.1.0
- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description DataSorting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSortKey()
Determines what data value should be used to sort by.boolean
isEnabled()
Enable or disable data sorting for the series.boolean
isMatchByName()
Whether to allow matching points by name in an update.void
setEnabled(boolean enabled)
Enable or disable data sorting for the series.void
setMatchByName(boolean matchByName)
Whether to allow matching points by name in an update.void
setSortKey(String sortKey)
Determines what data value should be used to sort by.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Enable or disable data sorting for the series. UsexAxis.reversed
to change the sorting order.Default: false.
-
setEnabled
public void setEnabled(boolean enabled)
Enable or disable data sorting for the series. UsexAxis.reversed
to change the sorting order.Default: false.
-
isMatchByName
public boolean isMatchByName()
Whether to allow matching points by name in an update. If this option is disabled, points will be matched by order.Default: false.
-
setMatchByName
public void setMatchByName(boolean matchByName)
Whether to allow matching points by name in an update. If this option is disabled, points will be matched by order.Default: false.
-
getSortKey
public String getSortKey()
Determines what data value should be used to sort by.Defaults to
"y"
.
-
setSortKey
public void setSortKey(String sortKey)
Determines what data value should be used to sort by.Defaults to
"y"
.
-
-