Package com.storedobject.chart
Class SunburstChart
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Chart
com.storedobject.chart.SunburstChart
- All Implemented Interfaces:
Component,ComponentPart,ComponentProperty,HasAnimation,HasData,HasEmphasis,HasPolarProperty,HasPosition
Sunburst chart.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.chart.Chart
Chart.Emphasis, Chart.Label, Chart.LabelPosition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(TreeDataProvider... data) Add data to the chart.protected AbstractDataProvider<?> Get the data to embed.final PolarPropertygetPolarProperty(boolean create) Get the polar property.final PositiongetPosition(boolean create) Get the position of this on the chart display area.Get the list of data associated with this chart.voidremoveData(TreeDataProvider... data) Remove data from the chart.voidsetData(AbstractDataProvider<?>... data) Set data for the chart.final voidsetPolarProperty(PolarProperty polarProperty) Set the polar property.final voidsetPosition(Position position) Set the position of this.voidvalidate()This method is invoked bySOChartto check if the component or part is valid or not.Methods inherited from class com.storedobject.chart.Chart
addParts, dataValue, dataValueIndex, declareData, encodeJSON, 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, setType, 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, setSerialMethods inherited from interface com.storedobject.chart.HasPolarProperty
setHoleRadius, setRadius
-
Constructor Details
-
SunburstChart
Create a tree chart.- Parameters:
data- Data to be used.
-
-
Method Details
-
setData
Description copied from class:ChartSet data for the chart. -
getSunburstData
Get the list of data associated with this chart.- Returns:
- List of data providers.
-
addData
Add data to the chart.- Parameters:
data- List of data to add.
-
removeData
Remove data from the chart.- Parameters:
data- List of data to remove.
-
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 classChart- Throws:
ChartException- Raises exception if the component or part is not valid.
-
dataToEmbed
Description copied from class:ChartGet 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,GaugeChartetc. If null is returned from this method, no data will be embedded.- Overrides:
dataToEmbedin classChart- Returns:
- Data to embed.
-
getPosition
Description copied from interface:HasPositionGet the position of this on the chart display area. (Iftrueis passed as the parameter, a new position will be created if not already exists).- Specified by:
getPositionin interfaceHasPosition- Parameters:
create- Whether to create it or not.- Returns:
- Position.
-
setPosition
Description copied from interface:HasPositionSet the position of this.- Specified by:
setPositionin interfaceHasPosition- Parameters:
position- Position to set.
-
getPolarProperty
Description copied from interface:HasPolarPropertyGet the polar property. (Iftrueis passed as the parameter, a new polar property will be created if not already exists).- Specified by:
getPolarPropertyin interfaceHasPolarProperty- Parameters:
create- Whether to create it or not.- Returns:
- Polar property.
-
setPolarProperty
Description copied from interface:HasPolarPropertySet the polar property.- Specified by:
setPolarPropertyin interfaceHasPolarProperty- Parameters:
polarProperty- Polar property to set. It could benull.
-