charts_common 0.3.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 86

Common Charting library

pub package

Common componnets for charting libraries.

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.3.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.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

Analysis

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

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Suggestions

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 27 hints.

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

    line: 90 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/common/behavior/a11y/domain_a11y_explore_behavior.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.

Dependencies

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