billboard.js
billboard.js copied to clipboard
It would be good to have an option to update the axis values on runtime
Description
Currently, I have a situation where I update the data at runtime. Sometimes, the data may be y2 axis as well. It would be nice if I can switch off and switch on the y2 axis based on the data I'm adding or removing.
Steps to check or reproduce
For example: this.chart.axis.hide("y2") this.chart.axis.show("y2") // something like that
@nirmal93guna, you can do by manually handling axis element with some configuration update.
- https://jsfiddle.net/netil/4b3nch9a/1/
Thanks for your reply. Will this be possible, when I'm adding or removing a new set of data. For example: data1 = y1 and data2 = y2. I have to change which data to show dynamically and based on that the axis should be shown or removed.