- 💥 Added ScatterChart (read about it) 💥
- Added Velocity to in FlPanEnd to determine the Tap event.
- fixed a size bug, #100.
- direction support for gradient on the LineChart (added
gradientFrom
andgradientTo
in the LineChartBarData).
- implemented stacked bar chart, check the samples
- added `groupSpace in BarChartData to apply space between bar groups
- fixed drawing left and right titles of the BarChart
- fixed showing gridLines bug (the grid line of exact max value of each direction doesn't show)
- fixed handling disabled
handleBuiltInTouches
state bug
- BIG BREAKING CHANGES
- There is no
FlChart
class anymore, instead use LineChart, BarChart, and PieChart directly as a widget. - Touch handling system is improved and for sure we have some changes, there is no
touchedResultSink
anymore and usetouchCallback
function which is added to each TouchData like (LineTouchData), read more. TouchTooltipData
class insideLineTouchData
andBarTouchData
renamed toLineTouchTooltipData
andBarTouchTooltipData
respectively, and alsoTooltipItem
class renamed toLineTooltipItem
andBarTooltipItem
.spots
insideLineTouchResponse
renamed tolineBarSpots
and type changed fromLineTouchedSpot
toLineBarSpot
.FlTouchNormapInput
renamed toFlTouchNormalInput
(fixed typo)- added
showingTooltipIndicators
in LineChartData to show manually tooltips inLineChart
. - added
showingIndicators
in LineChartBarData to show manually indicators inLineChart
. - added
showingTooltipIndicators
in BarChartGroupData to show manually tooltips inBarChart
.
- BREAKING CHANGES
- swapped horizontal and vertical semantics in FlGridData, fixed this issue.
- BREAKING CHANGES
- added support for drawing below and above areas separately in LineChart
- added cutOffY feature in LineChart, see this issue
- added
aboveBarData
in LineChartBarData BelowBarData
class renamed to BarAreaData to reuse for both above and below areasbelowSpotsLine
renamed tospotsLine
in BarAreaDatacutOffY
andapplyCutOffY
fields are added in BarAreaData to handle cutting of drawing below or above areaBelowSpotsLine
renamed to BarAreaSpotsLine, and inside itcheckToShowSpotBelowLine
renamed tocheckToShowSpotLine
- provided default size (square with 30% smaller than screen) for the FLChart, fixed this issue.
- added
interval
field in SideTitles, fixed this issue
- 💥 Added Animations 💥, read about it.
- fixed a typo on CHANGELOG
- reformatted dart files with
flutter format
command
- fixed #64, added a technical debt :(
- fixed a critical got stuck in draw loop bug,
- set
BarChartGroupData
x as required property to keep consistency and prevent unpredictable bugs
- added
enableNormalTouch
property to chart's TouchData to handle normal taps, and enabled by default.
- reverted getPixelY() on axis_chart_painter to solve the regression bug (fixed issue #48)
- (fix) BelowBar considers its own color stops refs #46
- bugfix -> fixed draw bug on BarChart when y value is very low in high scale y values (#43).
- added
SideTitles
class to hold titles representation data, and used inFlTitlesData
to show left, top, right, bottom titles, instead of legacy direct parameters, and implemented a reversed chart sample using this update.
- added
preventCurveOverShooting
on BarData, check this issue
- nothing important
- added Touch Interactivity, read more about it here
- added backgroundColor to axis based charts (LineChart, BarChart) to draw a solid background color behind the chart
- added getDrawingHorizontalGridLine, getDrawingVerticalGridLine on FlGridData to determine how(color, strokeWidth) the grid lines should be drawn with the given value on FlGridLine
- added ExtraLinesData in the LineChartData to draw extra horizontal and vertical lines on LineChart
- added BelowSpotsLine in the BlowBarData to draw lines from spot to the bottom of chart on LineChart
- fixed charts repainting bug, #16
- added clipToBorder to the LineChartData to clip the drawing to the border, #3
- fixed bug of adding bar with y = 0 on bar chart #13
- renamed
FlChartWidget
toFlChart
(our main widget) and now you have to importpackage:fl_chart/fl_chart.dart
instead ofpackage:fl_chart/fl_chart_widget.dart
- renamed
FlChart*
toBaseChart*
(parent class of our charts likePieChart
) - renamed
FlAxisChart*
toAxisChart*
- fixed
minX
,maxX
functionality on LineChart - restricted to access private classes of the library