charts_common 0.2.0

  • Installing
  • Versions
  • 74

Common Charting library

pub package

Common componnets for charting libraries.


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


Initial release.

1. Depend on it

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

  charts_common: "^0.2.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 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.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


We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6


Describes how popular the package is relative to other packages. [more]
47 / 100
Code health derived from static analysis. [more]
100 / 100
Reflects how tidy and up-to-date the package is. [more]
99 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in libraries.


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 26 hints.

    Strong-mode analysis of lib/src/chart/bar/base_bar_renderer_config.dart gave the following hint:

    line: 84 col: 17
    Always override hashCode if overriding ==.

    Strong-mode analysis of lib/src/chart/cartesian/axis/draw_strategy/base_tick_draw_strategy.dart gave the following hint:

    line: 166 col: 33
    'NEGATIVE_INFINITY' is deprecated and shouldn't be used.

    Similar analysis of the following files failed:

    • lib/src/chart/cartesian/axis/linear/linear_scale_domain_info.dart (hint)
    • lib/src/chart/cartesian/axis/numeric_extents.dart (hint)
    • lib/src/chart/cartesian/axis/numeric_tick_provider.dart (hint)
    • lib/src/chart/cartesian/axis/spec/date_time_axis_spec.dart (hint)
    • lib/src/chart/cartesian/axis/spec/numeric_axis_spec.dart (hint)
    • lib/src/chart/cartesian/axis/spec/ordinal_axis_spec.dart (hint)
    • lib/src/chart/cartesian/axis/time/month_time_stepper.dart (hint)
    • lib/src/chart/pie/arc_renderer.dart (hint)
    • lib/src/chart/pie/arc_renderer_config.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use charts_common.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.23.0 <2.0.0
collection ^1.14.5 1.14.9
intl ^0.15.2 0.15.6
meta ^1.1.1 1.1.2
Transitive dependencies
path 1.5.1
Dev dependencies
mockito 3.0.0-alpha
test ^0.12.0