MultiLineChartJsonConfig class
JSON configuration for multi-line charts with optional Plotly compatibility. This class provides a bridge between JSON format and Flutter widgets.
Constructors
-
MultiLineChartJsonConfig.new({required List<
ChartSeries> series, required MultiLineChartStyle style, double? width, double? height, ValueChanged<ChartDataPoint> ? onPointTap, ValueChanged<Offset> ? onChartTap, bool enableZoom = false, bool enablePan = false}) -
Creates a MultiLineChartJsonConfig instance.
const
-
MultiLineChartJsonConfig.fromJson(Map<
String, dynamic> json) -
Creates a MultiLineChartJsonConfig from a JSON map.
Supports both simple and Plotly-compatible formats.
factory
- MultiLineChartJsonConfig.fromJsonString(String jsonString)
-
Creates a MultiLineChartJsonConfig from a JSON string.
factory
Properties
- enablePan → bool
-
final
- enableZoom → bool
-
Interactive features
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
-
onChartTap
→ ValueChanged<
Offset> ? -
final
-
onPointTap
→ ValueChanged<
ChartDataPoint> ? -
Callback functions
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
series
→ List<
ChartSeries> -
The series data for the chart
final
- style → MultiLineChartStyle
-
The style configuration
final
- width → double?
-
Chart dimensions
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the configuration to a JSON map.
-
toJsonString(
) → String - Converts the configuration to a JSON string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited