flet-charts#
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:
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 onlymatplotlib
[plotly]
which installs onlyplotly
[all]
which installs bothmatplotlib
andplotly
Alternatively, you can also install them on their own:
- After this, you will have to manually add this package to your
requirements.txt
orpyproject.toml
. - Replace
all
withmatplotlib
orplotly
to install only one of them. - Replace
all
withmatplotlib
orplotly
to install only one of them. - Replace
all
withmatplotlib
orplotly
to install only one of them.
Examples#
You can find examples in the respective documentation pages for each chart type: