Browse Source

Merge pull request #2172 from Xuefeng-Zhu/patch-1

make the target completely hidden
pull/1533/merge
Anthony Pessy 7 years ago committed by GitHub
parent
commit
b528f96d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/api.show.js

2
src/api.show.js

@ -10,6 +10,7 @@ c3_chart_fn.show = function (targetIds, options) {
targets = $$.svg.selectAll($$.selectorTargets(targetIds));
targets.transition()
.style('display', 'initial', 'important')
.style('opacity', 1, 'important')
.call($$.endall, function () {
targets.style('opacity', null).style('opacity', 1);
@ -35,6 +36,7 @@ c3_chart_fn.hide = function (targetIds, options) {
.style('opacity', 0, 'important')
.call($$.endall, function () {
targets.style('opacity', null).style('opacity', 0);
targets.style('display', 'none');
});
if (options.withLegend) {

Loading…
Cancel
Save