shadcn_chart library Getting started

Flutter widgets for rendering shadcn/ui Recharts charts in a WebView.

The package bundles self-contained HTML renderers and typed Dart models. Start with ShadcnChartView and a ShadcnChartData subclass such as InteractiveLineChartData.

Classes

AreaChartData
Data for the interactive area chart.
CategorySeriesPoint
A category-based point for grouped bar charts.
ChartSeries
Series metadata shared by cartesian and radial charts.
InteractiveBarChartData
Data for the interactive bar chart.
InteractiveLineChartData
Data for the interactive line chart.
MultipleBarChartData
Data for the grouped bar chart.
PieChartSegment
A segment in pie and donut charts.
PieDonutChartData
Data for donut pie charts.
PieLegendChartData
Data for pie charts with a legend.
RadialStackedChartData
Data for the stacked radial chart.
ShadcnChartController
Controls a mounted ShadcnChartView via JavaScript bridge functions such as window.updateChartData.
ShadcnChartData
Base class for all typed chart payloads.
ShadcnChartView
Embeds a bundled shadcn/Recharts renderer inside an InAppWebView.
TimeRangeOption
A selectable range for area charts.
TimeSeriesPoint
A date-based point for line, area, and interactive bar charts.

Enums

ShadcnChartType
Chart renderers bundled with this package.

Extensions

ShadcnChartTypeAsset on ShadcnChartType
Asset path helpers for ShadcnChartType.