Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
almossawi committed Feb 13, 2015
1 parent 4951a8c commit 0b82511
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
height: torso.height,
right: torso.right,
target: '#missing_is_hidden',
area: false,
show_secondary_x_label: false
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/js/charts/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ charts.line = function(args) {
var the_line = svg.select('.mg-line' + (line_id) + '-color');
if (args.missing_is_hidden && the_line.attr('d') !== null) {
var bits = the_line.attr('d').split('L');
var zero = args.scales.Y(0) + 42;
var zero = args.scales.Y(0) + 42.1234;
var dasharray = [];
var singleton_point_length = 2;

Expand Down
2 changes: 1 addition & 1 deletion src/js/common/y_axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function y_axis(args) {
args.scalefns.yf = function(di) {
//since we want to show actual zeros when missing_is_hidden is on
if(args.missing_is_hidden && di['missing']) {
return args.scales.Y(di[args.y_accessor]) + 42;
return args.scales.Y(di[args.y_accessor]) + 42.1234;
}

return args.scales.Y(di[args.y_accessor]);
Expand Down

0 comments on commit 0b82511

Please sign in to comment.