Browse Source

Add toggle API

pull/104/head
Masayuki Tanaka 11 years ago
parent
commit
c66e0a7a23
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -3598,6 +3598,10 @@
redraw({withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: false}); redraw({withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: false});
}; };
c3.toggle = function (targetId) {
isTargetToShow(targetId) ? c3.hide(targetId) : c3.show(targetId);
};
c3.unzoom = function () { c3.unzoom = function () {
brush.clear().update(); brush.clear().update();
redraw({withUpdateXDomain: true}); redraw({withUpdateXDomain: true});

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save