chart_components 0.1.1 chart_components: ^0.1.1 copied to clipboard
Two chart components for Flutter. An animated bar chart with label, value, icon and bar color. An animated calendar grid chart based on the github calendar. Render the month days and asigned a color w [...]
Chart_Components #
- Animated bar chart for Flutter. Easy to implement and customize.
- Animated calendar grid for Flutter.
Demo #
Usage #
To use plugin, just import package import 'package:chart_components/chart_components.dart';
Example #
Check de example directory to access the project that implements the image shown above.
........
CalendarGrid(
year: 2020,
month: 1,
getColorOfDay: DataRepository.getDayColor,
animationDuration: Duration(milliseconds: 1500),
),
...........
child: BarChart(
data: data,
labels: labels,
dislplayValue: true,
reverse: true,
getColor: DataRepository.getColor,
getIcon: DataRepository.getIcon,
barWidth: 42,
barSeparation: 12,
animationDuration: Duration(milliseconds: 1800),
animationCurve: Curves.easeInOutSine,
itemRadius: 30,
iconHeight: 24,
footerHeight: 24,
headerValueHeight: 16,
roundValuesOnText: false,
lineGridColor: Colors.lightBlue,
),