boxplot 1.0.3 boxplot: ^1.0.3 copied to clipboard
A Canvas based boxplot library for Dart Web projects. The component draws a box plot on a Canvas with a predefined min, q1, q2, q3, and max where q1 and q3 are the first and the third quartiles and q2 [...]
import 'dart:html';
import 'package:boxplot/boxplot.dart';
void main() {
DivElement mydiv = querySelector("#mydiv");
BoxPlot boxplot = new BoxPlot(500, 200);
boxplot.setQuantiles(0, 30, 60, 86, 100);
mydiv.append(boxplot.getDrawableComponent());
RangeInputElement myrange = querySelector("#myrange");
myrange.onInput.listen((event) {
boxplot.setValue(double.parse(myrange.value));
boxplot.drawComponent();
});
}