Skip to content

Commit

Permalink
Fix issue w3c#449
Browse files Browse the repository at this point in the history
  • Loading branch information
almossawi committed Jun 30, 2015
1 parent b405d0d commit 130b34a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ other/divider.psd
other/htaccess.txt

.DS_Store

bare.html
5 changes: 5 additions & 0 deletions src/js/misc/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ function process_line(args) {
o[args.y_accessor] = 0;
o[args.missing_is_hidden_accessor] = true; //we want to distinguish between zero-value and missing observations
processed_data.push(o);
}
//if the data point has a 'missing' attribute set, just set its y-value to 0
else if (existing_o[args.missing_is_hidden_accessor]) {
existing_o[args.y_accessor] = 0;
processed_data.push(existing_o);
}
//otherwise, use the existing object for that date
else {
Expand Down

0 comments on commit 130b34a

Please sign in to comment.