fl_chart 0.2.2

FL Chart #

pub package APK

FL Chart Logo

💥 A library to draw fantastic charts in Flutter 💥

Chart Types #

LineChartBarChartPieChart
Read MoreRead MoreRead More

Banner designed by Soheil Saffar, and samples inspired from David Kovalev, Ricardo Salazar, Dmitro Petrenko, Ghani Pradita, MONUiXD. Thank you all!

Let's get started #

1 - Depend on it #

Add it to your package's pubspec.yaml file #
dependencies:
  fl_chart: ^0.2.2

2 - Install it #

Install packages from the command line #
flutter packages get

3 - Learn it like a charm #

Read the docs from here

4 - Follow the roadmap #

you can follow the roadmap from here, and (let me know your suggestions)

And the last but not least 🔥 #

🍺 pull requests are welcome! #

💰 Dontation (bitcoin) 💰

Buy me some food to survive, I would add more features if I was alive #

1BJt8apHJVreFyaPvseHcE17QQ3JwAdBcu

0.2.2 #

  • fixed a typo on CHANGELOG
  • reformatted dart files with flutter format command

0.2.1 #

  • fixed #64, added a technical debt :(

0.2.0 #

  • fixed a critical got stuck in draw loop bug,
  • set BarChartGroupData x as required property to keep consistency and prevent unpredictable bugs

0.1.6 #

  • added enableNormalTouch property to chart's TouchData to handle normal taps, and enabled by default.

0.1.5 #

  • reverted getPixelY() on axis_chart_painter to solve the regression bug (fixed issue #48)
  • (fix) BelowBar considers its own color stops refs #46

0.1.4 #

  • bugfix -> fixed draw bug on BarChart when y value is very low in high scale y values (#43).

0.1.3 #

  • added SideTitles class to hold titles representation data, and used in FlTitlesData to show left, top, right, bottom titles, instead of legacy direct parameters, and implemented a reversed chart sample using this update.

0.1.2 #

  • added preventCurveOverShooting on BarData, check this issue

0.1.1 #

  • nothing important

0.1.0 #

  • added Touch Interactivity, read more about it here

0.0.8 #

  • added backgroundColor to axis based charts (LineChart, BarChart) to draw a solid background color behind the chart
  • added getDrawingHorizontalGridLine, getDrawingVerticalGridLine on FlGridData to determine how(color, strokeWidth) the grid lines should be drawn with the given value on FlGridLine

0.0.7 #

  • added ExtraLinesData in the LineChartData to draw extra horizontal and vertical lines on LineChart
  • added BelowSpotsLine in the BlowBarData to draw lines from spot to the bottom of chart on LineChart

0.0.6 #

  • fixed charts repainting bug, #16

0.0.5 #

  • added clipToBorder to the LineChartData to clip the drawing to the border, #3

0.0.4 #

  • fixed bug of adding bar with y = 0 on bar chart #13

0.0.3 #

  • renamed FlChartWidget to FlChart (our main widget) and now you have to import package:fl_chart/fl_chart.dart instead of package:fl_chart/fl_chart_widget.dart
  • renamed FlChart* to BaseChart* (parent class of our charts like PieChart)
  • renamed FlAxisChart* to AxisChart*

0.0.2 #

  • fixed minX, maxX functionality on LineChart
  • restricted to access private classes of the library

0.0.1 - Released on (2019 June 4) #

example/README.md

example #

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  fl_chart: ^0.2.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:fl_chart/fl_chart.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
95
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
98
Learn more about scoring.

We analyzed this package on Sep 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/src/chart/base/base_chart/base_chart_data.dart.

Run flutter format to format lib/src/chart/base/base_chart/base_chart_data.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test