billboard.js icon indicating copy to clipboard operation
billboard.js copied to clipboard

It would be good to have an option to update the axis values on runtime

Open nirmal93guna opened this issue 5 years ago • 2 comments

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 avatar Nov 26 '19 05:11 nirmal93guna

@nirmal93guna, you can do by manually handling axis element with some configuration update.

  • https://jsfiddle.net/netil/4b3nch9a/1/

dynamic-axis

netil avatar Nov 27 '19 01:11 netil

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.

nirmal93guna avatar Nov 28 '19 10:11 nirmal93guna