For an assignment for school, is it possible to create a single dropdown and have a radioitem that is either x or y and the dropdown value selected will be set to the axis that we pick for the radioitem

For dash with python, is there any way to create a radio item that has x and y as its options and then when you select a dropdown variable such as “age” assign that to the x axis of my scatterplot by clicking x from the radio options then after that select another dropdown variable from the same dropdown menu such as “height” and then clicking y as the radio item option and having that be assigned to y so that x does not change? So basically having one dropdown menu and a radio item to help the scatterplot know which axis we want to update and choose from the dropdown on the scatterplot.

I think you can do something like that where the options of the radio item are the output of a callback that has the dropdown as its input.
Its under the ‘Dash App With Chained Callbacks’ section of Basic Callbacks | Dash for Python Documentation | Plotly .