fl_chart 0.12.2
fl_chart: ^0.12.2 copied to clipboard
A powerful Flutter chart library, currently supporting Line Chart, Bar Chart and Pie Chart.
0.12.2 #
- [Bugfix] Fixed PieChart badges draw in first frame problem, #513.
- [Improvement] Use CanvasWrapper to proxy draw functions (It does not have any effect on the result, it makes the code testable)
0.12.1 #
- [Bugfix] Fixed PieChart badges bug with re-implementing the solution, #507
- [Bugfix] Fix the setState issue using PieChart in the ListView, #467
- [Bugfix] Fixed formatNumber bug for negative numbers, #486.
- [Improvement] Added applyCutOffY property in BarAreaSpotsLine to inherit cutOffY property of its parent, #478.
0.12.0 #
- [Improvement] [BREAKING] Replaced
colorproperty withcolorsin BarChartRodData, and BackgroundBarChartRodData to support gradient in BarChart, instead of solid color, #166. Check BarChartSample3 - [Improvement] Improved gradient stops calculating algorithm.
- [Improvement] [BREAKING] Changed SideTitle's
textStyleproperty togetTextStylesgetter (it gives you the axis value, and you must return a TextStyle based on it), It helps you to have a different style for specific text, #439. Check it here LineChartSample3 - [Improvement] Added
badgeWidget, andbadgePositionPercentageOffsetin each PieChartSectionData to provide a widget to show in the chart, see this sample, #443. Providing a widget is an important step in our library, if it works perfectly, we will aplly this solution on other parts. Then I appreciate any feedback. - [Bugfix] Fixed aboveBarArea flickers after setState, #440.
0.11.1 #
- [Bugfix] Fixed drawing BarChart rods with providing minY (for positive), maxY (for negative) values bug, #404.
- [Bugfix] Fixed example app build fail error, by upgrading flutter_svg package to
0.18.1
0.11.0 #
- [Bugfix] Prevent show ScatterSpot if show is false, #385.
- [Improvement] Set default centerSpaceRadius to double.infinity in PieChartData, #384.
- [Improvement] Allowed to have topTitles in the BarChart, see BarChartSample5, #394.
- [Improvement] Added
touchedStackItemandtouchedStackItemIndexproperties in the BarTouchedSpot to determine in which BarChartRodStackItem click happened, #393. - [Improvement] [BREAKING] Renamed
rodStackItemtorodStackItemsin BarChartRodData.
0.10.1 #
- [Improvement] Show barGroups
xvalue instead ofindexin bottom titles, #342. - [Improvement] [BREAKING] Use
double.infinityinstead ofdouble.nanfor lettingenterSpaceRadiusbe as large as possible in the (PieChartData)[https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/pie_chart.md#piechartdata], #377. - [Bugfix] Fixed PieChart bug with 1 section, #368.
0.10.0 #
- [IMPORTANT] BLACK LIVES MATTER
- [Improvement] Auto calculate interval in SideTitles and FlGridData, instead of hard coding 1, to prevent some performance issues like #101, #322. see BarChartSample4.
- [Bugfix] drawing dot on null spots
- [Bugfix] Fixed LineChart have multiple NULL spot bug.
- [Feature] Added
checkToShowTitleproperty to the SideTitles, for checking show or not show titles in the provided value, #331. see LineChartSample8. - [Feature] Added compatibily to have customized shapes for FlDotData, just override
FlDotData.etDotPainterand pass your own painter or use built-in ones, see this sample. - [Improvement] [BREAKING] Replaced
clipToBorderwithclipDatain LineChartData to support clipping 4 sides of a chart separately.
0.9.4 #
- [Bugfix] Fixed showing PieChart on web (we've ignored
groupSpaceon web, because some BlendModes are not working yet)
0.9.3 #
- [BugFix] Fixed groupBarsPosition exception, #313.
- [Improvement] Shadows default off, #316.
0.9.2 #
- [Feature] Added
shadowproperty in LineChartData to have shadow effect in our LineChart, take a look at LineChartSampl5, #304. - [Feature] Added
isStepLineChart, andlineChartStepDatain the LineChartData to support Step Line Chart, take a look at lineChartSample3, #303. - [Improvement] Added
barDataparameter to checkToShowDot Function in the FlDotData.
0.9.0 #
- Added
strokeWidth,getStrokeColor,getDotColorin the FlDotData, also removeddotColorfrom it (you should usegetDotColorinstead, it gives you more customizability), now we have more customizability on FlDotData, check line_chart_sample3, and line_chart_sample5, #233, #99, #274. - Added
equatablelibrary to solve some equation issues. - Implemented negative values feature for the BarChart, #106, #103.
- add Equatable for all models, it leads to have a better performance.
- Fixed a minor touch bug in the BarChart.
- Fixed ScatterChart built-in touch behaviour.
- Fixed drawing grid lines bug, #280.
- Implemented FlDotData.
getDotColorin a proper way, it returns a color based on the LineChartBarData color, #274, #282. - Updated LineChartData.
showingTooltipIndicatorsfield type to list of ShowingTooltipIndicators to have a clean naming.
0.8.7 #
- Added
showproperty in theVerticalLineLabeland set default tofalse, #256. - Fixed bug, when the screen size is square, #258.
0.8.6 #
- Fixed exception on extraLinesData, #251.
- Show extra lines value with 1 floating-point.
- Implemented multi-section lines in LineChart, check this issue (#26) and this merge request (#252)
0.8.5 #
- Added
fitInsideHorizontallyandfitInsideVerticallyin ScatterTouchTooltipData - Fixed
clipToBorderfunctionality basdd on the border sides.
0.8.4-test1 #
- Improved documentations
0.8.4 #
- Added
preventCurveOvershootingThresholdinLineChartBarDatafor applying prevent overshooting algorithm, #193. - Fixed
clipToBorderbug in the LineChartData, #228, #214. - Removed unused
enableNormalTouchproperty from all charts TouchData. - Implemented ImageAnnotations feature (added
image, andsizedPicturein the VerticalLine, and the HorizontalLine, check this sample for more information. - Enable 'fitInsideTheChart' to support vertical tooltip overflow as well, #225.
- BREAKING CHANGE-> changed
fitInsideTheCharttofitInsideHorizontallyand addedfitInsideVerticallyto support both sides, #225.
0.8.3 #
- prevent to set BorderRadius with numbers larger than (width / 2), fixed #200.
- added
fitInsideTheChartproperty insideBarTouchTooltipDataandLineTouchTooltipDatato force tooltip draw inside the chart (shift it to the chart), fixed #159.
0.8.2 #
- added
fullHeightTouchLinein LineTouchData to show a full height touch line, see sample in merge request #208. - added
label(HorizontalLineLabel) inside HorizontalLine and VerticalLine to show a lable text on the lines.
0.8.1 #
- yaaay, added some basic unit tests
- skipped the first and the last grid lines from drawing, #174.
- prevent to draw touchedSpotDot if
showis false, #180. - improved paint order, more details in #175.
- added possibility to set
double.nanincenterSpaceRadiusfor the PieChart to let it to be calculated according to the view size, fixed #179.
0.8.0 #
- added functionallity to have dashed lines, in everywhere we draw line, there should be a property called
dashArray(for example check LineChartBarData, and see LineChartSample8) - BREAKING CHANGE:
- swapped HorizontalExtraLines, and VerticalExtraLines functionalities (now it has a well definition)
- and also removed
showVerticalLines, andshowHorizontalLinesfrom ExtraLinesData, if thehorizontalLines, orverticalLinesis empty we don't show them
0.7.0 #
- added rangeAnnotations in the LineChartData to show range annotations, #163.
- removed
isRoundfiend in the BarChartRodData to add more customizability, and fixed #147 bug. - fixed sever bug of click on pie chart, #146.
0.6.3 #
- Fixed drawing borddr bug, #143.
- Respect text scale factor when drawing text.
0.6.2 #
- added
axisTitleDatafield to all axis base charts (Line, Bar, Scatter) to show the axes titles, see LineChartSample4 and LineChartSample5.
0.6.1 #
- added
betweenBarsDataproperty in LineChartData, fixed #93.
0.6.0 #
- fixed calculating size for handling touches bug, #126
- added
rotateAngleproperty to rotate the SideTitles, fixed issue #75 , see in this sample - BREAKING CHANGES:
- some property names updated in the FlGridData:
drawHorizontalGrid->drawHorizontalLine,getDrawingHorizontalGridLine->getDrawingHorizontalLine,checkToShowHorizontalGrid->checkToShowHorizontalLine(and same for vertical properties), fixed issue #92
0.5.2 #
- drawing titles using targetData instead of animating data, fixed issue #130.
0.5.0 #
- π₯ Added ScatterChart (read about it) π₯
- Added Velocity to in FlPanEnd to determine the Tap event.
0.4.3 #
- fixed a size bug, #100.
- direction support for gradient on the LineChart (added
gradientFromandgradientToin the LineChartBarData).
0.4.2 #
- 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)
0.4.1 #
- fixed handling disabled
handleBuiltInTouchesstate bug
0.4.0 #
- BIG BREAKING CHANGES
- There is no
FlChartclass 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
touchedResultSinkanymore and usetouchCallbackfunction which is added to each TouchData like (LineTouchData), read more. TouchTooltipDataclass insideLineTouchDataandBarTouchDatarenamed toLineTouchTooltipDataandBarTouchTooltipDatarespectively, and alsoTooltipItemclass renamed toLineTooltipItemandBarTooltipItem.spotsinsideLineTouchResponserenamed tolineBarSpotsand type changed fromLineTouchedSpottoLineBarSpot.FlTouchNormapInputrenamed toFlTouchNormalInput(fixed typo)- added
showingTooltipIndicatorsin LineChartData to show manually tooltips inLineChart. - added
showingIndicatorsin LineChartBarData to show manually indicators inLineChart. - added
showingTooltipIndicatorsin BarChartGroupData to show manually tooltips inBarChart.
0.3.4 #
- BREAKING CHANGES
- swapped horizontal and vertical semantics in FlGridData, fixed this issue.
0.3.3 #
- BREAKING CHANGES
- added support for drawing below and above areas separately in LineChart
- added cutOffY feature in LineChart, see this issue
- added
aboveBarDatain LineChartBarData BelowBarDataclass renamed to BarAreaData to reuse for both above and below areasbelowSpotsLinerenamed tospotsLinein BarAreaDatacutOffYandapplyCutOffYfields are added in BarAreaData to handle cutting of drawing below or above areaBelowSpotsLinerenamed to BarAreaSpotsLine, and inside itcheckToShowSpotBelowLinerenamed tocheckToShowSpotLine
0.3.2 #
- provided default size (square with 30% smaller than screen) for the FLChart, fixed this issue.
0.3.1 #
- added
intervalfield in SideTitles, fixed this issue
0.3.0 #
- π₯ Added Animations π₯, read about it.
0.2.2 #
- fixed a typo on CHANGELOG
- reformatted dart files with
flutter formatcommand
0.2.1 #
- fixed #64, added a technical debt :(
0.2.0 #
- fixed a critical got stuck in draw loop bug,
- set
BarChartGroupDatax as required property to keep consistency and prevent unpredictable bugs
0.1.6 #
- added
enableNormalTouchproperty to chart's TouchData to handle normal taps, and enabled by default.
0.1.5 #
- reverted getPixelY() on axis_chart_painter to solve the regression bug (fixed issue #48)
- (fix) BelowBar considers its own color stops refs #46
0.1.4 #
- bugfix -> fixed draw bug on BarChart when y value is very low in high scale y values (#43).
0.1.3 #
- added
SideTitlesclass to hold titles representation data, and used inFlTitlesDatato show left, top, right, bottom titles, instead of legacy direct parameters, and implemented a reversed chart sample using this update.
0.1.1 #
- nothing important
0.0.8 #
- 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
0.0.7 #
- 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
0.0.6 #
- fixed charts repainting bug, #16
0.0.5 #
- added clipToBorder to the LineChartData to clip the drawing to the border, #3
0.0.4 #
- fixed bug of adding bar with y = 0 on bar chart #13
0.0.3 #
- renamed
FlChartWidgettoFlChart(our main widget) and now you have to importpackage:fl_chart/fl_chart.dartinstead ofpackage:fl_chart/fl_chart_widget.dart - renamed
FlChart*toBaseChart*(parent class of our charts likePieChart) - renamed
FlAxisChart*toAxisChart*
0.0.2 #
- fixed
minX,maxXfunctionality on LineChart - restricted to access private classes of the library