Flask-PlotlyInteractive Web Apps and Dashboards

联合创作 · 2023-09-21 00:04

Web Visualization with Plotly, Flask and Ajax - FlaPjax

Why use Dash when Plotly plus Flask is easy and more flexible? Add a little bit of AJAX and you can add interactivity.

This repo contains the code for the articles listed, below.


Web Visualization with Plotly and Flask

[Article] [Code]

This article explores using Flask and Plotly as an alternative to using Dash when creating Web apps. It compares a simple Dash app with a Flask/Plotly one and finds that the latter is easy and more flexible than it's Dash counterpart. You can find the code for the article in the Plotly folder.


An Interactive Web Dashboard with Plotly and Flask

[Article] [Code]

This article shows how to create a truly interactive app as you might with Dash with callbacks but using Plotly and Flask and a bit of AJAX. The code for this is in plotlycallback-gm.

A slightly modified version of the code above can be found here: plotlycallback-gm2. In this version no parameters are passed to the template and the chart is always loaded using Ajax. It also has the benefit of labelling the chart!


How to Build a Stocker Tracker with Plotly and Flask

[Article] [Code]

The finance library for Python gives you access to Yahoo Finance data and Plotly and Flask let you build a stunning dashboard. With a Flask back end thaat leverages the yfinance library and Plotly, and a web front end that plots a Plotly chart loaded from the server,this article shows you how to create a simple finance web app that produces impressive results.


To get all of the code either clone this repo or download the zip file


If you have found this content useful, please consider this...

Buy Me a Coffee at ko-fi.com

Please note that all the software in this repo is written for educational purposes and should not be considered suitable for production code

浏览 9
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报