Package com.storedobject.chart
Class ScatterChart
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Chart
com.storedobject.chart.AbstractChart
com.storedobject.chart.XYChart
com.storedobject.chart.ScatterChart
- All Implemented Interfaces:
Component,ComponentPart,ComponentProperty,HasAnimation,HasData,HasEmphasis
Scatter chart. A scatter chart is 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
ConstructorsConstructorDescriptionConstructor.ScatterChart(AbstractDataProvider<?> xData, AbstractDataProvider<?> yData) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.getPointSymbol(boolean create) Get thePointSymbol.voidsetPointSymbol(PointSymbol pointSymbol) Set a different point-symbol.voidvalidate()This method is invoked bySOChartto check if the component or part is valid or not.Methods inherited from class com.storedobject.chart.XYChart
setStackName, setXData, setYDataMethods inherited from class com.storedobject.chart.AbstractChart
setData, setData, setTypeMethods 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
-
ScatterChart
public ScatterChart()Constructor. (Data can be set later). -
ScatterChart
Constructor.- Parameters:
xData- Data for X axis.yData- Data for Y axis.
-
-
Method Details
-
validate
Description copied from interface:ComponentPartThis method is invoked bySOChartto check if the component or part is valid or not.- Specified by:
validatein interfaceComponentPart- Overrides:
validatein classAbstractChart- Throws:
ChartException- Raises exception if the component or part is not valid.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classXYChart- Parameters:
sb- Encoded JSON string to be appended to this.
-
getPointSymbol
Get thePointSymbol.- Parameters:
create- Whether to create it if not exists or not.- Returns:
- The instance of the current
PointSymbolor newly created instance if requested.
-
setPointSymbol
Set a different point-symbol.- Parameters:
pointSymbol- An instance of thePointSymbol.
-