HighCharts class

A Chart library for Flutter based on High Charts (.JS).

This library uses WebView to render High Charts with data and configuration provided by the user. It supports Android, iOS, Web, Windows, and MacOS platforms. For the Web platform, High Charts scripts need to be included in the web/index.html file.

Inheritance

Constructors

HighCharts({required String data, required Size size, Widget loader = const Center(child: CircularProgressIndicator()), List<String> networkScripts = const [], List<String> localScripts = const [], List<String> scripts = const [], Key? key, ThemeMode themeMode = ThemeMode.system})
const

Properties

data String
Chart data and configuration in JSON format.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loader Widget
A custom loader widget displayed until the chart is fully loaded. Defaults to a CircularProgressIndicator. This setting has no effect on the Web platform.
final
localScripts List<String>
List of locally stored High Charts JavaScript files to be loaded. Example:
final
networkScripts List<String>
List of URLs pointing to High Charts JavaScript files.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scripts List<String>
Deprecated: Combined list of scripts. Use networkScripts or localScripts instead.
final
size Size
Dimensions of the chart widget. Both height and width are required.
final
themeMode ThemeMode
Theme mode for the chart. It can be set to ThemeMode.system, ThemeMode.light, or ThemeMode.dark.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() HighChartsState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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