Browse Source

add js-plotly-plot class to plotly element (fixes #2519)

Falko Schindler 1 year ago
parent
commit
2053a0cfbd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      nicegui/elements/plotly.py

+ 1 - 0
nicegui/elements/plotly.py

@@ -36,6 +36,7 @@ class Plotly(Element, component='plotly.vue', libraries=['lib/plotly/plotly.min.
 
         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."""