fcharts 0.0.11 copy "fcharts: ^0.0.11" to clipboard
fcharts: ^0.0.11 copied to clipboard

A chart library for Flutter. Create beautiful, animated, responsive charts using a simple and intuitive API.

fcharts #

Build Status Pub Status

A work-in-progress chart library for Flutter. Until version 1.0.0 the API is subject to change drastically. Needless to say, fcharts is not production ready.

The goal of this project is to allow for creating beautiful, responsive charts using a simple and intuitive API.

Inspired by Mikkel Ravn's tutorial on Flutter widgets and animations. If you have used Recharts (ReactJS library) you will find the high level API to be somewhat familiar.

Demo #

Bar chart demo Touch demo

Example Usage #

class SimpleLineChart extends StatelessWidget {
  // X value -> Y value
  static const myData = [
    ["A", "✔"],
    ["B", "❓"],
    ["C", "✖"],
    ["D", "❓"],
    ["E", "✖"],
    ["F", "✖"],
    ["G", "✔"],
  ];
  
  @override
  Widget build(BuildContext context) {
    return new LineChart(
      lines: [
        new Line<List<String>, String, String>(
          data: myData,
          xFn: (datum) => datum[0],
          yFn: (datum) => datum[1],
        ),
      ],
      chartPadding: new EdgeInsets.fromLTRB(30.0, 10.0, 10.0, 30.0),
    );
  }
}
copied to clipboard

The above code creates:

line chart

37
likes
40
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.14 - 2025.03.29

A chart library for Flutter. Create beautiful, animated, responsive charts using a simple and intuitive API.

Repository (GitHub)
Contributing

License

MIT (license)

Dependencies

collection, flutter, meta

More

Packages that depend on fcharts