awesome_scrollable_charts 0.4.0
awesome_scrollable_charts: ^0.4.0 copied to clipboard
Beautiful, animated, and highly customizable scrollable charts for Flutter. Features line charts and stacked area charts with smooth animations and extensive styling options.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.4.0 - 2026-11-16 #
Added #
- Optional
YAxisStylefor line charts with fixed labels, dynamically rounded ranges, horizontal grid lines, a custom formatter, configurableintermediateLabelCount, and optional zero labels viashowZeroLabel. Disabled by default.
0.3.1 - 2026-11-13 #
Added #
- Optional
LineData.endIndexto stop a series at its final observed label without extending its line, markers, labels, or Y-axis range into later labels.
0.3.0 - 2026-11-13 #
0.2.1 - 2025-11-09 #
Fixed #
- Fixed
visibleLabelsnot working correctly when chart widget width is not full screen. Charts now properly use the constrained layout width instead of device screen width for all calculations, ensuring correct label visibility, scroll behavior, and pointer positioning in containers likeSizedBox,Expanded, orRowwith specific widths.
0.2.0 - 2025-01-07 #
Added #
LabelTransformertypedef for customizing label formattingdefaultLabelTransformerfunction that provides default label formattinglabelTransformerparameter to bothLineChartandStackedAreaChartwidgetsLabelOverlapBehaviorenum with three strategies for handling overlapping line labels:none- No overlap handling (default, maintains backward compatibility)adjust- Smart collision detection that automatically adjusts label positions verticallyhide- Hides overlapping labels, showing only non-conflicting ones
overlapBehaviorparameter toLineLabelStylefor configuring label overlap strategy
Changed #
- BREAKING:
CumulativeLabelStylenow usesTextStyle textStyleinstead of separatetextColor,fontSize, andfontWeightproperties - BREAKING:
XAxisLabelStylenow usesTextStyle textStyleinstead of separatecolor,fontSize, andfontWeightproperties - BREAKING:
LineLabelStylenow usesTextStyle textStyleinstead of separatetextColor,fontSize, andfontWeightproperties
Migration Guide #
To migrate from 0.1.0 to 0.2.0, update your style configurations:
// Before (0.1.0)
XAxisLabelStyle(
color: Colors.black87,
fontSize: 12.0,
fontWeight: FontWeight.w500,
)
// After (0.2.0)
XAxisLabelStyle(
textStyle: TextStyle(
color: Colors.black87,
fontSize: 12.0,
fontWeight: FontWeight.w500,
),
)
0.1.0 - 2025-01-07 #
Added #
- Initial release of Scrollable Charts
- LineChart widget with smooth scrolling and animations
- StackedAreaChart widget for cumulative data visualization
- Extensive customization options:
- Grid lines (solid and dashed)
- Data markers (8 different shapes)
- Custom colors and styling
- X-axis and zero-line customization
- Data labels with positioning
- Animation system:
- Smooth Y-axis range animations
- Configurable animation curves and durations
- Scroll snap physics
- Data handling features:
- Support for missing data points
- Multiple lines/areas per chart
- Callbacks for visible range and selection changes
- Comprehensive documentation and examples