Plug-and-Pay's private fork of fl_chart.
Carries small modifications we need that aren't (yet) in upstream. Current diff vs. upstream:
LineChartBarData.clampCurveToChartBounds— whenisCurved: true, clamps the cubic Bézier control points so the curve cannot extend past the top/bottom of the chart. Unlike upstream'spreventCurveOverShooting(which zeros tangents and produces ugly flat segments), this only shrinks the tangent magnitude as much as needed, preserving smoothness everywhere else.
In your Flutter project's pubspec.yaml:
dependencies:
better_fl_chart:
git:
url: git@github.com:plug-and-pay/better_fl_chart.git
ref: mainThen import it as:
import 'package:better_fl_chart/better_fl_chart.dart';The public API is otherwise identical to upstream fl_chart — same widgets, same data classes, same options.
See UPSTREAM.md for how to pull in changes from imaNNeo/fl_chart.
The remainder of this file is the upstream README, kept for reference.
Your financial support acts as fuel for fl_chart's development. Support here.
|
|
|
|
FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
| LineChart | BarChart | PieChart |
|---|---|---|
![]() |
![]() |
![]() |
| Read More | Read More | Read More |
| ScatterChart | RadarChart | CandlestickChart |
|---|---|---|
![]() |
![]() |
![]() |
| Read More | Read More | Read More |
Banner designed by Soheil Saffar, and samples inspired from David Kovalev, Ricardo Salazar, Dmitro Petrenko, Ghani Pradita, MONUiXD. Thank you all!
First of all, you need to add the fl_chart in your project. To do that, follow this guide.
Then you need to read the docs. Start from here.
We suggest that you check the sample source code.
- You can read about the animation handling here
| Sample1 | Sample2 | Sample3 |
|---|---|---|
![]() |
![]() |
![]() |
You can try the FL Chart sample app on the platforms that are available below:
Your donation motivates me to work more on the fl_chart and resolve more issues. There are multiple ways to donate to me:
- You can be my sponsor on GitHub (This is the most reliable way to donate to me)
- You can buy me a coffee!
- Or if you are a fan of crypto, you can donate me Bitcoins here:
1L7ghKdcmgydmUJAnmYmMaiVjT1LoP4a45
Remember that open-source projects thrive on contributions. Every improvement—no matter how small—makes a meaningful difference, even if it’s just a single line.
Our documentation may contain grammatical issues, and if you’re fluent in English, your help in correcting them would be greatly appreciated.
Check out CONTRIBUTING.md, which contains a guide for those who want to contribute to the FL Chart.
Reporting bugs and issues is also a contribution, yes, it is.














