Browse Source

Apply #1085 to src

pull/1207/head
Masayuki Tanaka 10 years ago
parent
commit
10a560cf31
  1. 2
      c3.js
  2. 10
      c3.min.js
  3. 1
      src/config.js
  4. 3
      src/subchart.js

2
c3.js

@ -1089,8 +1089,8 @@
// subchart // subchart
subchart_show: false, subchart_show: false,
subchart_size_height: 60, subchart_size_height: 60,
subchart_onbrush: function () {},
subchart_axis_x_show: true, subchart_axis_x_show: true,
subchart_onbrush: function () {},
// color // color
color_pattern: [], color_pattern: [],
color_threshold: {}, color_threshold: {},

10
c3.min.js vendored

File diff suppressed because one or more lines are too long

1
src/config.js

@ -65,6 +65,7 @@ c3_chart_internal_fn.getDefaultConfig = function () {
// subchart // subchart
subchart_show: false, subchart_show: false,
subchart_size_height: 60, subchart_size_height: 60,
subchart_axis_x_show: true,
subchart_onbrush: function () {}, subchart_onbrush: function () {},
// color // color
color_pattern: [], color_pattern: [],

3
src/subchart.js

@ -39,7 +39,8 @@ c3_chart_internal_fn.initSubchart = function () {
$$.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,

Loading…
Cancel
Save