Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add draggable spots functionality for LineChart #1428

Open
wants to merge 152 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
10673fa
Add draggable logic for LineChart
G33kFreak Aug 26, 2023
b0d0ced
Remake logic of updating spot's position and adjust tests
G33kFreak Aug 26, 2023
773cabf
Add dragSpotUpdatedCallback functionality
G33kFreak Aug 26, 2023
8430ec3
Update changelog
G33kFreak Aug 26, 2023
99d2484
Add sample of draggable line chart
G33kFreak Aug 26, 2023
c96551a
minor fixes
G33kFreak Aug 26, 2023
4eeeb77
Change the comparing logic in didUpdateWidget
G33kFreak Aug 26, 2023
ffe2237
Removed unnecessary logic
G33kFreak Aug 26, 2023
4c6d2b3
chore: bump actions/checkout from 2 to 4
dependabot[bot] Sep 4, 2023
ce49b92
Fix donation link in README.md file
imaNNeo Oct 1, 2023
e074877
Add draggable callbacks
G33kFreak Oct 1, 2023
f883446
Add draggable logic for LineChart
G33kFreak Aug 26, 2023
0bfef57
Remake logic of updating spot's position and adjust tests
G33kFreak Aug 26, 2023
5e9a68e
Add dragSpotUpdatedCallback functionality
G33kFreak Aug 26, 2023
1e9a832
Update changelog
G33kFreak Aug 26, 2023
2a47fc4
Add sample of draggable line chart
G33kFreak Aug 26, 2023
b1703f7
minor fixes
G33kFreak Aug 26, 2023
32b7162
Change the comparing logic in didUpdateWidget
G33kFreak Aug 26, 2023
60e9e4a
Removed unnecessary logic
G33kFreak Aug 26, 2023
f42ba99
Add draggable callbacks
G33kFreak Oct 1, 2023
e9b9046
Merge branch 'master' of https://github.com/G33kFreak/fl_chart
G33kFreak Oct 1, 2023
77646e4
Add initializations for drag feature callbacks
G33kFreak Oct 1, 2023
8f8a851
Add draggable logic for LineChart
G33kFreak Aug 26, 2023
76348e3
Remake logic of updating spot's position and adjust tests
G33kFreak Aug 26, 2023
539cca8
Add initializations for drag feature callbacks
G33kFreak Oct 1, 2023
7875962
Merge branch 'master' of https://github.com/G33kFreak/fl_chart
G33kFreak Oct 1, 2023
cb51189
Consider fraction digits when formatting chart side titles, #1267
imaNNeo Oct 7, 2023
621b79e
Update CHANGELOG.md
imaNNeo Oct 7, 2023
e3910de
Bump version to 0.64.0
imaNNeo Oct 7, 2023
7918942
Fix macOS debug network issue
imaNNeo Oct 7, 2023
b99169b
Fix radar chart sample 1 overflow
imaNNeo Oct 7, 2023
396b2e1
Upgrade example/ dependencies
imaNNeo Oct 7, 2023
79e6ec7
Open flchart.dev when user clicks on the fl_chart logo
imaNNeo Oct 7, 2023
ab88658
Added gradient to FlLine
Dartek12 Sep 24, 2023
696bb2d
Updated docs
Dartek12 Oct 1, 2023
c8dc3c0
Mention the issue id in the CHANGELOG.md file
imaNNeo Nov 5, 2023
07c3d85
Fix iOS, macOS build issues
imaNNeo Nov 11, 2023
ba68c76
Fix bar line shadow crash when we have only one (or zero) spot, #1466
imaNNeo Nov 11, 2023
3c30cc3
Fix having negative `toY` (or positive `fromY`) in BarChart's `minY` …
imaNNeo Nov 11, 2023
b3529d3
Remove the changelog section from CONTRIBUTING. Because it is a file …
imaNNeo Nov 12, 2023
f0b387d
Fix bargraph overflow
Oct 26, 2023
356b722
Fix documentation
bobatsar Oct 26, 2023
1334eb7
Add golden widget tests for bargraph overflow
Nov 13, 2023
24d0fc5
Update CHANGELOG.md
Nov 13, 2023
cd14e6d
Open fl_chart web page only when we're on the web, otherwise open the…
imaNNeo Nov 12, 2023
fb672b5
Add appVersion and fl_chart version on the bottom of app menu
imaNNeo Nov 13, 2023
dcb1188
Add flutter version veriable in the gh-pages.yml
imaNNeo Nov 13, 2023
0aaf7ee
Fix format
imaNNeo Nov 13, 2023
87f0444
Add tryToLaunchUrl function in the app_utils to have a single place t…
imaNNeo Nov 13, 2023
0ae88cf
Remove flaky golden tests, I need to learn more about them later
imaNNeo Nov 21, 2023
4a2924a
Use TextScaler textScaler insted of double textScale to get rid of th…
imaNNeo Nov 21, 2023
d173cc0
Add dashArray parameter to BarChartRodData
k0psutin Oct 16, 2023
98d10e5
Make border draw last and use toDashedPath to draw the border
k0psutin Oct 16, 2023
1f1834a
Add new sample to show the dashed border
k0psutin Oct 16, 2023
d9a0efb
Update BarChartRodData documentation
k0psutin Oct 16, 2023
5151fc2
Create two tests to test borders
k0psutin Oct 16, 2023
4424452
Fix @kopsutin -> @k0psutin
k0psutin Oct 16, 2023
2955cef
Rename dashArray to borderDashArray
k0psutin Nov 16, 2023
0d4faea
Fix tests
k0psutin Nov 21, 2023
c911024
chore(handle_animations.md):replace = with :
polonski Nov 22, 2023
2b7be70
Allow to show single point line in LineChart, #1438
imaNNeo Nov 24, 2023
4a9bd3f
Fix flutter version issue in gh-pages.yml
imaNNeo Nov 24, 2023
40caf90
Change the drawer header logic to always open the landing page
imaNNeo Nov 24, 2023
df87e97
Open flutter release page when user clicks on the fl_chart version on…
imaNNeo Nov 24, 2023
9877450
Remove buy me a coffe button in the app
imaNNeo Nov 24, 2023
803409c
Bump version to 0.65.0
imaNNeo Nov 24, 2023
6b52a4e
Add pubspec constraints for newer version of flutter/dart, #1509
imaNNeo Dec 1, 2023
22b02c3
Use FlDotPainter to draw scatter spots
imaNNeo Dec 3, 2023
bb7b885
Update CHANGELOG.md
imaNNeo Dec 3, 2023
a99a3dd
Fix some test issues
imaNNeo Dec 3, 2023
256e2cc
Implement lerp method for FlDotPainter
imaNNeo Dec 3, 2023
ae7432f
Define customized hitTest for different FlDotPainters
imaNNeo Dec 3, 2023
9e133f1
Move FlDotPainter from line_chart_data to axis_chart_data
imaNNeo Dec 3, 2023
c1a5189
Generate new mock files
imaNNeo Dec 3, 2023
2f6a0e1
Update CHANGELOG.md to add migration guide
imaNNeo Dec 3, 2023
2bb9c81
Add a feature to allow user to select a painterType in ScatterChartSa…
imaNNeo Dec 3, 2023
e9ab493
Fix barChart tooltip for values below or above the 0 point, #1462
imaNNeo Dec 3, 2023
68cf161
Fix pieChart drawing single section on iPhone, #1515
imaNNeo Dec 15, 2023
08107bf
Fix test fail issue
imaNNeo Dec 15, 2023
bcd4aef
Add gradient property to the HorizontalLine and VerticalLine, #1525
imaNNeo Dec 25, 2023
bee1cf3
Update CHANGELOG.md
imaNNeo Dec 25, 2023
6f9c859
Fix format issue
imaNNeo Dec 25, 2023
950ac7f
Update base_chart.md docs
imaNNeo Dec 25, 2023
2482719
Rename all /master to /main
imaNNeo Dec 25, 2023
4c1c27a
Update handle_animations.md
LIZA1608 Dec 24, 2023
944bef4
Add gradient for PieChart
RAldhafeeri Dec 18, 2023
d3d06d1
update docs for pie chart
RAldhafeeri Dec 25, 2023
494a51f
Update pie_chart.md with gradient usage clarification
RAldhafeeri Dec 25, 2023
00c1cd6
Update CHANGELOG.md
imaNNeo Dec 25, 2023
001fd68
Update CHANGELOG.md
imaNNeo Dec 25, 2023
5f92d72
Update flutter version to remove the upper bound (to fix the flutter …
imaNNeo Dec 25, 2023
c0ca436
Bump version to 0.66.0
imaNNeo Dec 25, 2023
d116601
Upgrade Kotlin version from 1.6.10 to 1.7.10
Dec 26, 2023
4838f8b
Fix PieChart blackout issue, #1538
imaNNeo Jan 10, 2024
ba2f03f
Add some new brandings in README.md
imaNNeo Jan 13, 2024
5f31d52
Fix readme issue
imaNNeo Jan 13, 2024
3858b0b
Decrease thumbnail video size
imaNNeo Jan 13, 2024
50def3d
Fix memory leak in LineChart and BarChart, #1106
imaNNeo Jan 22, 2024
122a9e3
Update CHANGELOG.md
imaNNeo Jan 22, 2024
294f250
Minor change on .codecov.yml
imaNNeo Jan 22, 2024
90b615e
Bump version to 0.66.1
imaNNeo Jan 22, 2024
c75c6ea
Minor fix on README.md
imaNNeo Jan 22, 2024
0c75173
Fix README [ issue
imaNNeo Jan 22, 2024
4b144a0
Use <a> tag for link in README
imaNNeo Jan 22, 2024
2ff658b
Update README.md
r3za13 Jan 27, 2024
46dd5ad
Fix unsupported environment access on web
julianscheel Jan 25, 2024
75a3b98
Update bar_chart.md
adamsocrat Feb 7, 2024
2d21444
Update pie_chart.md
adamsocrat Feb 7, 2024
c2e634d
Update radar_chart.md
adamsocrat Feb 7, 2024
eb82f1c
- removed dependency to dart:io
stwarwas Feb 6, 2024
09d1944
Update README.md
imaNNeo Feb 10, 2024
5a01893
Bump version to 0.66.2
imaNNeo Feb 10, 2024
fb7cf1b
Add sponsors section
imaNNeo Mar 3, 2024
16d92d7
add the option to display the text vertically for a FLineLabel
julien4215 Feb 4, 2024
9c28a8a
edit changelog
julien4215 Feb 10, 2024
dbaa832
edit test for coverage
julien4215 Feb 4, 2024
288852a
WIP test
julien4215 Feb 9, 2024
1d1e137
end unit tests
julien4215 Feb 9, 2024
2c7295b
make code more understandable
julien4215 Feb 9, 2024
bf36544
fix : label always inside chart
julien4215 Feb 10, 2024
a540582
add direction in lerp method
julien4215 Feb 29, 2024
34a6af0
Update CHANGELOG.md
imaNNeo Mar 28, 2024
cdfdb66
Dynamically changing tooltipBgColor
xvrh Feb 16, 2024
0d486c8
Adrresses review comments
xvrh Mar 28, 2024
bba7394
Typo in changelog
xvrh Mar 28, 2024
bfdd91b
Add migration guide
xvrh Mar 28, 2024
e170af8
Fix scatter_chart_sample2 color contrast
imaNNeo Mar 28, 2024
2d0ce64
Update CHANGELOG.md
imaNNeo Mar 28, 2024
f82c496
Bump version to 0.67.0
imaNNeo Mar 28, 2024
930ac12
Update CHANGELOG.md
imaNNeo Mar 28, 2024
033e367
Add draggable logic for LineChart
G33kFreak Aug 26, 2023
dd241fb
Remake logic of updating spot's position and adjust tests
G33kFreak Aug 26, 2023
b060874
Add dragSpotUpdatedCallback functionality
G33kFreak Aug 26, 2023
b481923
Update changelog
G33kFreak Aug 26, 2023
0cd3590
Add sample of draggable line chart
G33kFreak Aug 26, 2023
cd3e422
minor fixes
G33kFreak Aug 26, 2023
fc35f04
Change the comparing logic in didUpdateWidget
G33kFreak Aug 26, 2023
74f7ed5
Removed unnecessary logic
G33kFreak Aug 26, 2023
c298aac
Add draggable callbacks
G33kFreak Oct 1, 2023
ba18217
Add draggable logic for LineChart
G33kFreak Aug 26, 2023
b476743
Remake logic of updating spot's position and adjust tests
G33kFreak Aug 26, 2023
0d5026c
Add initializations for drag feature callbacks
G33kFreak Oct 1, 2023
e4509e0
Add draggable logic for LineChart
G33kFreak Aug 26, 2023
a325175
Remake logic of updating spot's position and adjust tests
G33kFreak Aug 26, 2023
916c1e1
Change the comparing logic in didUpdateWidget
G33kFreak Aug 26, 2023
9d283be
Removed unnecessary logic
G33kFreak Aug 26, 2023
f664065
Merge branch 'master' of https://github.com/G33kFreak/fl_chart
G33kFreak Mar 29, 2024
6870cd4
fix example
G33kFreak Mar 29, 2024
04f18f2
Fix after rebase logic
G33kFreak Mar 29, 2024
9357bf2
Fix tests
G33kFreak Mar 29, 2024
b60e4fe
Adjust data tests
G33kFreak Mar 29, 2024
2ae1234
Update CHANGELOG
G33kFreak Mar 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ coverage:
status:
project:
default:
target: 85%
threshold: 2%
target: auto
threshold: 1%
patch:
default:
target: 0%
threshold: 100%
target: 50%
threshold: 10%
precision: 1
range: "80...100"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2 # Only works with v2
- uses: subosito/flutter-action@v2
- uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2

- name: Set fl_chart Version
run: |
VERSION=$(grep "version:" pubspec.yaml | awk '{ print $2 }')
echo "USING_FL_CHART_VERSION=$VERSION" >> $GITHUB_ENV

- uses: bluefireteam/flutter-gh-pages@v8
with:
workingDir: example
workingDir: example
customArgs: --dart-define="USING_FL_CHART_VERSION=${{ env.USING_FL_CHART_VERSION }}"
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Publish
uses: k-paxian/dart-package-publisher@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"editor.formatOnType": true,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": false,
"editor.wordBasedSuggestions": "off",
"files.insertFinalNewline": true,
"editor.defaultFormatter": "Dart-Code.dart-code"
}
281 changes: 179 additions & 102 deletions CHANGELOG.md

Large diffs are not rendered by default.

27 changes: 2 additions & 25 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CanvasWrapper class holds a canvas and all draw functions proxies through it.
You should use it for drawing on the canvas, Instead of direct accessing to canvas.
It makes draw functions testable.

<img src="https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/architecture/fl_chart_architecture.jpg" />
<img src="https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/architecture/fl_chart_architecture.jpg" />

(made with [draw.io](https://drive.google.com/file/d/1bj-2TqTRUh80dRKJk10drPNeA3fp3EA8/view))

Expand Down Expand Up @@ -78,36 +78,13 @@ We should write unit-test for our written code. If you are not familiar with uni

[Mockito](https://pub.dev/packages/mockito) is the library that we use to mock our classes, please read more about it from their docs [here](https://github.com/dart-lang/mockito#lets-create-mocks).

Our code coverage is calculated by [Codecov](https://app.codecov.io/gh/imaNNeo/fl_chart) (Our coverage is [![codecov](https://codecov.io/gh/imaNNeo/fl_chart/branch/master/graph/badge.svg?token=XBhsIZBbZG)](https://codecov.io/gh/imaNNeo/fl_chart)
Our code coverage is calculated by [Codecov](https://app.codecov.io/gh/imaNNeo/fl_chart) (Our coverage is [![codecov](https://codecov.io/gh/imaNNeo/fl_chart/branch/main/graph/badge.svg?token=XBhsIZBbZG)](https://codecov.io/gh/imaNNeo/fl_chart)
at the moment)

When you push something in your PR (after approving your PR by one of us), you see a coverage report which describes how much coverage is increased or decreased by your code (You can check the details to see which part of your code made the change).

Please make sure that your code is **not decreasing** the coverage.

## Changelog
We have a file called [CHANGELOG.md](https://github.com/imaNNeo/fl_chart/blob/master/CHANGELOG.md) which contains the history of our versions.

Please check it to understand how it works and how is the convention. Simply new versions added at the top of the CHANGELOG.md file. You can find the [first version (oldest)](https://github.com/imaNNeo/fl_chart/blob/master/CHANGELOG.md#001---released-on-2019-june-4) at the bottom of the file.

When you are done in your PR, it's time to write a changelog for you changes.

Most of the times, there will be a [newVersion](https://github.com/imaNNeo/fl_chart/blob/master/CHANGELOG.md#newversion) tag at the top of the `CHANGELOG.md` file in the `master` branch. If it doesn't exist, you can write it and write your change below that.

Each change should be started with one of the following prefixes:
1. **IMPROVEMENT** (When you are improving something, for example improving performance)

2. **BREAKING** (When it breaks something, for example renaming something to something else, or removing something, ...)

3. **BUGFIX** (When you fix a bug or an issue)

4. **FEATURE** (When you are adding a feature to the library, for example allowing user to change the stroke color of something, or when you add a new concept or anything else)

In front of a prefix, you should write about your change. Don't forget to mention the related issues.

If your change has two (or more) prefixes, describe them in separate lines independently.


## Creating a Pull Request

Congratulations! Your code meets all of our guidelines :100:. Now you have to
Expand Down
65 changes: 50 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
📊 FL Chart is a highly customizable Flutter chart library that supports **[Line Chart](https://app.flchart.dev/#/line)**, **[Bar Chart](https://app.flchart.dev/#/bar)**, **[Pie Chart](https://app.flchart.dev/#/pie)**, **[Scatter Chart](https://app.flchart.dev/#/scatter)**, and **[Radar Chart](https://app.flchart.dev/#/radar)**.

✅ Do you want to **motivate me to work more on fl_chart?** You can **[donate me](https://github.com/imaNNeo/fl_chart/edit/master/README.md#donation)** ;)

![FL Chart Logo](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/landing_logo.jpg)
![FL Chart Logo](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/landing_logo.png)

[![pub package](https://img.shields.io/pub/v/fl_chart.svg)](https://pub.dartlang.org/packages/fl_chart)
[![codecov](https://codecov.io/gh/imaNNeo/fl_chart/branch/master/graph/badge.svg?token=XBhsIZBbZG)](https://codecov.io/gh/imaNNeo/fl_chart)
[![codecov](https://codecov.io/gh/imaNNeo/fl_chart/branch/main/graph/badge.svg?token=XBhsIZBbZG)](https://codecov.io/gh/imaNNeo/fl_chart)
<a href="https://github.com/Solido/awesome-flutter#charts"><img src="https://img.shields.io/badge/awesome-flutter-blue.svg?longCache=true" alt="Awesome Flutter"></a>
<a href="https://pub.dev/packages/fl_chart"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/imaNNeo/fl_chart"></a>
<a href="https://github.com/imaNNeo/fl_chart/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/imaNNeo/fl_chart"></a>
Expand All @@ -15,17 +11,56 @@
<a href="https://www.buymeacoffee.com/fl_chart" title="Donate to this project using Buy Me A Coffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg" alt="Buy Me A Coffee donate button" /></a>
</span>

### Our Financial Heroes
Your financial support acts as fuel for fl_chart's development. [Support here](https://github.com/sponsors/imaNNeo).
<table>
<tbody>
<tr>
<td>
<a href="https://github.com/sponsors/imaNNeo">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/imaNNeo/fl_chart/raw/main/repo_files/sponsors/become_a_hero_dark.png">
<source media="(prefers-color-scheme: light)" srcset="https://github.com/imaNNeo/fl_chart/raw/main/repo_files/sponsors/become_a_hero_light.png">
<img alt="Become a sponsor" >
</picture>
</a>
</td>
<td>
<a href="https://github.com/sponsors/imaNNeo">
<img src="https://github.com/imaNNeo/fl_chart/raw/main/repo_files/sponsors/become_a_hero_empty.png">
</a>
</td>
<td>
<a href="https://github.com/sponsors/imaNNeo">
<img src="https://github.com/imaNNeo/fl_chart/raw/main/repo_files/sponsors/become_a_hero_empty.png">
</a>
</td>
<td>
<a href="https://github.com/sponsors/imaNNeo">
<img src="https://github.com/imaNNeo/fl_chart/raw/main/repo_files/sponsors/become_a_hero_empty.png">
</a>
</td>
</tr>
</tbody>
</table>

### Overview
FL Chart is a highly customizable Flutter chart library that supports **[Line Chart](https://app.flchart.dev/#/line)**, **[Bar Chart](https://app.flchart.dev/#/bar)**, **[Pie Chart](https://app.flchart.dev/#/pie)**, **[Scatter Chart](https://app.flchart.dev/#/scatter)**, and **[Radar Chart](https://app.flchart.dev/#/radar)**.

<a href="https://youtu.be/hVRU-kpKNjQ"><img src="https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/overview_thumbnail.png"></p></a>


### Chart Types

|LineChart |BarChart |PieChart |
|:------------:|:------------:|:-------------:|
| [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/line_chart/line_chart_sample_1.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/line_chart.md#sample-1-source-code) [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/line_chart/line_chart_sample_2.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/line_chart.md#sample-2-source-code) | [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/bar_chart/bar_chart_sample_1.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/bar_chart.md#sample-1-source-code) [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/bar_chart/bar_chart_sample_2.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/bar_chart.md#sample-2-source-code) | [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/pie_chart/pie_chart_sample_1.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/pie_chart.md#sample-1-source-code) [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/pie_chart/pie_chart_sample_2.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/pie_chart.md#sample-2-source-code) |
|[Read More](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/line_chart.md)|[Read More](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/bar_chart.md)|[Read More](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/pie_chart.md)|
| [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/line_chart/line_chart_sample_1.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/line_chart.md#sample-1-source-code) [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/line_chart/line_chart_sample_2.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/line_chart.md#sample-2-source-code) | [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/bar_chart/bar_chart_sample_1.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/bar_chart.md#sample-1-source-code) [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/bar_chart/bar_chart_sample_2.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/bar_chart.md#sample-2-source-code) | [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/pie_chart/pie_chart_sample_1.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/pie_chart.md#sample-1-source-code) [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/pie_chart/pie_chart_sample_2.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/pie_chart.md#sample-2-source-code) |
|[Read More](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/line_chart.md)|[Read More](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/bar_chart.md)|[Read More](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/pie_chart.md)|

|ScatterChart |RadarChart| Coming Soon|
|:------------:|:------------:|:-------------:|
| [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/scatter_chart/scatter_chart_sample_1.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/scatter_chart.md#sample-1-source-code) [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/scatter_chart/scatter_chart_sample_2.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/scatter_chart.md#sample-2-source-code) | ![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/radar_chart/radar_chart_sample_1.jpg) ![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/blank.jpg)|![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/blank.jpg) ![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/blank.jpg)|
|[Read More](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/scatter_chart.md)|[Read More](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/radar_chart.md)||
| [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/scatter_chart/scatter_chart_sample_1.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/scatter_chart.md#sample-1-source-code) [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/scatter_chart/scatter_chart_sample_2.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/scatter_chart.md#sample-2-source-code) | ![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/radar_chart/radar_chart_sample_1.jpg) ![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/blank.jpg)|![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/blank.jpg) ![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/blank.jpg)|
|[Read More](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/scatter_chart.md)|[Read More](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/radar_chart.md)||

Banner designed by [Soheil Saffar](https://www.linkedin.com/in/soheilsaffar), and
samples inspired from
Expand All @@ -40,16 +75,16 @@ Thank you all!

# Let's get started

First of all you need to add the `fl_chart` in your project. In order to do that, follow [this guide](https://pub.dev/packages/fl_chart/install).
First of all, you need to add the `fl_chart` in your project. In order to do that, follow [this guide](https://pub.dev/packages/fl_chart/install).

Then you need to read the docs. Start from [here](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/index.md).
Then you need to read the docs. Start from [here](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/index.md).

We suggest you to check samples source code.

##### - You can read about the animation handling [here](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/handle_animations.md)
##### - You can read about the animation handling [here](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/handle_animations.md)
|Sample1 |Sample2 |Sample3 |
|:------------:|:------------:|:-------------:|
| [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/line_chart/line_chart_sample_1_anim.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/line_chart.md#sample-1-source-code) | [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/line_chart/line_chart_sample_2_anim.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/line_chart.md#sample-2-source-code) | [![](https://github.com/imaNNeo/fl_chart/raw/master/repo_files/images/bar_chart/bar_chart_sample_1_anim.gif)](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/bar_chart.md#sample-1-source-code) |
| [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/line_chart/line_chart_sample_1_anim.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/line_chart.md#sample-1-source-code) | [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/line_chart/line_chart_sample_2_anim.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/line_chart.md#sample-2-source-code) | [![](https://github.com/imaNNeo/fl_chart/raw/main/repo_files/images/bar_chart/bar_chart_sample_1_anim.gif)](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/bar_chart.md#sample-1-source-code) |


### Donation
Expand All @@ -66,7 +101,7 @@ Don't forget that `open-source` makes no sense without contributors. No matter h

There might be a lot of grammar issues in the docs. It's a big help to us to fix them if you are fluent in English.

Check out [CONTRIBUTING.md](https://github.com/imaNNeo/fl_chart/blob/master/CONTRIBUTING.md), which contains a guide for those who want to contribute to the FL Chart.
Check out [CONTRIBUTING.md](https://github.com/imaNNeo/fl_chart/blob/main/CONTRIBUTING.md), which contains a guide for those who want to contribute to the FL Chart.

Reporting bugs and issues are contribution too, yes it is.

Expand Down
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
Expand All @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
1 change: 1 addition & 0 deletions example/devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions:
35 changes: 35 additions & 0 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
PODS:
- Flutter (1.0.0)
- package_info_plus (0.4.5):
- Flutter
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- url_launcher_ios (0.0.1):
- Flutter

DEPENDENCIES:
- Flutter (from `Flutter`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
url_launcher_ios: bf5ce03e0e2088bad9cc378ea97fa0ed5b49673b

PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3

COCOAPODS: 1.14.3
Loading