Commit c66e0a7a authored by Masayuki Tanaka's avatar Masayuki Tanaka

Add toggle API

parent 17237f6c
......@@ -3598,6 +3598,10 @@
redraw({withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: false});
};
c3.toggle = function (targetId) {
isTargetToShow(targetId) ? c3.hide(targetId) : c3.show(targetId);
};
c3.unzoom = function () {
brush.clear().update();
redraw({withUpdateXDomain: true});
......
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