FusionCharts class
FusionCharts is the widget that renders FusionCharts. The user should instantiate this widget and include within the UI widget tree.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FusionCharts
Constructors
-
FusionCharts({required Map<
String, dynamic> dataSource, required String type, String height = "", String width = "", List<String> events = const [], Function? fusionChartEvent, FusionChartsController? fusionChartsController, StreamController? streamController, List? timeSeriesSchema, List? timeSeriesData, bool isLocal = true, String? licenseKey, Key? key}) -
const
Properties
-
dataSource
→ Map<
String, dynamic> -
dataSource is used to supply the data to the FusionCharts JS library
Typically the dousource comprises of 'chart' (Map) and 'dataSet' (List) which
is used by FusionCharts to render the chart. However dataSource may also have
other objects such as 'annotation'
final
-
events
→ List<
String> -
User can use events to specify the list of events that should be subscribed to,
at the chart load event
final
- fusionChartEvent → Function?
-
Callback method on trigger of any subscribed event from the FusionCharts
final
- fusionChartsController → FusionChartsController?
-
fusionChartsController enables the user to add/remove events and calls FusionCharts APIs
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → String
-
The height parameter specifies the height of the rendered chart in % or pixels or rem
It is advisable to keep at 100% and manage the size by wrapping within a Container or a SizedBox
final
- isLocal → bool
-
User can specifiy if the charts should be renderd from local JS library or the CDN version
By default the value is true implying local version
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- licenseKey → String?
-
User can pass a valid license key to avoid Trial watermark on the chart
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- streamController → StreamController?
-
User can pass refernce to a streamController which emits periodic updates to real time
data charts. The plugin will listen to events on the streamController and update the chart
final
- timeSeriesData → List?
-
User can pass dataset for the chart which should be compliant with the schema provided
final
- timeSeriesSchema → List?
-
User can pass a valid schema which describes the time series data to be used
final
- type → String
-
type of chart that the user want's to render. Example: 'column2d'
final
- width → String
-
The width parameter specifies the width of the rendered chart in % or pixels or rem
It is advisable to keep at 100% and manage the chart size by wrapping within a Container or a SizedBox
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FusionCharts> -
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}) → 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