flet icon indicating copy to clipboard operation
flet copied to clipboard

How to display HTML content, e.g. charts

Open clstaudt opened this issue 2 years ago • 2 comments

In my application I would like to display charts (built with Altair, e.g. https://altair-viz.github.io/gallery/simple_bar_chart.html). These charts are HTML/JS/CSS content. How can such content be shown in a flet app?

clstaudt avatar Sep 05 '22 18:09 clstaudt

There is no way to display HTML in a Flet app. I guess it could be some web view - we might implement that in the future. For Charts implementation though please vote/subscribe to this issue: https://github.com/flet-dev/flet/issues/68

FeodorFitsner avatar Sep 05 '22 18:09 FeodorFitsner

Thanks for the response. The capability to display charts is a necessary condition for my application, so I hope that flet can support this in the near future. I will have a look at the Flutter plotting libraries. Still, I believe that a way to display any HTML output would be a great feature. Using the HTML output of various Python libraries is a reason to build the application with Python in the first place.

clstaudt avatar Sep 06 '22 10:09 clstaudt

Charts: https://flet.dev/docs/controls/charts

FeodorFitsner avatar Sep 13 '23 19:09 FeodorFitsner