flutter_charts
0.5.2, released 3 years ago by an unverified publisher
A chart library for Flutter supporting line charts and bar charts from simple arrays.
What it does
Allows developers to create line charts and vertical bar charts by specifying data as simple arrays. Features iterative auto-layout strategies for labels and supports positive/negative values and custom options.
AI-written summary of version 0.5.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need basic line charts or vertical bar charts quickly from simple arrays.
- You want built-in iterative auto-layout strategies for chart labels.
Skip it when
- You need advanced chart types like pie charts, gauges, or complex graphs.
- You need highly customizable interactive tooltips and rich animations.
Strengths
- Simple array-based data input.
- Iterative label layout strategy to prevent label overlap.
Weaknesses
- Limited chart type support compared to larger alternatives.
- Dependencies and font configurations can be restrictive.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
None
Widget chartToRun() {
ChartOptions chartOptions = const ChartOptions();
var chartData = RandomChartData.generated(chartOptions: chartOptions);
var lineChartContainer = LineChartTopContainer(
chartData: chartData,
xContainerLabelLayoutStrategy: null,
);
return LineChart(
painter: LineChartPainter(
lineChartContainer: lineChartContainer,
),
);
}Alternatives
Packages that do the same job and could replace flutter_charts.
- fl_chart
More feature-complete and actively maintained charting library supporting line, bar, pie, and scatter charts.
94Compare - syncfusion_flutter_charts
Enterprise-grade charting library with a vast array of chart types and high performance.
91Compare
Works with
Packages commonly used together with flutter_charts: ones it builds on, ones built on it, and its own family.
- vector_mathflutter_charts depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- loggerflutter_charts depends on itAn extensible logger for printing formatted logs with levels, custom filters, and printers.
- google_fontsflutter_charts depends on itFlutter package to load Google Fonts at runtime or bundle them as assets
- tupleflutter_charts depends on itProvides immutable tuple classes for grouping values.
- decimalflutter_charts depends on itArbitrary-precision decimal arithmetic for Dart