Permalink
Browse files

Fixes #16: When defining labels, the vertical lines are incorrect

  • Loading branch information...
Alex Young
Alex Young committed Aug 6, 2012
1 parent cd920d1 commit b2f296660e0ae7814024f2d839b2dea2270c378f
Showing with 14 additions and 9 deletions.
  1. +5 −0 History.md
  2. +2 −2 docs/ico.js
  3. +1 −1 docs/ico.min.js
  4. +2 −2 ico.js
  5. +1 −1 ico.min.js
  6. +1 −1 package.json
  7. +2 −2 src/graphs/line.js
View
@@ -1,3 +1,8 @@
+0.3.10 / 2012-02-06
+==================
+
+ * Fixed issue 16: When defining labels, the vertical lines are incorrect
+
0.3.9 / 2012-02-06
==================
View
@@ -1041,7 +1041,7 @@ Helpers.extend(Ico.LineGraph.prototype, {
},
calculateStep: function() {
- return (this.graph_width - (this.options.plot_padding * 2)) / validStepDivider(this.data_size);
+ return this.graph_width / this.data_size;
},
drawPlot: function(index, pathString, x, y, colour) {
@@ -1053,7 +1053,7 @@ Helpers.extend(Ico.LineGraph.prototype, {
}
if (index === 0) {
- this.lastPoint = { x: x, y: y };
+ this.lastPoint = { x: x, y: y };
return pathString + 'M' + x + ',' + y;
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
4 ico.js
@@ -1041,7 +1041,7 @@ Helpers.extend(Ico.LineGraph.prototype, {
},
calculateStep: function() {
- return (this.graph_width - (this.options.plot_padding * 2)) / validStepDivider(this.data_size);
+ return this.graph_width / this.data_size;
},
drawPlot: function(index, pathString, x, y, colour) {
@@ -1053,7 +1053,7 @@ Helpers.extend(Ico.LineGraph.prototype, {
}
if (index === 0) {
- this.lastPoint = { x: x, y: y };
+ this.lastPoint = { x: x, y: y };
return pathString + 'M' + x + ',' + y;
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{ "name": "ico"
, "description": "A graph plotting library"
-, "version": "0.3.3"
+, "version": "0.3.10"
, "url": "http://alexyoung.github.com/ico/"
, "author": "Alex R. Young <alex@helicoid.net>"
, "engines": ["node >= 0.4.0"]
View
@@ -37,7 +37,7 @@ Helpers.extend(Ico.LineGraph.prototype, {
},
calculateStep: function() {
- return (this.graph_width - (this.options.plot_padding * 2)) / validStepDivider(this.data_size);
+ return this.graph_width / this.data_size;
},
drawPlot: function(index, pathString, x, y, colour) {
@@ -49,7 +49,7 @@ Helpers.extend(Ico.LineGraph.prototype, {
}
if (index === 0) {
- this.lastPoint = { x: x, y: y };
+ this.lastPoint = { x: x, y: y };
return pathString + 'M' + x + ',' + y;
}

0 comments on commit b2f2966

Please sign in to comment.