Interface DataConverter

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultDataConverter

public interface DataConverter extends Serializable
Converts tabular data into chart Series for rendering. The input is a list of rows, where each row is a column-name-to-value map.

Implementations may return one or more series depending on the data. The DefaultDataConverter provides automatic chart type detection based on column names and supports multi-series grouping via a series column. Custom implementations can apply any conversion logic appropriate for their use case.

Author:
Vaadin Ltd
See Also:
  • Method Details

    • convertToSeries

      List<Series> convertToSeries(List<Map<String,Object>> data)
      Converts tabular data into one or more chart series.

      Each element in the input list represents a single row, with column names as keys and column values as values.

      Parameters:
      data - the tabular data to convert, not null
      Returns:
      a list of series ready for use in a chart, never null and never empty
      Throws:
      NullPointerException - if data is null