live_charts 0.0.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 49

live_charts Pub

A library for creating live charts.

Usage

A simple usage example:

import 'dart:math';
import 'dart:async';
import 'package:live_charts/live_charts.dart';

main() {
  // create new options with the id of the parent element tag
  var chartOptions = new LiveChartOptions("wrapper");

  // create new chart
  var chart = new LiveChart(chartOptions);

  // start drawing the chart
  chart.start();

  // feed data to it
  var rng = new Random();
  new Timer.periodic(new Duration(milliseconds: 100), (_) {
    chart.addValue(rng.nextInt(100));
  });
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.0.2

  • restructured code
  • fixed example

0.0.1

  • Initial version, created by Stagehand

1. Depend on it

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


dependencies:
  live_charts: "^0.0.2"

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:live_charts/live_charts.dart';
        
Version Uploaded Documentation Archive
0.0.2 Jan 26, 2017 Go to the documentation of live_charts 0.0.2 Download live_charts 0.0.2 archive
0.0.1 Jan 25, 2017 Go to the documentation of live_charts 0.0.1 Download live_charts 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

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

Platforms

Detected platforms: web

Primary library: package:live_charts/live_charts.dart with components: html.

Suggestions

  • Fix .analysis_options.

    We were unable to parse .analysis_options.

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

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

  • Enable strong mode analysis.

    Strong mode helps you to detect bugs and potential issues earlier.Start your analysis_options.yaml file with the following:

    analyzer:
      strong-mode: true
    

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
Dev dependencies
test >=0.12.0 <0.13.0