Skip to content

Charts#

Interactive chart controls powered by flet-charts let you display data as bar, line, pie, scatter and plotly visualisations directly in your Flet apps.

It is built on top of the fl_chart Flutter package and ships with helper classes for axis labels, tooltips and more.

Platform Support#

Platform Windows macOS Linux iOS Android Web
Supported

Usage#

Add flet-charts to your project dependencies:

uv add flet-charts
pip install flet-charts  # (1)!
  1. After this, you will have to manually add this package to your requirements.txt or pyproject.toml.

Extra Dependencies

Some chart controls require additional dependencies to be installed:

flet-charts provides extras to easily install these:

uv add "flet-charts[all]"   # (1)!
# or
uv add "flet-charts[plotly]"   # (2)!
# or
uv add "flet-charts[matplotlib]"   # (3)!
  1. Additionally installs matplotlib, plotly and kaleido.
  2. Additionally installs plotly and kaleido.
  3. Additionally installs matplotlib.
pip install "flet-charts[all]"   # (1)!
# or
pip install "flet-charts[plotly]"   # (2)!
# or
pip install "flet-charts[matplotlib]"   # (3)!
  1. Additionally installs matplotlib, plotly and kaleido.
  2. Additionally installs plotly and kaleido.
  3. Additionally installs matplotlib.

Available Charts#