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

outdatedDart 1 only

A library to use a canvas element to plot data

example/plot_window.dart

// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

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


main() {
  var plotWindow = new plot_window.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();
}
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