Package com.oorian.echarts.options
Class EChartsThemeRiverSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsThemeRiverSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a ThemeRiver series configuration for ECharts theme river (streamgraph) charts.
Extends EChartsSeries to provide theme river-specific options for visualizing thematic changes over time.
ThemeRiver charts are useful for:
- Showing topic/theme trends over time
- Visualizing market share changes
- Displaying sentiment analysis over time
- Music genre popularity trends
- Author:
- Oorian
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsThemeRiverSeries with type set to "themeRiver". -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a data point with numeric x value.voidAdds a data point for the theme river.protected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.getLabel()getLeft()getRight()getTop()getWidth()protected voidinitSpecificFromJson(com.oorian.json.JsonObject obj) Initializes series-specific properties from a JSON object.voidSets the bottom position.voidsetBoundaryGap(String boundaryGap) Sets the boundary gap.voidsetCoordinateSystem(String coordinateSystem) Sets the coordinate system.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration.voidSets the height.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration.voidsetLabel(EChartsLabel label) Sets the label configuration.voidSets the left position.voidSets the right position.voidSets the top position.voidSets the width.Methods inherited from class com.oorian.echarts.options.EChartsSeries
addData, getData, getName, getType, initFromJson, parseDataArray, setData, setName, setType, toJsonString, toJsonValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oorian.json.Jsonable
initFromJson, initFromJson
-
Constructor Details
-
EChartsThemeRiverSeries
public EChartsThemeRiverSeries()Constructs a new EChartsThemeRiverSeries with type set to "themeRiver".
-
-
Method Details
-
addData
Adds a data point for the theme river.- Parameters:
date- the date/time value (x-axis)value- the value/magnitudename- the theme/category name
-
addData
Adds a data point with numeric x value.- Parameters:
x- the x-axis valuevalue- the value/magnitudename- the theme/category name
-
setLeft
Sets the left position.- Parameters:
left- the left position
-
setRight
Sets the right position.- Parameters:
right- the right position
-
setTop
Sets the top position.- Parameters:
top- the top position
-
setBottom
Sets the bottom position.- Parameters:
bottom- the bottom position
-
setWidth
Sets the width.- Parameters:
width- the width
-
setHeight
Sets the height.- Parameters:
height- the height
-
setCoordinateSystem
Sets the coordinate system.- Parameters:
coordinateSystem- the coordinate system
-
setBoundaryGap
Sets the boundary gap.- Parameters:
boundaryGap- the boundary gap setting
-
setLabel
Sets the label configuration.- Parameters:
label- the label configuration
-
setItemStyle
Sets the item style configuration.- Parameters:
itemStyle- the item style
-
setEmphasis
Sets the emphasis configuration.- Parameters:
emphasis- the emphasis configuration
-
getLeft
-
getRight
-
getTop
-
getBottom
-
getWidth
-
getHeight
-
getCoordinateSystem
-
getBoundaryGap
-
getLabel
-
getItemStyle
-
getEmphasis
-
initSpecificFromJson
protected void initSpecificFromJson(com.oorian.json.JsonObject obj) Description copied from class:EChartsSeriesInitializes series-specific properties from a JSON object.Subclasses must implement this method to handle their specific properties.
- Specified by:
initSpecificFromJsonin classEChartsSeries- Parameters:
obj- the JSON object containing series properties
-
addSpecificToJson
protected void addSpecificToJson(com.oorian.json.JsonObject obj) Description copied from class:EChartsSeriesAdds series-specific properties to a JSON object.Subclasses must implement this method to serialize their specific properties.
- Specified by:
addSpecificToJsonin classEChartsSeries- Parameters:
obj- the JSON object to add properties to
-