For the dcc.Graph, I have seen the tutorial with the following modebar options:
"modeBarButtonsToAdd": [
"drawline",
"drawopenpath",
"drawclosedpath",
"drawcircle",
"drawrect",
"eraseshape"]
Is there an option for adding a box where the user can write text?
Hi,
As far as I know there is nothing built in. But you could could built something like that with a button and a modal with dcc.Input for the user input and then create an annotation.
Hi you can use anything you like and use CSS positioning to align with the mode bar
Hello @matt.sd.watson ,
It looks like annotations with shapes allows you to add a label, which is similar to a text box.
Update : version 2.11.0 has been released since this was posted.
We’re excited to announce that Dash 2.9.2 has been released
Register for the upcoming webinar to learn how to use the open-source feature.
pip install dash==2.9.2
Official Changelog Dash v2.9.2
Highlights
Partial Property Updates with Patch()
Partial Property Updates can improve the performance of your Dash apps by preventing unnecessary computation, data fetching, and reducing …
Check out midway through, after the dash updates.
I think you can allow for drawing a shape and then also allow for editing the annotations.