|
@@ -4413,9 +4413,9 @@
|
|
|
this.strokeStyle = new ColorStyle("rgb(0, 153, 255)");
|
|
|
|
|
|
/**
|
|
|
- * Line width.
|
|
|
+ * Line width used to stroke the graph data.
|
|
|
*/
|
|
|
- this.lineWidth = 1;
|
|
|
+ this.lineWidth = 1.0;
|
|
|
|
|
|
/**
|
|
|
* Background color of the box.
|
|
@@ -4461,7 +4461,6 @@
|
|
|
var height = this.box.max.y - this.box.min.y;
|
|
|
|
|
|
context.lineWidth = this.lineWidth;
|
|
|
-
|
|
|
context.beginPath();
|
|
|
|
|
|
var step = width / (this.data.length - 1);
|
|
@@ -4530,7 +4529,7 @@
|
|
|
/**
|
|
|
* Radius of each point represented in the scatter plot.
|
|
|
*/
|
|
|
- this.radius = 1.0;
|
|
|
+ this.radius = 5.0;
|
|
|
}
|
|
|
|
|
|
ScatterGraph.prototype = Object.create(Graph.prototype);
|
|
@@ -4551,13 +4550,14 @@
|
|
|
var step = width / (this.data.length - 1);
|
|
|
var gamma = this.max - this.min;
|
|
|
|
|
|
+ context.lineWidth = this.lineWidth;
|
|
|
context.beginPath();
|
|
|
|
|
|
- for(var i = 0, s = step; i < this.data.length; s += step, i++)
|
|
|
+ for(var i = 0, s = 0; i < this.data.length; s += step, i++)
|
|
|
{
|
|
|
var y = this.box.max.y - ((this.data[i] - this.min) / gamma) * height;
|
|
|
|
|
|
- context.moveTo(this.box.min.x + s, y);
|
|
|
+ context.moveTo(this.box.min.x + s + this.radius, y);
|
|
|
context.arc(this.box.min.x + s, y, this.radius, 0, Math.PI * 2, true);
|
|
|
}
|
|
|
|