Skip to content

JacobJust/fl_animated_linechart

Folders and files

NameName
Last commit message
Last commit date
May 29, 2022
May 29, 2022
May 29, 2022
Sep 24, 2019
Aug 22, 2019
Oct 19, 2020
Aug 22, 2019
Sep 26, 2019
Sep 25, 2019
Sep 26, 2019
Sep 25, 2019
Sep 25, 2019
Aug 23, 2019
Aug 23, 2019
May 24, 2022
May 24, 2022
Aug 23, 2019
Aug 22, 2019

Repository files navigation

fl_animated_linechart

Codemagic build status

Animations

An animated chart library for flutter.

  • Support for datetime axis
  • Multiple y axis, supporting different units
  • Highlight selection
  • Animation of the chart
  • Tested with more than 3000 points and still performing

There are currently two different charts:

  • line chart
  • area chart

Getting Started

Try the sample project or include in your project.

Highlight for the line chart: Chart example with highlight

Area chart: Area Chart example Area Chart example

Example code:

LineChart lineChart = LineChart.fromDateTimeMaps([line1, line2], [Colors.green, Colors.blue]);

return Scaffold(
  appBar: AppBar(
    title: Text(widget.title),
  ),
  body: Container(
    child: Column(
        mainAxisSize: MainAxisSize.max,
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        crossAxisAlignment: CrossAxisAlignment.stretch,
        children: [
          Expanded(child: AnimatedLineChart(lineChart)),
        ]
    ),
  ),
);

The example app, can toggle between line chart and area chart. Example app