charts_common 0.6.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 78

Common Charting library #

pub package

Common componnets for charting libraries.

0.6.0 #

  • Bars can now be rendered on line charts.
  • Negative measure values will now be rendered on bar charts as a separate stack from the positive values.
  • Added a Datum Legend, which displays one entry per value in the first series on the chart. This is useful for pie and scatter plot charts.
  • The AxisPosition enum in RTLSpec was refactored to AxisDirection to better reflect its effect on swapping the positions of all start and end components, and not just positioning the measure axes.
  • Added custom colors for line renderer area skirts and confidence intervals. A new "areaColorFn" has been added to Series, and corresponding data to the datum. We could not use the fillColorFn for these elements, because that color is already applied to the internal section of points on line charts (including highlighter behaviors).

0.5.0 #

  • SelectionModelConfig's listener parameter has been renamed to "changeListener". This is a breaking change. Please rename any existing uses of the "listener" parameter to "changeListener". This was named in order to add an additional listener "updateListener" that listens to any update requests, regardless if the selection model has changed.
  • CartesianChart's method getMeasureAxis(String axisId) has been changed to getMeasureAxis({String axisId) so that getting the primary measure axis will not need passing any id that does not match the secondary measure axis id. This affects users implementing custom behaviors using the existing method.

0.4.0 #

  • Declare compatibility with Dart 2.
  • BasicNumericTickFormatterSpec now takes in a callback instead of NumberFormat as the default constructor. Use named constructor withNumberFormat instead. This is a breaking change.
  • BarRendererConfig is no longer default of type String, please change current usage to BarRendererConfig<String>. This is a breaking change.
  • BarTargetLineRendererConfig is no longer default of type String, please change current usage to BarTargetLineRendererConfig<String>. This is a breaking change.

0.3.0 #

  • Simplified API by removing the requirement for specifying the datum type when creating a chart. For example, previously to construct a bar chart the syntax was 'new BarChart<MyDatumType>()'. The syntax is now cleaned up to be 'new BarChart()'. Please refer to the online gallery for the correct syntax.
  • Added scatter plot charts
  • Added tap to hide for legends
  • Added support for rendering area skirts to line charts
  • Added support for configurable fill colors to bar charts

0.2.0 #

  • Update color palette. Please use MaterialPalette instead of QuantumPalette.
  • Dart2 fixes

0.1.0 #

Initial release.

Use this package as a library

1. Depend on it

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


dependencies:
  charts_common: ^0.6.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:charts_common/common.dart';
  
Version Uploaded Documentation Archive
0.6.0 Feb 15, 2019 Go to the documentation of charts_common 0.6.0 Download charts_common 0.6.0 archive
0.5.0 Oct 31, 2018 Go to the documentation of charts_common 0.5.0 Download charts_common 0.5.0 archive
0.4.0 Aug 6, 2018 Go to the documentation of charts_common 0.4.0 Download charts_common 0.4.0 archive
0.3.0 May 10, 2018 Go to the documentation of charts_common 0.3.0 Download charts_common 0.3.0 archive
0.2.0 Apr 16, 2018 Go to the documentation of charts_common 0.2.0 Download charts_common 0.2.0 archive
0.0.1 Mar 23, 2018 Go to the documentation of charts_common 0.0.1 Download charts_common 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
75
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
78
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.13

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Maintenance issues and suggestions

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: logging.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and charts_common.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
collection ^1.14.5 1.14.11
intl ^0.15.2 0.15.7
logging any 0.11.3+2
meta ^1.1.1 1.1.7
vector_math ^2.0.8 2.0.8
Transitive dependencies
path 1.6.2
Dev dependencies
mockito ^4.0.0
test ^1.5.3