We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var chart = c3.generate({ data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250], ['data2', 50, 20, 10, 40, 15, 25] ], axes: { data1: 'y', data2: 'y2' } }, grid: { x: { show: true } } }); chart.internal.config.axis_x_show=false; chart.flush();
The text was updated successfully, but these errors were encountered:
Hey! We at Etersoft implemented it in our fork as follows
c3_chart_fn.axis.showX = function (value){ var $$ = this.internal; $$.config.axis_x_show = !!value; $$.axes.x.style("visibility", $$.config.axis_x_show ? 'visible' : 'hidden'); $$.redraw(); }; c3_chart_fn.axis.showY = function (value){ var $$ = this.internal; $$.config.axis_y_show = !!value; $$.axes.y.style("visibility", $$.config.axis_y_show ? 'visible' : 'hidden'); $$.redraw(); };
so chart.axis.showX(true) will make x asix visible, and chart.axis.showX(false) will make it disapear. I will submit PR soon for fixing this issue.
chart.axis.showX(true)
chart.axis.showX(false)
Maybe names will need to be changed, so this methods can be used both as setters and getters.
Sorry, something went wrong.
Add API for showing and hidding axis. Fixes c3js#1520
f0971db
Created #1760 to close this
No branches or pull requests
The text was updated successfully, but these errors were encountered: