Skip to main content

PlotlyChart

Displays Plotly chart.

Examples

Line chart

The following example is based on original example from Plotly docs.

python/controls/charts/plotly-chart/plotly-linechart.py
loading...

Bar chart

The following example is based on original example from Plotly docs.

python/controls/charts/plotly-chart/plotly-barchart.py
loading...

Pie chart

The following example is based on original example from Plotly docs.

python/controls/charts/plotly-chart/plotly-piechart.py
loading...

Box chart

The following example is based on original example from Plotly docs.

python/controls/charts/plotly-chart/plotly-boxchart.py
loading...

Properties

figure

Plotly figure to draw - an instance of plotly.graph_objects.Figure class.

original_size

True to display chart in original size. False (default) to display a chart that fits configured bounds.

isolated

Every time when a page or parent chart control are updated with page.update() or Control.update() methods respectively the chart is re-drawn by calling Plotly API. Frequent re-drawings of large charts could affect the performance of the entire Flet app.

Set isolated to True to enable explicit chart updates. To re-draw the chart call its update() method.