Chart It
A customisable charts library with seamless animations for flutter
Last updated
A customisable charts library with seamless animations for flutter
Last updated
dependencies:
chart_it: ^0.2.2$ flutter pub add chart_it...
import 'package:chart_it/chart_it.dart';
...
child: BarChart(
maxYValue: 50,
data: BarSeries(
barData: <BarGroup>[
SimpleBar(
xValue: 10,
label: (value) => 'Group 1',
yValue: const BarData(yValue: 25),
),
SimpleBar(
xValue: 6,
label: (value) => 'Group 1',
yValue: const BarData(yValue: 12),
),
SimpleBar(
xValue: 19,
label: (value) => 'Group 1',
yValue: const BarData(yValue: 38),
),
],
),
),...
import 'package:chart_it/chart_it.dart';
...
child: PieChart(
data: PieSeries(
donutRadius: 50.0,
donutSpaceColor: Colors.white,
donutLabel: () => 'Market Shares',
slices: <SliceData>[
SliceData(
style: const SliceDataStyle(radius: 105.0, color: Colors.red),
label: (percent, value) => 'Tesla',
value: 34,
),
SliceData(
style: const SliceDataStyle(radius: 90.0, color: Colors.blueGrey),
label: (percent, value) => 'Space X',
value: 18,
),
SliceData(
style: const SliceDataStyle(radius: 90.0, color: Colors.green),
label: (percent, value) => 'Google',
value: 42,
),
SliceData(
style: const SliceDataStyle(radius: 90.0, color: Colors.cyanAccent),
label: (percent, value) => 'Microsoft',
value: 57,
),
],
),
),