Skip to content

flet-charts#

pypi downloads license

A Flet extension for creating interactive charts and graphs.

It is based on the fl_chart Flutter package.

Platform Support#

This package supports the following platforms:

Platform Supported
Windows
macOS
Linux
iOS
Android
Web

Usage#

Installation#

To install the flet-charts package and add it to your project dependencies:

uv add flet-charts
pip install flet-charts  # (1)!
poetry add flet-charts
Note

If you plan to use the MatplotlibChart and/or PlotlyChart controls, you need to install matplotlib and/or plotly packages respectively as well.

This can easily be done when installing flet-charts by specifying an extra:

  • [matplotlib] which installs only matplotlib
  • [plotly] which installs only plotly
  • [all] which installs both matplotlib and plotly
uv add "flet-charts[all]"  # (2)!
pip install flet-charts[all]  # (3)!
poetry add "flet-charts[all]" # (4)!

Alternatively, you can also install them on their own:

uv add matplotlib 
uv add plotly
pip install matplotlib
pip install plotly
poetry add matplotlib
poetry add plotly
  1. After this, you will have to manually add this package to your requirements.txt or pyproject.toml.
  2. Replace all with matplotlib or plotly to install only one of them.
  3. Replace all with matplotlib or plotly to install only one of them.
  4. Replace all with matplotlib or plotly to install only one of them.

Examples#

You can find examples in the respective documentation pages for each chart type: