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

pie chart

this flutter package provides a pie chart widget with cool animation.

�� installation

in the dependencies: section of your pubspec.yaml, add the following line:

version

dependencies:
  pi.e_chart: <latest version>

❔ usage

import this class

import 'package:p.ie_chart/pie_chart.dart';

usage is simple. pi.e chart is a widget and it just need a map<string,double> as its data input.

pie-chart

map<string, double> datamap = new map();
datamap.putifabsent("flutter", () => 5);
datamap.putifabsent("react", () => 3);
datamap.putifabsent("xamarin", () => 2);
datamap.putifabsent("ionic", () => 2);

piechart(
      datamap: datamap,
      legendfontcolor: colors.bluegrey[900],
      legendfontsize: 14.0,
      legendfontweight: fontweight.w500,
      animationduration: duration(milliseconds: 800),
      chartlegendspacing: 32.0,
      chartradius: mediaquery
          .of(context)
          .size
          .width / 2.7,
      showchartvaluesinpercentage: true,
      showchartvalues: true,
      chartvaluescolor: colors.bluegrey[900].withopacity(0.9),
      )

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

Comments are closed.

Top