trame.widgets.plotly module
- class trame.widgets.plotly.Figure(figure=None, state_variable_name=None, **kwargs)
Bases:
AbstractElementCreate a Plotly figure element. For more details refer to the component options documentation
Properties:
- Parameters:
display_mode_bar
scroll_zoom
editable
static_plot
to_image_options
mode_bar_buttons_to_remove
mode_bar_buttons_to_add
locale
display_logo
responsive
double_click_delay
Events:
- Parameters:
after_export
after_plot
animated
animating_frame
animation_interrupted
auto_size
before_export
button_clicked
click
click_annotation
deselect
double_click
framework
hover
legend_click
legend_double_click
relayout
restyle
redraw
selected
selecting
slider_change
slider_end
slider_start
transitioning
transition_interrupted
unhover
- update(plotly_fig=None, **_)
Update the Plotly Figure with new content
- Parameters:
plotly_fig – Python plotly figure object
- property key
Return the name of the state variable used internally
- static to_data(chart, **_)
Serialize plotly figure