Skip to content
pubscout

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.

WASM-ready
$ flutter pub add flutter_charts
Source repository

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.

  • syncfusion_flutter_charts

    Enterprise-grade charting library with a vast array of chart types and high performance.

Works with

Packages commonly used together with flutter_charts: ones it builds on, ones built on it, and its own family.