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, CategoryDataSeriesPartitionedTable, CategoryDataSeriesSwappablePartitionedTable, CategoryErrorBarDataSeriesMap, CategoryErrorBarDataSeriesPartitionedTable, CategoryErrorBarDataSeriesSwappablePartitionedTable, CategoryTreemapDataSeriesTableMap, FigureImpl, FigureWidget, IntervalXYDataSeriesArray, OHLCDataSeriesArray, OHLCDataSeriesSwappableTableArray, OHLCDataSeriesTableArray, ScatterPlotMatrix, 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 gradientVisible)
      Sets whether bar gradients are visible.
      Parameters:
      gradientVisible - bar gradient visibility
      Returns:
      this data series.
    • pointSize

      DataSeries pointSize(int pointSize)
      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:
      pointSize - point size
      Returns:
      this data series.
    • pointSize

      DataSeries pointSize(long pointSize)
      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:
      pointSize - point size
      Returns:
      this data series.
    • pointSize

      DataSeries pointSize(double pointSize)
      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:
      pointSize - point size
      Returns:
      this data series.
    • pointSize

      DataSeries pointSize(Number pointSize)
      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:
      pointSize - 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 pointColor)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      pointColor - color
      Returns:
      this data series.
    • pointColor

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

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

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

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

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

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

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

      DataSeries pointShape(Shape pointShape)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      pointShape - 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 lineStyle)
      Sets the line style.
      Parameters:
      lineStyle - style
      Returns:
      this data series.
    • pointLabelFormat

      DataSeries pointLabelFormat(String pointLabelFormat)
      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:
      pointLabelFormat - format
      Returns:
      this data series.
    • toolTipPattern

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

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

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