BREAKING CHANGES:
- Updated dependancies
- Updated sdk constraints to
dart 3.5
/flutter 3.24.0
- Changes of the
GridAxis
based charts (LineChart
/CandlestickChart
):- Added extra condition (if data is default alongside with empty data) for painting
GridAxisSettings.defaultDivisionInterval
.
- Added extra condition (if data is default alongside with empty data) for painting
- Changes of the
GridAxis
based charts (LineChart
/CandlestickChart
):- Added
defaultDivisionInterval
toGridAxisSettings
. - Fixed
GirdAxisUtils.adjustMap
.
- Added
- Changes of the
GridAxis
based charts (LineChart
/CandlestickChart
):- Fixed
GirdAxisUtils.adjustMap
.
- Fixed
- Changes of the
CandlestickChart
: - Changes of the
LineChart
:- Fixed an issue of
YAxisLayout.displace
initial painting without a displacement (issue #13).
- Fixed an issue of
- Changes of the
LineChart
:- Added burndown data generator to line chart example.
- Changes of the
GridAxis
based charts (LineChart
/CandlestickChart
):
- Downgraded
decimal
dependency version to^2.3.3
.
- Changes of the
CandlestickChart
:- Added doji painting.
- Tooltip reacting on both X and Y axis instead of only on X axis.
- Changes of the
LineChart
:- Added ability to set starting point of the
LineChart
. - Removed explicit configuration of
LineChartDataType
. - Altitude line is painting to the X axis instead of zero line.
- Line filling path is closed thru either the bottom part of the grid or the top part instead of the starting point. (Generally it means that line filling is beautified)
- Adjusted
LineChart
example.
- Added ability to set starting point of the
- Changes of the
GridAxis
based charts (LineChart
/CandlestickChart
):- Implemented data below 1 calculations for rounding util.
- Added
yAxisBaseline
to settings. - X axis fixed at the bottom and no more attached to zero line.
- Drop line is painting to the X axis instead of zero line.
- Added zero line as a painting option.
- Added ability to use several lines in tooltips.
- Changes of the
CandlestickChart
: - Changes of the
LineChart
:- Fixed gridaxis redundant paddings.
- Changes of the
CandlestickChart
: - Changes of the
LineChart
:- Fixed tooltip title/subtitle builders.
- Documentation cleanup.
- Added
CandlestickChart
. - Changes of the
LineChart
:- Excluded from
LineChartPointStyle
into separate stylesDropLineStyle
andTooltipStyle
. - Extended example.
- Huge refactoring with BREAKING CHANGES.
- Excluded from
- Changes of the
LineChart
:- Temp fix of out of range exception.
- Changes of the
LineChart
:- Temp fix of out of range exception.
- Changes of the
LineChart
:- Added
showPoint
,showTooltip
andselectionEnabled
customisation options toLineChartSettings
. - Fixed typo in
LineChartPointStyle
(tooltopBottomMargin
->tooltipBottomMargin
).
- Added
- Changes of the
DonutChart
:- Fixed selected index reassignment on widget updates.
- Changes of the
GaugeChart
:- Fixed selected index reassignment on widget updates.
- Changes of the
DonutChart
:- Fixed selected section painting issue.
- Changes of the
GaugeChart
:- Fixed selected section painting issue.
- Changes of the
DonutChart
:- Fixed selected section painting issue.
- Renamed
showInitialAnimation
torunInitialAnimation
and moved it toDonutChartSettings
.
- Changes of the
GaugeChart
:- Fixed selected section painting issue.
- Added
runInitialAnimation
toGaugeChartSettings
.
- Changes of the
DonutChart
:- Adjusted arc caching mechanism.
- Changes of the
GaugeChart
:- Adjusted arc caching mechanism.
- Adjusted animation mechanism.
- Added
DonutChart
.
- Changes of the
LineChart
:- Adjusted x axis labels painting positions.
- Changes of the
LineChart
:- Adjusted x axis labels painting positions.
- Changes of the
LineChart
:- Fixed first and last label positions.
- Fixed
LineChartGridType
related issue with labels.
- Changes of the
BarChart
:- Replaced axis painting from main painter to grid painter.
- Changes of the
LineChart
:- Reimplemented label painter and improved it's functionality.
- Changes of the
BarChart
:- Fixed ValueStream issue.
- Changes of the
BarChart
:- Added new setting
BarChartSettings.showAxisXSelectedLabelIfConcealed
. - Fixed labels positioning for
BarAlignment.start
andBarAlignment.center
.
- Added new setting
- Changes of the
BarChart
:- Limited label selection only for
InteractionType.selection
.
- Limited label selection only for
- Changes of the
BarChart
:- Reimplemented
BarChart
X axis labels, from Widgets to CustomPainter. - Reorganized padding and clipping mechanics.
- Fixed
YAxisLayout.displace
related issue forBarFit.contain
and no bar compression (incorrect item hit testing). - Fixed
BarFit.none
issue with state updating.
- Reimplemented
- Changes of the
BarChart
:- Fixed user input point interpolation to chart coordinate system.
- Changes of the
BarChart
:- Added
titleBuilder
andsubtitleBuilder
ofBarChartData
to hashCode and equality operator.
- Added
- Changes of the
BarChart
:- Added
BarChartTooltipStyle
toBarChartStyle
. - Added tooltip builders to
BarChartData
. - Added
Tooltip Style
section to example app. - Implemented tooltip painter.
- Added
- Changes of the
BarChart
:- Implemented
InteractionType.overview
, now in this mode the chart will be able to track the drag gesture to temporarily change the currently selected bar group. - Added
BarChartSettings.xAxisLabelQuantity
that is working in a conjunction withInteractionType.overview
mode to limit the quantity of X axis labels.
- Implemented
- Changes of the
LineChart
:- Fixed doc comment of
LineChartSettings.xAxisLabelQuantity
.
- Fixed doc comment of
- Changes of the
BarChart
:- Fixed typo of
InteractionType
.
- Fixed typo of
- Changes of the
BarChart
:- Changed from
BarChartSettings.showSelection
toInteractionType
enum.
- Changed from
- Added
RepaintBoundary
to all charts.
- Changes of the
BarChart
:- Fixed issue with initial animation.
- Changes of the
BarChart
:- Fixed check for data equality on didUpdateWidget.
- Changes of the
BarChart
:- Added check for data equality on didUpdateWidget.
- Changes of the
BarChart
:- Removed redundant animation triggered by didUpdateWidget instantly after initState.
- Changes of the
BarChart
:- Improved stability of painter
selectedPeriod
usages. - Moved creation of charts BehaviorSubjects into state itself instead of initState method.
- Improved stability of subscriptions of chart widget.
- Improved stability of painter
- Changes of the
BarChart
:- Fixed
YAxisLayout.displace
issue that caused wrong tap zones whenBarFit.contain
was set.
- Fixed
- Changes of the
BarChart
:- Fixed
onSelectedPeriodChanged
extra subscriptions and false triggering
- Fixed
- Changes of the
BarChart
:- Fixed selected period calculation.
- Changes of the
BarChart
:- Reimplemented animations to firstly animate backward with old data/style/settings and then animate forward with new data/style/settings.
- Changes of the
GaugeChart
:- Fixed redundant rebuilds.
- Changes of the
LineChart
:- Removed builder functions from LineChartData
hashCode
andequals
. - Changed
hashMap
usage to defaulthashCode
due to unexpected behaviour.
- Removed builder functions from LineChartData
- Changes of the
LineChart
:- Fixed temp solution of summer/winter time shifts.
- Changes of the
LineChart
:- Added temp solution to fix summer/winter time shifts.
- Changes of the
LineChart
:- Fixed typedData dates generator again.
- Changes of the
LineChart
:- Fixed typedData dates generator.
-
Changes of the
LineChart
:- Fixed documentation.
-
Changes of the
GaugeChart
:- Redesigned section tap handling (moved it from painter to widget).
- Fixed
GaugeChartData
hash code generation. - Fixed limitation that prevented from drawing more then one chart on the screen.
- Changes of the
LineChart
:- Fixed initial dot position.
- Changes of the
GaugeChart
:- Fixed normalized lists mismatch in case of initial zero only data.
- Changes of the
LineChart
:- Added line and point animation.
- Changes of the
BarChart
:- Redesigned border painting on the bars that are smaller then border stroke plus top bar radius.
-
Fixes of the
BarChart
:- Fixed padding issue of
BarChart
withBarFit.contain
fit type. - Fixed tap handling of
BarChart
withBarFit.contain
fit type.
- Fixed padding issue of
-
Changes of the
BarChart
:- Redesigned zero bars to use border color as a main color if any provided, otherwise will fallback to normal color selection type.
- Changes of the
BarChart
:- Added separate colors for selected bars.
- Added bar border customizations.
- Added shadow customizations.
- Added Y axis label layout customizations.
- Added bar fitting customizations.
- Reverted previous change.
- Mark custom paint of
GaugeChart
as complex.
- Increased blur radius from 1px to 2px.
- Added blur for the edges of the
GaugeChart
to remove "sharpened" edges (possibly it is caused by flutter itself).
- Added explicitly anti-aliasing to all
Paint
's. - Set
filterQuality
toFilterQuality.medium
for allPaint
's.
- Changed
GaugeChart.onSelectionChanged
delegate type fromValueChanged<int>
toIndexedPredicate
which now allows to control whether animation is needed or not by passingtrue/false
as a return value.
- Adjusted
GaugeChartBackgroundStyle.borderFilled
check before painting border. - Removed ignoring of the taps over already selected section as it caused more issues than value.
- Fixed
GaugeChartBackgroundStyle.borderColor
default value. - Redo radius calculation, changed constraints from
Size.shortestSize
toSize.width
.
- Added
GaugeChart
. - Limitations:
- Large borders are drawing outside of the path on the bottom side;
- Only one chart could be on the screen;
- No documentation for gauge chart.
- Adjusted drawing of limited X axis labels.
- Adjusted example app.
- Added
xAxisLabelQuantity
toLineChartSettings
which defines the quantity of the X axis labels to draw.
Full list of chages:
- Added caching of the typedData getter, it will significantly improve rendering performance of the
LineChart
.
- Added caching of the division size calculation method, it will significantly improve rendering performance of the
LineChart
.
- Added negative values support to
LineChart
.
- Fixed grid redraw issue caused by usage of old data due to animation implementation.
- Fixed taps on
BarChart
s bars.
- Added animation for the
BarChart
. - Added alignment of the bars for the
BarChart
. - BREAKING CHANGE:
- chart data are now drawing from the first to the last item (in previous versions they were drawn reversed), and this change has led to changes in
BarChartData.selectedPeriod
getter (previously used to get first item as fallback, but now - last item).
- chart data are now drawing from the first to the last item (in previous versions they were drawn reversed), and this change has led to changes in
- Added ability to tap between chart and x axis label.
- Added handling of taps over the bar chart.
- Fixed
selectedPeriod
functionality.
- Fixed
onSelectedPeriodChanged
raising from selection changed. - Fixed grid and axis positioning if there's no data initially provided.
- Added TextStyle to the RichLabelBuilder delegate.
- Fixed zero length data chart drawing.
- Fixed extra scrolling if padding was provided.
- Fixed label positioning if there's too few data.
- Added
BarChart
.
- Fixed
LimitLabelSnapPosition.chartBoundary
bias calculations.
- Removed bool parameters
showFirstAxisYDivision
andshowLastAxisXDivision
and added enumAxisDivisionEdges
that provides more complex customization of axis divisions at the edges of the grid. - Added snap position of limit label.
- Added labels to the Y axis of the chart, that caused redesigning of
maxValue
calculation mechanic.
- Fixed chart drawing with only 1 data entry.
- Added detection of
horizontal drag start
.
- Redesigned drawing of the first point.
- Fixed timezone issue.
- Fixed styles for point drop line stroke.
- Fixed value normalization if all provided data is 0.
- Fixed StackOverflowException for descending unidirectional chart.
- Fixed
xAxisDates
getter for unidirectional chart with empty data.
- Fixed
typedData
getter when data is empty.
- Allowed chart creation with less then 2 points.
- Added option to set padded value to max value.
- Fixed color/gradient fill.
- Added to
LineChartGridStyle
stroke and color for X and Y axis as a separate values. - Added option to show first Y axis grid line.
- Added option to show last X axis grid line.
- Renamed blurRadius to shadowBlurRadius in
LineChartLineStyle
.
- Added changelog.
- Added
LineChart
.