Two dropdown menus to select Y and Y2 axes independently
I am trying to generate a plot which has independent dropdown menus for both Y and Y2 axes. I am able to implement a dropdown for either the Y1 or Y2 axis when the other is static. I have also generated a semi-solution making use of visible
repeatedly and manually defining all combinations of Y-Y2, but this solution is messy and not exactly what I am looking for (see below). The ideal output is a 2 Y axis plot that has one dropdown menu for each axis where we can select any combination of a set list of variables. I’m assuming that my lack of understanding related to args
is leaving me with no answers on this one.
R Plotly: Two dropdown menus to select Y and Y2 axes independently
I am trying to generate a plot which has independent dropdown menus for both Y and Y2 axes. I am able to implement a dropdown for either the Y1 or Y2 axis when the other is static. I have also generated a semi-solution making use of visible
repeatedly and manually defining all combinations of Y-Y2, but this solution is messy and not exactly what I am looking for (see below). The ideal output is a 2 Y axis plot that has one dropdown menu for each axis where we can select any combination of a set list of variables. I’m assuming that my lack of understanding related to args
is leaving me with no answers on this one.