NrbComboChart class

A professional combo chart that overlays a line chart on top of a bar chart. This chart supports dual Y-axes (one for the bars on the left, one for the line on the right) and features interactive tap events to display tooltips for specific data points.

Inheritance

Constructors

NrbComboChart({Key? key, required List<double> barData, required List<double> lineData, required List<String> labels, double width = double.infinity, double height = 250.0, Color barColor = const Color(0xFF4A90E2), Color lineColor = const Color(0xFF34C759), Duration animationDuration = const Duration(milliseconds: 1500)})
Constructor for the Combo Chart.
const

Properties

animationDuration Duration
The duration of the drawing and growing animation on initial load.
final
barColor Color
The color of the vertical bars.
final
barData List<double>
The numerical data for the vertical bars (Left Y-Axis).
final
hashCode int
The hash code for this object.
no setterinherited
height double
The overall height of the chart widget.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labels List<String>
The labels for the X-axis (e.g., months or categories). Must be the same length as barData.
final
lineColor Color
The color of the overlay line and its data points.
final
lineData List<double>
The numerical data for the line chart (Right Y-Axis). Must be the same length as barData.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
The overall width of the chart widget.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<NrbComboChart>
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