[bugfix] 'Y Axis Zero' would force 1 in Y axis (#497)

This commit is contained in:
Maxime Beauchemin
2016-05-20 11:10:46 -07:00
parent e1a3854f2a
commit 58d78beeaa

View File

@@ -149,7 +149,7 @@ function nvd3Vis(slice) {
chart.useInteractiveGuideline(true);
}
if (fd.y_axis_zero) {
chart.forceY([0, 1]);
chart.forceY([0]);
} else if (fd.y_log_scale) {
chart.yScale(d3.scale.log());
}