plot_window 0.0.6 copy "plot_window: ^0.0.6" to clipboard
plot_window: ^0.0.6 copied to clipboard

outdatedDart 1 only

A library to use a canvas element to plot data

plot_window #

A very simple, very buggy library to plot graphs on a canvas. I'll gradually add to it, so you probably shouldn't use this in any projects yet.

Usage #

A simple usage example:

import 'package:plot_window/plot_window.dart';
import 'dart.html';

main() {
  var plotWindow = new PlotWindow(querySelector('#mycanvas');
  var line1 = new plot_window.Line([new Point(1,2), new Point(2,5), new Point(3,-3)], color:new plot_window.Color(255,0,0));

  var line2 = new plot_window.Line([new Point(-3,5), new Point(-2,4), new Point(-1,-2)], color:new plot_window.Color(0,0,255));

  plotWindow..addLine("line1", line1)
     ..addLine("line2", line2);

  plotWindow.plot();
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A library to use a canvas element to plot data

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

browser

More

Packages that depend on plot_window