I understand I can add series with .addSeries() method and delete with .delSeries(), however I'm wondering if it's possible to add series with its own Y axis and remove it, taking its Y axis with it as well? I haven't found a way to do it other than doing the .destroy() and then new uPlot() again.
uplot will auto-hide axes when there are no series on their scales. so you can initially configure the additional axis and scale and add/remove series later that use this scale.
I understand I can add series with
.addSeries()
method and delete with.delSeries()
, however I'm wondering if it's possible to add series with its own Y axis and remove it, taking its Y axis with it as well? I haven't found a way to do it other than doing the.destroy()
and then newuPlot()
again.