Class EChartsThemeRiverSeries

java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsThemeRiverSeries
All Implemented Interfaces:
com.oorian.json.Jsonable

public class EChartsThemeRiverSeries extends EChartsSeries
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
  • Constructor Details

    • EChartsThemeRiverSeries

      public EChartsThemeRiverSeries()
      Constructs a new EChartsThemeRiverSeries with type set to "themeRiver".
  • Method Details

    • addData

      public void addData(String date, Number value, String name)
      Adds a data point for the theme river.
      Parameters:
      date - the date/time value (x-axis)
      value - the value/magnitude
      name - the theme/category name
    • addData

      public void addData(Number x, Number value, String name)
      Adds a data point with numeric x value.
      Parameters:
      x - the x-axis value
      value - the value/magnitude
      name - the theme/category name
    • setLeft

      public void setLeft(String left)
      Sets the left position.
      Parameters:
      left - the left position
    • setRight

      public void setRight(String right)
      Sets the right position.
      Parameters:
      right - the right position
    • setTop

      public void setTop(String top)
      Sets the top position.
      Parameters:
      top - the top position
    • setBottom

      public void setBottom(String bottom)
      Sets the bottom position.
      Parameters:
      bottom - the bottom position
    • setWidth

      public void setWidth(String width)
      Sets the width.
      Parameters:
      width - the width
    • setHeight

      public void setHeight(String height)
      Sets the height.
      Parameters:
      height - the height
    • setCoordinateSystem

      public void setCoordinateSystem(String coordinateSystem)
      Sets the coordinate system.
      Parameters:
      coordinateSystem - the coordinate system
    • setBoundaryGap

      public void setBoundaryGap(String boundaryGap)
      Sets the boundary gap.
      Parameters:
      boundaryGap - the boundary gap setting
    • setLabel

      public void setLabel(EChartsLabel label)
      Sets the label configuration.
      Parameters:
      label - the label configuration
    • setItemStyle

      public void setItemStyle(EChartsItemStyle itemStyle)
      Sets the item style configuration.
      Parameters:
      itemStyle - the item style
    • setEmphasis

      public void setEmphasis(EChartsEmphasis emphasis)
      Sets the emphasis configuration.
      Parameters:
      emphasis - the emphasis configuration
    • getLeft

      public String getLeft()
    • getRight

      public String getRight()
    • getTop

      public String getTop()
    • getBottom

      public String getBottom()
    • getWidth

      public String getWidth()
    • getHeight

      public String getHeight()
    • getCoordinateSystem

      public String getCoordinateSystem()
    • getBoundaryGap

      public String getBoundaryGap()
    • getLabel

      public EChartsLabel getLabel()
    • getItemStyle

      public EChartsItemStyle getItemStyle()
    • getEmphasis

      public EChartsEmphasis getEmphasis()
    • initSpecificFromJson

      protected void initSpecificFromJson(com.oorian.json.JsonObject obj)
      Description copied from class: EChartsSeries
      Initializes series-specific properties from a JSON object.

      Subclasses must implement this method to handle their specific properties.

      Specified by:
      initSpecificFromJson in class EChartsSeries
      Parameters:
      obj - the JSON object containing series properties
    • addSpecificToJson

      protected void addSpecificToJson(com.oorian.json.JsonObject obj)
      Description copied from class: EChartsSeries
      Adds series-specific properties to a JSON object.

      Subclasses must implement this method to serialize their specific properties.

      Specified by:
      addSpecificToJson in class EChartsSeries
      Parameters:
      obj - the JSON object to add properties to