Ver código fonte

some words about how data of chart can be updated

Rodja Trappe 2 anos atrás
pai
commit
8638297e19
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      nicegui/elements/chart.py

+ 2 - 0
nicegui/elements/chart.py

@@ -11,6 +11,8 @@ class Chart(Element):
         """Chart
         """Chart
 
 
         An element to create a chart using `Highcharts <https://www.highcharts.com/>`_.
         An element to create a chart using `Highcharts <https://www.highcharts.com/>`_.
+        Updates can be pushed to the chart  by changing the `options` property.
+        After data has changed, call the `update` method to refresh the chart.
 
 
         :param options: dictionary of Highcharts options
         :param options: dictionary of Highcharts options
         """
         """