FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
nullSpots
in fromLine and toLine, #912.fromY
and toY
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.y
property to toY
in BarChartRodData and BackgroundBarChartRodData due to the above feature.FlSpot.nullSpot
at the first of list bug, #912.scatterLabelSettings
property in ScatterChart which lets you to add titles on the spots, #902.clipData
implementation in ScatterChart and LineChart, #897.baselineX
and baselineY
property in our axis-based charts, It fixes a problem about interval
which mentioned in #893 (check this sample.distanceCalculator
to LineTouchData
which is used to calculate the distance between spots and touch events, #716, #261, #892LineTouchResponse
response now contains a list of TouchLineBarSpot
instead of LineBarSpot
. They are ordered based on their distance to the touch event and also contain that distance.textAlign
property in the SideTitles, #784.centerRadius = double.infinity
problem, #747.c(FlTouchEvent event, BaseTouchResponse? response)
which FlTouchEvent determines which touch/pointer event happened (such as FlTapUpEvent
, FlPanUpdateEvent
, ...), and BaseTouchResponse gives us the chart response.touchInput
and clickHappened
properties anymore. Use FlTouchEvent provided in the callback instead of touchInput
. Check event is FlTapUpEvent
to detect touch events instead of checking clickHappened
;longPress
touch events. check FlTouchEvent to see all kind of supported touch/pointer events (which can be FlLongPressStart
, FlLongPressMoveUpdate
, FlLongPressEnd
, ...). Also you can check out touch handling doc, #649.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)ScatterChart
default touchHandling crashBarChartAlignment.spaceEvenly
as alignment
property of BarChartData by defaulttextStyle
of ScatterTooltipItem is now nullable and optional. bottomMargin
is also optional (default is zero). So both are named parameters now.ScatterChart
.fl_chart
and resolve more issues. Now you can buy me a coffee!borderSide
property in BarChartRodData and BarChartRodStackItem to draw strokes around each bar and rod stack items, #714.getTextStyles
callback now give you a context
and value
(previously it was only a value
).colorStops
calculation which used in gradient colors, #732.