From 2053a0cfbde3cd2d77c4d124a4cb590c3009bdb7 Mon Sep 17 00:00:00 2001 From: Falko Schindler Date: Fri, 9 Feb 2024 10:37:02 +0100 Subject: [PATCH] add js-plotly-plot class to plotly element (fixes #2519) --- nicegui/elements/plotly.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nicegui/elements/plotly.py b/nicegui/elements/plotly.py index 72e44b6b9..cc9125811 100644 --- a/nicegui/elements/plotly.py +++ b/nicegui/elements/plotly.py @@ -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."""