FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
getTooltipColor
which provides more customizability), checkout the full migration guide here./// Migration guide:
/// This is the old way:
BarChartData(
barTouchData: BarTouchData(
touchTooltipData: BarTouchTooltipData(
tooltipBgColor: Colors.blueGrey,
)
)
)
/// This is the new way:
BarChartData(
barTouchData: BarTouchData(
touchTooltipData: BarTouchTooltipData(
getTooltipColor: (BarChartGroupData group) => Colors.blueGrey,
)
)
)
dotPainter
property to ScatterSpot to allow customizing the dot painter, #568color
and radius
properties from ScatterSpot (use dotPainter
instead), #568strokeWidth
to 0.0/// Migration guide:
/// This is the old way:
ScatterSpot(
2,
5,
color: Colors.red,
radius: 12,
)
/// This is the new way:
ScatterSpot(
2,
8,
dotPainter: FlDotCirclePainter(
color: Colors.red,
radius: 22,
),
),
master
to main
toY
(or positive fromY
) in BarChart's minY
and maxY
calculations, #1470sectionsSpace
when Path.combine()
does not work (it's flutter engine issue), #955color
or gradient
property in the BarChartRodData and BackgroundBarChartRodData, #1121.drawBehindEverything
property default to true
in AxisTitles class, #1097.0
instead of -0
in some edge-cases in the default titlestooltipHorizontalAlignment
and tooltipHorizontalOffset
property in [LineTouchTooltipData], [BarTouchTooltipData], [ScatterTouchTooltipData].longPressDuration
optional property that allows to control the duration LongPress gesture occurs, #1114 #1127.pubspec.yaml
to support new pub.dev feature. Read more about it here and here.pubspec.yaml
(I just renamed my username)positionPercentageOffset
optional property to RadarChartTitle to allow individual title positioning