From b96a5b8c42ad7b241600040fca3ab4f383b9462a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86ndrew=20Rininsland?= Date: Fri, 3 Jul 2015 14:26:21 +0100 Subject: [PATCH] Made subchart x-axis visibility dependent upon subchart visibility. Fixes #1246. --- src/subchart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subchart.js b/src/subchart.js index 454130a..2704fc3 100644 --- a/src/subchart.js +++ b/src/subchart.js @@ -40,7 +40,7 @@ c3_chart_internal_fn.initSubchart = function () { .attr("class", CLASS.axisX) .attr("transform", $$.getTranslate('subx')) .attr("clip-path", config.axis_rotated ? "" : $$.clipPathForXAxis) - .style("visibility", config.subchart_axis_x_show ? 'visible' : 'hidden'); + .style("visibility", config.subchart_show && config.subchart_axis_x_show ? 'visible' : 'hidden'); }; c3_chart_internal_fn.updateTargetsForSubchart = function (targets) { var $$ = this, context = $$.context, config = $$.config,