ChartEngineChartJS class

ChartJS (v2.9.4) Engine.

Automatically loads chart.js using AMDJS.

Inheritance

Constructors

ChartEngineChartJS()

Properties

colorGenerator ColorGenerator
The color generator for ChartData that doesn't set its own colors.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isLoaded bool
no setteroverride
isLoadedFinancial bool
Returns true if financial module is loaded.
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

asCanvasElement(Element element) CanvasElement
Ensures that DOM element to render is a canvas. If not will insert a canvas inside the element and use it.
checkLoaded() → void
Checks if engine is loaded.
inherited
checkLoadedFinancial() → void
checkRenderParameters(Element output, ChartData chartData) → void
inherited
getColorGeneratorAs<G extends ColorGenerator>() → G
inherited
load() Future<bool>
Loads ChartJS (chart.js) and engine wrapper.
override
loadFinancial() Future<bool>
Loads ChartJS Financial module.
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) RenderedChartJS
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}) RenderedChartJS
Renders financial chart.
override
renderGaugeChart(Element output, ChartSet chartData) RenderedChartJS
Renders a Horizontal Bar Chart:
override
renderGaugeChartAsync(Element output, ChartSet chartData) Future<RenderedChart>
Same as renderGaugeChart, but async.
inherited
renderHorizontalBarChart(Element output, ChartSeries chartData) RenderedChartJS
Renders a Horizontal Bar Chart:
override
renderHorizontalBarChartAsync(Element output, ChartSeries chartData) Future<RenderedChart>
Same as renderHorizontalBarChart, but async.
inherited
renderLineChart(Element output, ChartSeries chartData) RenderedChartJS
Renders a Line Chart:
override
renderLineChartAsync(Element output, ChartSeries chartData) Future<RenderedChart>
Same as renderLineChart, but async.
inherited
renderScatterChart(Element output, ChartSeriesPair chartSeries) RenderedChartJS
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) RenderedChartJS
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, ChartTimeSeries chartData) RenderedChartJS
Renders a Time Series using Line Chart:
override
renderTimeSeriesChartAsync(Element output, ChartTimeSeries chartData) Future<RenderedChart>
Same as renderTimeSeriesChart, but async.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

ENGINE_WRAPPER_PATH String
final
FINANCIAL_JS_PATH String
final
FINANCIAL_JS_PATH_MIN String
final
JS_PATH String
final
JS_PATH_MIN String
final
JS_WRAPPER_GLOBAL_NAME String
final
minified bool
If true uses minified version of JS files. Should be set before call load method.
getter/setter pair
PATH String
final
VERSION String
final