Skip to content

Commit

Permalink
Fix issue w3c#209
Browse files Browse the repository at this point in the history
  • Loading branch information
almossawi committed Nov 26, 2014
1 parent 125ea77 commit 943d859
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/charts/missing.js
Expand Up @@ -19,6 +19,10 @@ charts.missing = function(args) {
// add missing class
svg.classed('missing', true);

// do we need to clear the legend?
if(args.legend_target)
$(args.legend_target).html('');

svg.append('rect')
.attr('class', 'missing-pane')
.attr('x', args.left)
Expand Down
1 change: 1 addition & 0 deletions src/common/data_graphic.js
Expand Up @@ -131,6 +131,7 @@ function data_graphic() {
bottom: 0,
right: 0,
left: 0,
legend_target: '',
width: 350,
height: 220,
missing_text: 'Data currently missing or unavailable'
Expand Down

0 comments on commit 943d859

Please sign in to comment.