Skip to content

Commit

Permalink
fixes #5116 fixes percentages in chart tooltips are sometimes 0% alth…
Browse files Browse the repository at this point in the history
…ough they should not. Happened when there was a value 0 in value[1] meaning there was no data for one of the points. In such a case sum was the value of the concatenated array such as "0-5:3,5-10:10,...
  • Loading branch information
tsteur committed May 22, 2014
1 parent c812b5a commit 5d859cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/CoreVisualizations/javascripts/jqplot.js
Expand Up @@ -125,7 +125,7 @@
$.each(series, function(index, value) {
if ($.isArray(value) && value[1]) {
sum = sum + value[1];
} else {
} else if (!$.isArray(value)) {
sum = sum + value;
}
});
Expand Down

0 comments on commit 5d859cb

Please sign in to comment.