Permalink
Browse files

Fixed DataSeries to accept zero values

  • Loading branch information...
1 parent 6c6d7b5 commit 56e72de073cc91056cfe15e1fc4335dcfe8ad6ba @bjornd committed Aug 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/data-series.js
View
@@ -77,7 +77,7 @@ jvm.DataSeries.prototype = {
for (cc in values) {
val = parseFloat(values[cc]);
- if (val) {
+ if (!isNaN(val)) {
attrs[cc] = this.scale.getValue(val);
} else {
attrs[cc] = this.elements[cc].element.style.initial[this.params.attribute];

0 comments on commit 56e72de

Please sign in to comment.