From 0b825114b1465fb4a8947dd572cbf92252811465 Mon Sep 17 00:00:00 2001 From: almossawi Date: Fri, 13 Feb 2015 12:07:20 -0800 Subject: [PATCH] Minor cleanup --- examples/js/main.js | 1 + src/js/charts/line.js | 2 +- src/js/common/y_axis.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/js/main.js b/examples/js/main.js index 05cad4f5..4e12d3ee 100644 --- a/examples/js/main.js +++ b/examples/js/main.js @@ -166,6 +166,7 @@ height: torso.height, right: torso.right, target: '#missing_is_hidden', + area: false, show_secondary_x_label: false }); }); diff --git a/src/js/charts/line.js b/src/js/charts/line.js index 7a18a70c..9b98d965 100644 --- a/src/js/charts/line.js +++ b/src/js/charts/line.js @@ -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; diff --git a/src/js/common/y_axis.js b/src/js/common/y_axis.js index 98420090..3741b8f9 100644 --- a/src/js/common/y_axis.js +++ b/src/js/common/y_axis.js @@ -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]);