Skip to content

Commit

Permalink
Fix #289, we'll need to file another bug for missing_is_zero
Browse files Browse the repository at this point in the history
It appears to interfere with the change in #192
  • Loading branch information
almossawi committed Jan 20, 2015
1 parent 35f6ecf commit 412938a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions dist/metricsgraphics.js
Expand Up @@ -4124,9 +4124,13 @@
if (args.missing_is_zero
&& args.chart_type === 'line'
&& is_time_series
&& args.data.length > 1
) {
for (var i = 0;i < args.data.length; i++) {
for (var i = 0; i < args.data.length; i++) {
//we need to have a dataset of length > 2, so if it's less than that, skip
if (args.data[i].length == 1) {
continue;
}

var first = args.data[i][0];
var last = args.data[i][args.data[i].length-1];
//initialize our new array for storing the processed data
Expand Down

0 comments on commit 412938a

Please sign in to comment.