Package com.storedobject.chart
Class XYChart
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Chart
com.storedobject.chart.AbstractChart
com.storedobject.chart.XYChart
- All Implemented Interfaces:
Component,ComponentPart,ComponentProperty,HasAnimation,HasData,HasEmphasis
- Direct Known Subclasses:
BarChart,BoxplotChart,CandlestickChart,EffectScatterChart,LineChart,ScatterChart,XYGraphChart
Basic XY-type chart - mostly plotted on a
RectangularCoordinate system.- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.chart.Chart
Chart.Emphasis, Chart.Label, Chart.LabelPosition -
Constructor Summary
ConstructorsConstructorDescriptionXYChart(ChartType type, AbstractDataProvider<?> xData, AbstractDataProvider<?> yData) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.voidsetStackName(String stackName) voidsetXData(AbstractDataProvider<?> xData) Set data for X axis.voidsetYData(AbstractDataProvider<?> yData) Set data for Y axis.Methods inherited from class com.storedobject.chart.AbstractChart
setData, setData, setType, validateMethods inherited from class com.storedobject.chart.Chart
addParts, dataToEmbed, dataValue, dataValueIndex, declareData, getAnimation, getCoordinateSystem, getData, getEmphasis, getItemStyle, getLabel, getLabelName, getMarkArea, getMax, getMin, getName, getTooltip, getType, mainData, plotOn, plotOn, setAnimation, setColors, setCustomRenderer, setEmphasis, setItemStyle, setLabel, setMarkArea, setName, setTooltip, typeValueMethods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getSerial, getZ, hashCode, hasId, setSerial, setZMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getRenderingIndex, getSerial, setRenderingIndex, setSerial
-
Constructor Details
-
XYChart
Constructor.- Parameters:
type- Type.xData- Data for X axis.yData- Data for Y axis.
-
-
Method Details
-
setXData
Set data for X axis.- Parameters:
xData- Data for X axis.
-
setYData
Set data for Y axis.- Parameters:
yData- Data for Y axis.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classChart- Parameters:
sb- Encoded JSON string to be appended to this.
-
setStackName
-