Releases: imaNNeo/fl_chart
Releases · imaNNeo/fl_chart
0.50.0
This release has some breaking changes. So please check out the migration guide here
- IMPROVEMENT Allow to return a Widget in SideTitles.getTitlesWidget instead of a
String
. For example, you can pass an Icon widget as a title, #183. Check below samples:
LineChartSample 8 (Source Code)
BarChartSample 7 (Source Code)
![]()
- BREAKING Structure of
FlTitlesData
,AxisTitles
, andSideTitles
are changed. Because we are using a new system which allows you to pass any Flutter Widget as a title instead of passingstring
,textStyle
,textAlign
,rotation
, ... (Read our Migration Guide) - FEATURE Now we can use any Gradient such as LinearGradient and RadialGradient everywhere we have gradient.
- BUGFIX Fix BarChart rods gradient problem, #703.
- BREAKING
colors
property renamed tocolor
to keep only one solid color. And now we have agradient
field instead ofcolorStops
,gradientFrom
andgradientTo
in following classes: BarChartRodData, BackgroundBarChartRodData, BarAreaData, BetweenBarsData, LineChartBarData. (Read our Migration Guide to learn more about it)
0.46.0
- BUGFIX Fix drawing BetweenBarsArea problem when there are
nullSpots
in fromLine and toLine, #912. - FEATURE Allow to have vertically grouped BarChart using
fromY
andtoY
properties in BarChartRodData It means you can have a negative and a positive bar chart at the same X location. #334, #875. Check BarChartSample5 and [BarChartSample6](https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/bar_chart.md#sample-6-source-code. - BREAKING Renamed
y
property totoY
in BarChartRodData and BackgroundBarChartRodData due to the above feature. - BUGFIX Fix smaller radius bubble hiding behind bigger radius bubble in ScatterChart, #930.
- BUGFIX Fix tooltip text alignment and direction in line chart, #927.
0.45.1
0.45.0
- BUGFIX Fix
clipData
implementation in ScatterChart and LineChart, #897. - BUGFIX Fix PieChart changing sections issue (we have disabled semantics for pieChart badgeWidgets), #861.
- BUGFIX Fix LineChart width smaller width or height lower than 40, #869, #857.
- BUGFIX Allow to show title when axis diff is zero, #842, #879.
- IMPROVEMENT Improve iteration over axis values logic (it solves some minor problems on showing titles when min, max values are below than 1.0).
- IMPROVEMENT Add
baselineX
andbaselineY
property in our axis-based charts, It fixes a problem aboutinterval
which mentioned in #893 (check this sample. - IMPROVEMENT Added
distanceCalculator
toLineTouchData
which is used to calculate the distance between spots and touch events, #716, #261, #892 - BREAKING
LineTouchResponse
response now contains a list ofTouchLineBarSpot
instead ofLineBarSpot
. They are ordered based on their distance to the touch event and also contain that distance.
0.41.0
- BUGFIX Fix getNearestTouchedSpot. Previously it returned the first occurrence of a spot within the threshold, and not the nearest, #641, #645.
- FEATURE Add
textAlign
property in the SideTitles, #784. - IMPROVEMENT Write some unit-tests and enable code coverage reports in our CI
0.40.6
0.40.5
- BUGFIX Fix BarChart empty groups state error, #797.
- BUGFIX Fix drawTooltipOnTop direction minor bug, #815.
- BUGFIX Fix section with zero value problem in PieChart (disabled animation on changing value to zero and from zero), #817
- BUGFIX Fix pie chart stroke problem when adding space between sections (using new approach), #818.
- IMPROVEMENT Fix interval below one, #811
0.40.2
0.40.1
0.40.0
- BUGFIX Fixed pieChart
centerRadius = double.infinity
problem, #747.c - BREAKING Charts touchCallback signature has changed to
(FlTouchEvent event, BaseTouchResponse? response)
which FlTouchEvent determines which touch/pointer event happened (such asFlTapUpEvent
,FlPanUpdateEvent
, ...), and BaseTouchResponse gives us the chart response. - BREAKING Chart touchResponse classes don't have
touchInput
andclickHappened
properties anymore. Use FlTouchEvent provided in the callback instead oftouchInput
. Checkevent is FlTapUpEvent
to detect touch events instead of checkingclickHappened
; - IMPROVEMENT Again we support
longPress
touch events. check FlTouchEvent to see all kind of supported touch/pointer events (which can beFlLongPressStart
,FlLongPressMoveUpdate
,FlLongPressEnd
, ...). Also you can check out touch handling doc, #649. - IMPROVEMENT Added
mouseCursorResolver
callback in touchData classes such as LineTouchData and BarTouchData. You can change the MouseCursor based on the provided FlTouchEvent and touchResponse using this callback. (We have used this feature in PieChartSample2) - BUGFIX Fixed
ScatterChart
default touchHandling crash - BUGFIX Fix text styles when updating the theme. Check this theme-aware-sample.
- IMPROVEMENT Show narrow horizontal and vertical grid lines by default.
- IMPROVEMENT Show all left, top (except BarChart), right, bottom titles in Axis based charts by default.
- IMPROVEMENT Set
BarChartAlignment.spaceEvenly
asalignment
property of BarChartData by default - IMPROVEMENT Allow BarChart and LineChart have empty values instead of throwing exception (we don't show anything if there is nothing provided)
- BREAKING
textStyle
of ScatterTooltipItem is now nullable and optional.bottomMargin
is also optional (default is zero). So both are named parameters now. - IMPROVEMENT We improved touch precision of
ScatterChart
. - BUGFIX Fix overlapping last gridlines on border lines problem.
- NEWS Your donation motivates me to work more on the
fl_chart
and resolve more issues. Now you can buy me a coffee!