Interface DataSeries

All Superinterfaces:
Serializable, Series
All Known Subinterfaces:
CategoryDataSeries, CategoryDataSeriesInternal, CategoryErrorBarDataSeries, CategoryErrorBarDataSeriesInternal, CategorySwappableTableDataSeriesInternal, CategoryTableDataSeriesInternal, DataSeriesInternal, Figure, IntervalXYDataSeries, IntervalXYDataSeriesInternal, OHLCDataSeries, OHLCDataSeriesInternal, XYDataSeries, XYDataSeriesFunction, XYDataSeriesFunctionInternal, XYDataSeriesInternal, XYErrorBarDataSeries, XYErrorBarDataSeriesInternal
All Known Implementing Classes:
AbstractCategoryDataSeries, AbstractDataSeries, AbstractMapBasedCategoryDataSeries, AbstractSwappableTableBasedCategoryDataSeries, AbstractTableBasedCategoryDataSeries, AbstractXYDataSeries, CategoryDataSeriesMap, CategoryDataSeriesSwappableTableMap, CategoryDataSeriesTableMap, CategoryErrorBarDataSeriesMap, CategoryErrorBarDataSeriesSwappableTableMap, CategoryErrorBarDataSeriesTableMap, FigureImpl, FigureWidget, IntervalXYDataSeriesArray, OHLCDataSeriesArray, OHLCDataSeriesSwappableTableArray, OHLCDataSeriesTableArray, ScatterPlotMatrix, TransformedCategoryDataSeries, TransformedIntervalXYDataSeries, TransformedIntervalXYDataSeries.TransformedIntervalXYDataSeriesSnapshot, TransformedOHLCDataSeries, TransformedOHLCDataSeries.TransformedOHLCDataSeriesSnapshot, TransformedXYDataSeries, TransformedXYDataSeries.TransformedXYDataSeriesSnapshot, XYDataSeriesArray, XYDataSeriesFunctionImpl, XYDataSeriesSwappableTableArray, XYDataSeriesTableArray, XYErrorBarDataSeriesArray, XYErrorBarDataSeriesSwappableTableArray, XYErrorBarDataSeriesTableArray

public interface DataSeries
extends Series, Serializable
A generic data series.
  • Method Details

    • linesVisible

      DataSeries linesVisible​(Boolean visible)
      Sets whether lines are visible.
      Parameters:
      visible - line visibility
      Returns:
      this data series.
    • pointsVisible

      DataSeries pointsVisible​(Boolean visible)
      Sets whether points are visible.
      Parameters:
      visible - point visibility
      Returns:
      this data series.
    • gradientVisible

      DataSeries gradientVisible​(boolean visible)
      Sets whether bar gradients are visible.
      Parameters:
      visible - bar gradient visibility
      Returns:
      this data series.
    • pointSize

      DataSeries pointSize​(int factor)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      factor - point size
      Returns:
      this data series.
    • pointSize

      DataSeries pointSize​(long factor)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      factor - point size
      Returns:
      this data series.
    • pointSize

      DataSeries pointSize​(double factor)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      factor - point size
      Returns:
      this data series.
    • pointSize

      DataSeries pointSize​(Number factor)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      factor - point size
      Returns:
      this data series.
    • seriesColor

      default DataSeries seriesColor​(Paint color)
      Defines the default line and point color.
      Parameters:
      color - color
      Returns:
      this data series.
    • seriesColor

      default DataSeries seriesColor​(int color)
      Defines the default line and point color.
      Parameters:
      color - color
      Returns:
      this data series.
    • seriesColor

      default DataSeries seriesColor​(String color)
      Defines the default line and point color.
      Parameters:
      color - color
      Returns:
      this data series.
    • pointColor

      DataSeries pointColor​(Paint color)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      color - color
      Returns:
      this data series.
    • pointColor

      DataSeries pointColor​(int color)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      color - color
      Returns:
      this data series.
    • pointColor

      DataSeries pointColor​(String color)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      color - color
      Returns:
      this data series.
    • pointColorByY

      <T extends Paint> DataSeries pointColorByY​(Function<Double,​T> colors)
      Sets the point color for a data point based upon the y-value.
      Parameters:
      colors - function from the y-value of data points to Paint
      Returns:
      this DataSeries
    • pointColorByY

      <T extends Paint> DataSeries pointColorByY​(groovy.lang.Closure<T> colors)
      Sets the point color for a data point based upon the y-value.
      Parameters:
      colors - function from the y-value of data points to Paint
      Returns:
      this DataSeries
    • errorBarColor

      DataSeries errorBarColor​(Paint color)
      Sets the error bar Paint for this dataset.
      Parameters:
      color - color
      Returns:
      this DataSeries
    • errorBarColor

      DataSeries errorBarColor​(int color)
      Sets the error bar Paint for this dataset.
      Parameters:
      color - index of the color in the series color palette
      Returns:
      this DataSeries
    • errorBarColor

      DataSeries errorBarColor​(String color)
      Sets the error bar Paint for this dataset.
      Parameters:
      color - color
      Returns:
      this DataSeries
    • pointLabel

      DataSeries pointLabel​(Object label)
      Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.
      Parameters:
      label - label
      Returns:
      this XYDataSeries
    • pointShape

      DataSeries pointShape​(String shape)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      shape - shape
      Returns:
      this DataSeries
    • pointShape

      DataSeries pointShape​(Shape shape)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      shape - shape
      Returns:
      this DataSeries
    • lineColor

      DataSeries lineColor​(Paint color)
      Defines the default line color.
      Parameters:
      color - color
      Returns:
      this data series.
    • lineColor

      DataSeries lineColor​(int color)
      Defines the default line color.
      Parameters:
      color - color palette index
      Returns:
      this data series.
    • lineColor

      DataSeries lineColor​(String color)
      Defines the default line color.
      Parameters:
      color - color
      Returns:
      this data series.
    • lineStyle

      DataSeries lineStyle​(LineStyle style)
      Sets the line style.
      Parameters:
      style - style
      Returns:
      this data series.
    • pointLabelFormat

      DataSeries pointLabelFormat​(String format)
      Sets the point label format.

      Use {0} where the data series name should be inserted, {1} for the x-value and {2} y-value e.g. "{0}: ({1}, {2})" will display as Series1: (2.0, 5.5).

      Parameters:
      format - format
      Returns:
      this data series.
    • toolTipPattern

      default DataSeries toolTipPattern​(String format)
      Sets the tooltip format.
      Parameters:
      format - format
      Returns:
      this data series.
    • xToolTipPattern

      DataSeries xToolTipPattern​(String format)
      Sets the x-value tooltip format.
      Parameters:
      format - format
      Returns:
      this data series.
    • yToolTipPattern

      DataSeries yToolTipPattern​(String format)
      Sets the y-value tooltip format.
      Parameters:
      format - format
      Returns:
      this data series.