Commit 58e076bf authored by vladsu's avatar vladsu

Merge pull request #1 from vladsu/X-axis-visibility-subchart

Set the X axis in subchart to visible or invisible
parents e83d0e78 1168b692
......@@ -1077,6 +1077,7 @@
subchart_show: false,
subchart_size_height: 60,
subchart_onbrush: function () {},
subchart_axis_x_show: true,
// color
color_pattern: [],
color_threshold: {},
......@@ -5264,7 +5265,8 @@
$$.axes.subx = context.append("g")
.attr("class", CLASS.axisX)
.attr("transform", $$.getTranslate('subx'))
.attr("clip-path", config.axis_rotated ? "" : $$.clipPathForXAxis);
.attr("clip-path", config.axis_rotated ? "" : $$.clipPathForXAxis)
.style("visibility", config.subchart_axis_x_show ? 'visible' : 'hidden');
};
c3_chart_internal_fn.updateTargetsForSubchart = function (targets) {
var $$ = this, context = $$.context, config = $$.config,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment