material_charts library

Classes

AreaChartData
Represents a single data point in the area chart.
AreaChartSeries
Represents a series of data points and their appearance in the area chart.
AreaChartStyle
Configuration for the overall style and appearance of the area chart.
BarChartData
Represents a data point for a bar chart.
BarChartJsonConfig
JSON configuration for bar charts with optional Plotly compatibility. This class provides a bridge between JSON format and Flutter widgets.
BarChartStyle
Configuration class for styling a bar chart.
BaseChart
Base class for chart widgets. This class defines common properties and assertions for all chart types.
CandlestickData
Represents data for a single candlestick in a candlestick chart.
CandlestickStyle
Represents the style configuration for candlesticks in the chart.
ChartAnimation
Represents the animation configuration for the chart.
ChartAxisConfig
Configuration class for chart axes.
ChartData
Model class for chart data points. This class represents a single data point in the line chart, containing a value and a corresponding label.
ChartDataPoint
Represents a single data point in a chart.
ChartSeries
Represents a series of data points on a chart.
ChartStyle
Specifies the style configuration for chart widgets. This class allows customization of the appearance and behavior of the charts.
CrosshairConfig
Configures the crosshair behavior in the chart.
GanttChartJsonConfig
JSON configuration for Gantt charts with optional Plotly compatibility. This class provides a bridge between JSON format and Flutter widgets.
GanttChartStyle
Configuration class for Gantt chart styling.
GanttData
Model class for Gantt chart data points.
LegendItem
Represents a single item in the legend.
LineChartJsonConfig
JSON configuration for line charts with optional Plotly compatibility. This class provides a bridge between JSON format and Flutter widgets.
LineChartStyle
Configuration class for line chart styling. This class holds various properties to customize the appearance of the line chart.
MaterialAreaChart
The main area chart widget
MaterialBarChart
A stateful widget that represents a material design bar chart.
MaterialCandlestickChart
MaterialCandlestickChart is a stateful widget that provides a user-friendly interface for displaying and interacting with candlestick chart data.
MaterialChartHollowSemiCircle
A material design hollow semi-circle chart widget that displays a percentage value visually as a hollow semi-circle with optional legend and percentage text.
MaterialChartLine
A widget that displays a line chart based on the provided data.
MaterialGanttChart
A customizable Gantt Chart widget that displays tasks over a timeline.
MaterialPieChart
A stateful widget that displays a customizable pie chart with optional animations.
MaterialStackedBarChart
A customizable Material-styled stacked bar chart with animation, interaction, and full JSON schema support.
MultiLineChart
A widget that displays a multi-line chart with interactive features.
MultiLineChartJsonConfig
JSON configuration for multi-line charts with optional Plotly compatibility. This class provides a bridge between JSON format and Flutter widgets.
MultiLineChartState
MultiLineChartStyle
Represents the overall styling configuration for charts.
MultiLineTooltipStyle
Represents the styling configuration for tooltips.
PieChartData
Represents data for a single slice of a pie chart.
PieChartJsonConfig
JSON configuration for pie charts with optional Plotly compatibility. This class provides a bridge between JSON format and Flutter widgets.
PieChartStyle
Defines the style properties for the pie chart.
PlotlyAreaChartData
Container for parsed Plotly data
PlotlyAreaChartParser
Utility class for parsing complete Plotly JSON format
PlotlyAxis
Represents Plotly JSON axis configuration.
PlotlyJson
Main Plotly JSON data structure that matches Python Plotly format.
PlotlyJsonValidator
Utility class for validating and parsing Plotly JSON data
PlotlyLayout
Represents Plotly JSON layout configuration.
PlotlyLine
Represents Plotly line styling (for increasing/decreasing candlesticks).
PlotlyTrace
Represents a single Plotly candlestick trace.
StackedBarChartJsonConfig
JSON configuration class for stacked bar charts with full Plotly compatibility. This class provides a bridge between Plotly JSON format and Flutter widgets. Handles all JSON validation and parsing like the regular bar chart.
StackedBarChartStyle
Configuration class for customizing the appearance of the stacked bar chart.
StackedBarData
Represents the complete data for a single bar in the stacked bar chart.
StackedBarSegment
Represents a single segment in a stacked bar.
TooltipConfig
Configuration for tooltips displayed when hovering over chart points.
TooltipData
Represents the data to be displayed in a tooltip.
TooltipStyle
Represents the style configuration for tooltips across all chart types.
YAxisConfig
Configuration class for customizing the Y-axis of the chart.

Enums

ChartAlignment
Horizontal
LabelPosition
Defines the possible positions for labels on the pie chart slices.
LegendPosition
Defines possible positions for the legend in the chart.
LineStyle
Enum for different line styles
PieChartLegendPosition
Vertical

Exceptions / Errors

GanttChartException
Exception thrown when Gantt chart data is invalid.