Releases: imaNNeo/fl_chart
Releases · imaNNeo/fl_chart
0.51.0
- FEATURE (by @imaNNeoFighT): Add
SideTitleWidget
to help you use it in [SideTitles.getTitlesWidget]. It's a wrapper around your widget. It keeps your providedchild
widget close to the chart. It hasangle
andspace
properties to handle margin and rotation. There is aaxisSide
property that you should fill, it has provided to you in the MetaData object. Check the below sample:
getTitlesWidget: (double value, TitleMeta meta) {
return SideTitleWidget(
axisSide: meta.axisSide,
space: 8.0,
angle: 0.0,
child: const Text("This is your widget"),
);
},
- IMPROVEMENT (by @imaNNeoFighT): Fix default LineChart interval issue on small view sizes, #909.
0.50.6
0.50.5
0.50.4
0.50.3
- IMPROVEMENT Fix order of drawing lineChart bar indicator problem, #198.
- FEATURE Add
isStrokeJoinRound
property in LineChartBarData. - IMPROVEMENT Upgrade to Flutter 3, #997.
- FEATURE Add
chartRendererKey
property to the LineChart, BarChart, and ScatterChart. We pass it directly to our chart renderers that are responsible to render the chart itself (without anything around it like titles), #987.
0.50.1
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.