Skip to content

Commit

Permalink
add js-plotly-plot class to plotly element (fixes #2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Feb 9, 2024
1 parent be2f2ad commit 2053a0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nicegui/elements/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, figure: Union[Dict, go.Figure]) -> None:

self.figure = figure
self.update()
self._classes.append('js-plotly-plot')

def update_figure(self, figure: Union[Dict, go.Figure]):
"""Overrides figure instance of this Plotly chart and updates chart on client side."""
Expand Down

0 comments on commit 2053a0c

Please sign in to comment.