Styling
...
import 'package:chart_it/chart_it.dart';
class TestBarCharts extends StatefulWidget {
const TestBarCharts({Key? key}) : super(key: key);
@override
State<TestBarCharts> createState() => _TestBarChartsState();
}
class _TestBarChartsState extends State<TestBarCharts> {
@override
Widget build(BuildContext context) {
return BarChart(
... // any chart configs
data: BarSeries(
barData: <BarGroup>[
SimpleBar(
xValue: 1,
yValue: BarData(yValue: 37),
),
MultiBar(
spacing: 10.0,
xValue: 2,
yValues: [
BarData(yValue: 18),
BarData(yValue: 27),
],
),
SimpleBar(
xValue: 3,
yValue: BarData(yValue: 30),
),
MultiBar(
spacing: 10.0,
xValue: 4,
yValues: [
BarData(yValue: 46),
BarData(yValue: 24),
],
),
],
),
);
}
}
Series Styling

Group Styling

Bar Styling

BarDataStyle Properties
Name
Type
Required
Default Value
Last updated