Skip to content

Commit

Permalink
hard-coded the rounded parts of the missing chart, since it doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
hamilton committed Jan 22, 2015
1 parent 9adb85e commit fc5f361
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 0 additions & 2 deletions dist/metricsgraphics.css
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@
stroke-dasharray:10,5;
fill:none;
stroke:blue;
rx:15;
ry:15;
}

.mg-missing .mg-main-line {
Expand Down
6 changes: 4 additions & 2 deletions dist/metricsgraphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4114,13 +4114,15 @@

var g = svg.append('g')
.attr('class', 'mg-missing-pane');

g.append('svg:rect')
.classed('mg-missing-background', true)
.attr('x', args.buffer)
.attr('y', args.buffer)
.attr('width', args.width-args.buffer*2)
.attr('height', args.height-args.buffer*2);
.attr('height', args.height-args.buffer*2)
.attr('rx',15)
.attr('ry', 15);

g.append('path')
.attr('class', 'mg-main-line mg-line1-color')
Expand Down
2 changes: 1 addition & 1 deletion dist/metricsgraphics.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/js/charts/missing.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ charts.missing = function(args) {

var g = svg.append('g')
.attr('class', 'mg-missing-pane');

g.append('svg:rect')
.classed('mg-missing-background', true)
.attr('x', args.buffer)
.attr('y', args.buffer)
.attr('width', args.width-args.buffer*2)
.attr('height', args.height-args.buffer*2);
.attr('height', args.height-args.buffer*2)
.attr('rx',15)
.attr('ry', 15);

g.append('path')
.attr('class', 'mg-main-line mg-line1-color')
Expand Down

0 comments on commit fc5f361

Please sign in to comment.