FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
As you might know, Islamic Republic of Iran is murdering people in silence right now in Iran They shut the Internet down to do that. That’s why I cannot maintain this library for a while. Now we need your help, please be our voice by spreading news in your media to support us Search these hashtags:
Also, this article might help.
tooltipBorder
property in [LineTouchTooltipData], [BarTouchTooltipData], [ScatterTouchTooltipData], #692.angle
and now returns a RadarChartTitle instead of a simple string
. (Read our Migration Guide to learn more about it)SideTitleWidget
to help you use it in [SideTitles.getTitlesWidget]. It's a wrapper around your widget. It keeps your provided child
widget close to the chart. It has angle
and space
properties to handle margin and rotation. There is a axisSide
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"),
);
},
isStrokeJoinRound
property in LineChartBarData.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.This release has some breaking changes. So please check out the migration guide here
String
. For example, you can pass an Icon widget as a title, #183. Check below samples:LineChartSample 8 (Source Code)
BarChartSample 7 (Source Code)
FlTitlesData
, AxisTitles
, and SideTitles
are changed. Because we are using a new system which allows you to pass any Flutter Widget as a title instead of passing string
, textStyle
, textAlign
, rotation
, ... (Read our Migration Guide)colors
property renamed to color
to keep only one solid color. And now we have a gradient
field instead of colorStops
, gradientFrom
and gradientTo
in following classes: BarChartRodData, BackgroundBarChartRodData, BarAreaData, BetweenBarsData, LineChartBarData. (Read our Migration Guide to learn more about it)