Commit 00fc0d48 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Merge branch 'master' of https://github.com/vladsu/c3 into vladsu-master

parents d9d5c5e9 58e076bf
...@@ -1090,6 +1090,7 @@ ...@@ -1090,6 +1090,7 @@
subchart_show: false, subchart_show: false,
subchart_size_height: 60, subchart_size_height: 60,
subchart_onbrush: function () {}, subchart_onbrush: function () {},
subchart_axis_x_show: true,
// color // color
color_pattern: [], color_pattern: [],
color_threshold: {}, color_threshold: {},
...@@ -5360,7 +5361,8 @@ ...@@ -5360,7 +5361,8 @@
$$.axes.subx = context.append("g") $$.axes.subx = context.append("g")
.attr("class", CLASS.axisX) .attr("class", CLASS.axisX)
.attr("transform", $$.getTranslate('subx')) .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) { c3_chart_internal_fn.updateTargetsForSubchart = function (targets) {
var $$ = this, context = $$.context, config = $$.config, 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