Class ChartRenderer

java.lang.Object
com.vaadin.flow.component.ai.chart.ChartRenderer
All Implemented Interfaces:
Serializable

public final class ChartRenderer extends Object implements Serializable
Stateless utility for rendering chart data from SQL queries. Encapsulates the query-execution-to-drawChart pipeline so that different controllers (standalone chart, dashboard) share the same rendering logic.
Author:
Vaadin Ltd
See Also:
  • Method Details

    • renderChart

      public static void renderChart(com.vaadin.flow.component.charts.Chart chart, DatabaseProvider databaseProvider, DataConverter dataConverter, List<String> queries, String configJson)
      Renders a chart by executing queries, converting results to series, and applying configuration.
      Parameters:
      chart - the chart to render, not null
      databaseProvider - the database provider for query execution, not null
      dataConverter - the data converter for transforming query results, not null
      queries - the SQL queries to execute (one per series), not null
      configJson - the chart configuration JSON, or null to keep current