Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter flutter logo fcharts

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

fcharts - a minimalist chart lib
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),
    );
  }
}

the above code creates:

line chart

download the full project for this post from the following button

this source is fully free for all time

download as zip


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top