charted 0.4.9

  • README.md
  • Installing
  • Versions
  • 60

Visualization toolkit for Dart

Charted provides

  • A selection API similar to D3.js
  • Visualization utilities ported from D3.js
  • An easy-to-use API to create charts including an SVG implementation based on the Selection API.
  • An interactive demo

Screenshot of Charted interactive demo

Screenshot of Charted interactive demo

Get started with the interactive demo

Get started with Charted by trying out the interactive demo provided with the package. Follow these instructions and get it running locally on your machine (Git and the Dart SDK has to be installed first):

git clone git@github.com:google/charted.git
cd charted
pub serve examples

Use this package as a library

1. Depend on it

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


dependencies:
  charted: "^0.4.9"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


      import 'package:charted/charted.dart';
  
Version Uploaded Documentation Archive
0.6.1 Jul 17, 2018 Go to the documentation of charted 0.6.1 Download charted 0.6.1 archive
0.6.0 Jul 10, 2018 Go to the documentation of charted 0.6.0 Download charted 0.6.0 archive
0.5.0 Nov 16, 2017 Go to the documentation of charted 0.5.0 Download charted 0.5.0 archive
0.4.9 Nov 16, 2017 Go to the documentation of charted 0.4.9 Download charted 0.4.9 archive
0.4.8 Jul 26, 2017 Go to the documentation of charted 0.4.8 Download charted 0.4.8 archive
0.4.7 Jul 24, 2017 Go to the documentation of charted 0.4.7 Download charted 0.4.7 archive
0.4.6 May 3, 2017 Go to the documentation of charted 0.4.6 Download charted 0.4.6 archive
0.4.4 Apr 7, 2017 Go to the documentation of charted 0.4.4 Download charted 0.4.4 archive
0.4.3 Apr 6, 2017 Go to the documentation of charted 0.4.3 Download charted 0.4.3 archive
0.4.2 Apr 5, 2017 Go to the documentation of charted 0.4.2 Download charted 0.4.2 archive

All 34 versions...

Analysis

We analyzed this package on Jul 14, 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]
62 / 100
Health:
Code health derived from static analysis. [more]
80 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
23 / 100
Overall score:
Weighted score of the above. [more]
60
Learn more about scoring.

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Error(s) in lib/charts/charts.dart: Target of URI doesn't exist: 'package:collection/equality.dart'.

Suggestions

  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Error(s) in lib/charts/charts.dart: Target of URI doesn't exist: 'package:collection/equality.dart'.

  • Running dartdoc failed.

    Make sure dartdoc runs without any issues.

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Use constrained dependencies.

    The pubspec.yaml contains 4 dependencies without version constraints. Specify version ranges for the following dependencies: browser, intl, logging, quiver.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 61 errors 73 hints.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/charts/data_transformers/aggregation_transformer.dart: Undefined class 'ListEquality'.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/charts/layout_renderers/pie_chart_renderer.dart: The function 'accessor' has type '(int, int) → num' that isn't of expected type '(dynamic, int) → num'. This means its parameter or return type does not match what is expected.

    Similar analysis of the following files failed:

    • lib/core/scales/linear_scale.dart (error)
    • lib/charts/charts.dart (error)
    • lib/core/utils/lists.dart (error)
    • lib/core/utils.dart (error)
    • lib/charts/behaviors/chart_tooltip.dart (error)
    • lib/charts/behaviors/hovercard.dart (error)
    • lib/charts/behaviors/line_marker.dart (error)
    • lib/charts/cartesian_renderers/bar_chart_renderer.dart (error)
    • lib/charts/cartesian_renderers/line_chart_renderer.dart (error)
    • lib/charts/cartesian_renderers/stackedline_chart_renderer.dart (error)
    • lib/charts/data_transformers/aggregation.dart (error)
    • lib/charts/data_transformers/aggregation_item.dart (error)
    • lib/charts/src/cartesian_area_impl.dart (error)
    • lib/charts/src/chart_legend_impl.dart (error)
    • lib/core/scales/log_scale.dart (error)
    • lib/core/scales/ordinal_scale.dart (error)
    • lib/core/scales/time_scale.dart (error)
    • lib/layout/src/pie_layout.dart (error)
    • lib/locale/format/number_format.dart (error)
    • lib/selection/src/transition_impl.dart (error)
    • lib/charts/cartesian_renderers/bubble_chart_renderer.dart (hint)
    • lib/charts/cartesian_renderers/stackedbar_chart_renderer.dart (hint)
    • lib/charts/chart_config.dart (hint)
    • lib/charts/chart_data.dart (hint)
    • lib/charts/src/chart_axis_impl.dart (hint)
    • lib/charts/src/chart_config_impl.dart (hint)
    • lib/charts/src/chart_data_impl.dart (hint)
    • lib/charts/src/chart_events_impl.dart (hint)
    • lib/charts/src/chart_state_impl.dart (hint)
    • lib/charts/themes/quantum_theme.dart (hint)
    • lib/core/interpolators/easing.dart (hint)
    • lib/core/interpolators/interpolators.dart (hint)
    • lib/core/scales.dart (hint)
    • lib/core/time_interval.dart (hint)
    • lib/core/utils/color.dart (hint)
    • lib/core/utils/math.dart (hint)
    • lib/core/utils/rect.dart (hint)
    • lib/layout/src/hierarchy_layout.dart (hint)
    • lib/layout/src/treemap_layout.dart (hint)
    • lib/locale/format.dart (hint)
    • lib/locale/format/time_format.dart (hint)
    • lib/selection/selection.dart (hint)
    • lib/selection/src/selection_impl.dart (hint)
    • lib/svg/axis.dart (hint)
    • lib/svg/shapes/arc.dart (hint)
    • lib/svg/shapes/line.dart (hint)
  • 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.

  • The description is too long.

    Search engines will display only the first part of the description. Try to keep it under 180 characters.

  • 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 charted.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.23.0 <2.0.0
browser any 0.10.0+3
intl any 0.15.6
logging any 0.11.3+1
observable >=0.14.0 <0.15.0 0.14.0+1 0.22.1+3
quiver any 0.29.0+1
Transitive dependencies
matcher 0.12.3
meta 1.1.5
path 1.6.1
stack_trace 1.9.2
Dev dependencies
hop >=0.27.0
http any
unittest any