to which extend is it possible to use scatter or bar charts as input from the user.
For example I would like a user to drag the bars in a barchart to modify certain parameters, like e.g.
Another example for dragable scatter plots is
Anyone has an answer to this old post yet? This was three years ago and I’m still looking for a solution! Many thanks to the one who can point me in the right direction.
@Mianen welcome to the forums. As far as I know, there is no built in functionality for this. Do you need exactly this solution? In the end, these columns seem to be value sliders such as
I would prefer this one yes. I have seen the sliders and also an example with vertical sliders, but this is really what I need.
The hardest part would be determining the rate at which to increase or decrease the desired bar.
You have to keep in mind that these charts are svg so it makes editing them more tricky.
@jinnyzor so you would track the pointer movement after clickevent and simultaneously update the bar chart?
Without knowing JS, in my head these bars are disguised
Ah, but things like logarithmic scaling wouldn’t work with a dcc.Slider.
You could get a slider to work for sure.
The mouse events would cause the svg to update, then on release it would trigger the update.
Using the same mechanisms as here:
Welcome to the community!
from dash import Input, Output, html, callback, Dash, dcc, State
app = Dash(__name__,