Package com.storedobject.chart
Class BoxplotChart
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Chart
com.storedobject.chart.AbstractChart
com.storedobject.chart.XYChart
com.storedobject.chart.BoxplotChart
- All Implemented Interfaces:
Component
,ComponentPart
,ComponentProperty
,HasAnimation
,HasData
,HasEmphasis
Boxplot chart.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.chart.Chart
Chart.Emphasis, Chart.Label, Chart.LabelPosition
-
Constructor Summary
ConstructorsConstructorDescriptionBoxplotChart
(AbstractDataProvider<BoxplotData.Boxplot> xData, CategoryData yData) Constructs a BoxplotChart with the specified data for the X and Y axes.BoxplotChart
(CategoryData xData, AbstractDataProvider<BoxplotData.Boxplot> yData) Constructs a new BoxplotChart with the specified category data for the X-axis and boxplot data for the Y-axis. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractDataProvider
<?> Get the data to embed.void
Encode the JSON string with the properties of this.void
validate()
This method is invoked bySOChart
to check if the component or part is valid or not.Methods inherited from class com.storedobject.chart.XYChart
setStackName, setXData, setYData
Methods inherited from class com.storedobject.chart.AbstractChart
setData, setData, setType
Methods inherited from class com.storedobject.chart.Chart
addParts, 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, typeValue
Methods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getSerial, getZ, hashCode, hasId, setSerial, setZ
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getRenderingIndex, getSerial, setRenderingIndex, setSerial
-
Constructor Details
-
BoxplotChart
Constructs a new BoxplotChart with the specified category data for the X-axis and boxplot data for the Y-axis.- Parameters:
xData
- the categorical data to be used as the X-axis valuesyData
- the boxplot data to be used as the Y-axis values, containing the statistical values necessary for the boxplot (lower, Q1, median, Q3, upper)
-
BoxplotChart
Constructs a BoxplotChart with the specified data for the X and Y axes.- Parameters:
xData
- Data provider for the X-axis. This should provide Boxplot data represented asBoxplotData.Boxplot
.yData
- Data provider for the Y-axis. This should be categorized data represented asCategoryData
.
-
-
Method Details
-
dataToEmbed
Description copied from class:Chart
Get the data to embed. This is useful only for those special charts that embed data in the chart itself rather than pointing to the dataset. Example:TreeChart
,GaugeChart
etc. If null is returned from this method, no data will be embedded.- Overrides:
dataToEmbed
in classChart
- Returns:
- Data to embed.
-
validate
Description copied from interface:ComponentPart
This method is invoked bySOChart
to check if the component or part is valid or not.- Specified by:
validate
in interfaceComponentPart
- Overrides:
validate
in classAbstractChart
- Throws:
ChartException
- Raises exception if the component or part is not valid.
-
encodeJSON
Description copied from interface:ComponentProperty
Encode the JSON string with the properties of this.- Specified by:
encodeJSON
in interfaceComponentProperty
- Overrides:
encodeJSON
in classXYChart
- Parameters:
sb
- Encoded JSON string to be appended to this.
-