ChartEngineSwitchable class

A ChartEngine wrapper with switchable internal engines:

Inheritance

Constructors

ChartEngineSwitchable(Set<ChartEngine> engines, {Type? mainEngineType, ChartEngine? mainEngine})

Properties

colorGenerator ColorGenerator
The color generator for ChartData that doesn't set its own colors.
getter/setter pairinherited
engines Set<ChartEngine>
final
hashCode int
The hash code for this object.
no setterinherited
isLoaded bool
no setteroverride
mainEngine ChartEngine?
The current main ChartEngine/
no setter
onLoad → EventStream<LoadController>
onLoad event handler.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
no setteroverride

Methods

checkLoaded() → void
Checks if engine is loaded.
inherited
checkRenderParameters(Element output, ChartData chartData) → void
inherited
getColorGeneratorAs<G extends ColorGenerator>() → G
inherited
getEngineByType(Type engineType) ChartEngine
Gets an engine selected with engineType.
getEngineOfType<T>() ChartEngine
Gets an engine selected with T.
load() Future<bool>
Ensures that engine and dependencies are loaded.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Element output, ChartData chartData) RenderedChart?
Renders at output a chartData, selecting the correct render method.
inherited
renderAsync(Element output, ChartData chartData) Future<RenderedChart?>
Same as render, but async.
inherited
renderBarChart(Element output, ChartSeries chartData) RenderedChart
Renders a Bar Chart:
override
renderBarChartAsync(Element output, ChartSeries chartData) Future<RenderedChart>
Same as renderBarChart, but async.
inherited
renderFinancialChart(Element output, ChartTimeSeries chartSeries, {bool? ohlc, bool? candlestick}) RenderedChart
Renders financial chart.
override
renderGaugeChart(Element output, ChartSet chartData) RenderedChart
Renders a Horizontal Bar Chart:
override
renderGaugeChartAsync(Element output, ChartSet chartData) Future<RenderedChart>
Same as renderGaugeChart, but async.
inherited
renderHorizontalBarChart(Element output, ChartSeries chartData) RenderedChart
Renders a Horizontal Bar Chart:
override
renderHorizontalBarChartAsync(Element output, ChartSeries chartData) Future<RenderedChart>
Same as renderHorizontalBarChart, but async.
inherited
renderLineChart(Element output, ChartSeries chartData) RenderedChart
Renders a Line Chart:
override
renderLineChartAsync(Element output, ChartSeries chartData) Future<RenderedChart>
Same as renderLineChart, but async.
inherited
renderOfEngineType<T>(Element output, ChartData chartData) RenderedChart?
Renders using engine of type T.
renderScatterChart(Element output, ChartSeriesPair chartSeries) RenderedChart
Renders a Scatter Chart with X,Y pairs:
override
renderScatterChartAsync(Element output, ChartSeriesPair chartSeries) Future<RenderedChart>
Same as renderScatterChart, but async.
inherited
renderScatterTimedChart(Element output, ChartTimeSeries chartSeries) RenderedChart
Renders a Scatter Chart Timed with DateTime values in X axis:
override
renderScatterTimedChartAsync(Element output, ChartTimeSeries chartSeries) Future<RenderedChart>
Same as renderScatterTimedChart, but async.
inherited
renderTimeSeriesChart(Element output, ChartSeries chartData) RenderedChart
Renders a Time Series using Line Chart:
override
renderTimeSeriesChartAsync(Element output, ChartTimeSeries chartData) Future<RenderedChart>
Same as renderTimeSeriesChart, but async.
inherited
renderWithEngineType(Type engineType, Element output, ChartData chartData) RenderedChart?
Renders using engine of engineType.
setMainEngineByType(Type engineType) ChartEngine
Sets the main ChartEngine to use, selected by engineType.
setMainEngineOfType<T>() ChartEngine
Sets the main ChartEngine to use, selected by T.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited