setDataPoints method
Sets the data points stored in this graph, and redraw the graph. See also redraw.
Implementation
void setDataPoints(String key, List<DataPoint> points) {
_dataPoints[key] = SplayTreeMap<double, double>.fromIterable(points, key: (e) => e.x, value: (e) => e.y);
_setMinMaxXY();
clearDrawing();
redraw();
}