Replies: 1 comment 4 replies
-
Hi @fdion, It looks like the API for configuring df = px.data.tips()
fig = px.histogram(df, x='sex', y='total_bill', color='smoker', barmode='group')
fig.add_annotation(x='Female', y=1000, text='Text annotation', showarrow=True, arrowhead=1)
plot = ui.plotly(fig)
plot.props['options']['config'] = {'editable': True} ![]() But I'm not sure how to get changes back to NiceGUI. How would you do that in plain JavaScript? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Example Code
Description
How do I do something similar to fi.show(config=...) with the plot.update() approach in nicegui?
I am needing to alter the following parameters:
https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js#L47-L121
And as a bonus Q, how do I get the changes in editable mode back to nicegui?
NiceGUI Version
2.22.2
Python Version
3.11.13
Browser
Chrome
Operating System
macOS
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions