Class ChartSeriesConsumer

java.lang.Object
travel.wink.sdk.analytics.model.ChartSeriesConsumer

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-24T11:28:36.455821383+07:00[Asia/Bangkok]") public class ChartSeriesConsumer extends Object
The configuration of the chart series. The series type is determined by the value of the type field. If a type value is missing, the chart renders the type that is specified in `seriesDefaults`. Some options accept functions as arguments. These arguments are evaluated for each point which is supplied as a parameter. If no value is returned, the chart uses the `theme` or `seriesDefaults` values.
  • Field Details

  • Constructor Details

    • ChartSeriesConsumer

      public ChartSeriesConsumer()
  • Method Details

    • name

      public ChartSeriesConsumer name(String name)
    • getName

      @Nullable public String getName()
      The name of the Chart series which is visible in the legend.
      Returns:
      name
    • setName

      public void setName(String name)
    • data

      public ChartSeriesConsumer data(List<BigDecimal> data)
    • addDataItem

      public ChartSeriesConsumer addDataItem(BigDecimal dataItem)
    • getData

      @Nullable @Valid public @Valid List<BigDecimal> getData()
      The array of data items which represent the series data. You can set it to: - Array of numbers. Supported when the series.type option is set to `area`, `bar`, `column`, `donut`, `pie`, `line`, or `waterfall`. The Bubble series need arrays of three values—X value, Y value, and Size value—for example, [1, 1, 10]. The Scatter and ScatterLine series need arrays of two values—X value and Y value. The OHLC and Candlestick series need arrays of four values—open, high, low, and close. The RangeBar and RangeArea series need arrays of two values—the from and to value.
      Returns:
      data
    • setData

      public void setData(List<BigDecimal> data)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object