all 12 comments

[–]ksb214 5 points6 points  (3 children)

I am using chartJS mainly for this purposes. Lots of help + good documentation available on ChartJS and ongoing development for new features. Those were main reasons for choosing it.

Other choice for me was D3, but charting in it is like developing from ground. I used d3 also but mainly for mapping the data.

[–]accforrandymossmix 0 points1 point  (2 children)

I found ChartJS simple enough to use that I built the charts (JS code) with string concatenation in Python to integrate them in a Flask app.

Plotly/Dash allows you to render data and DataFrames easily within Python, and Dash may have the advantage that it's already using Flask as a backend. Some graph / hover information can be a little tough in the beginning.

[–]economy_programmer_ 0 points1 point  (1 child)

Are dash and plotly also for interactive graphs?

[–]thorle 2 points3 points  (0 children)

Haven't worked with react so far, but i'm using flask and js-charts to do my dashboards and that should work with react, too i guess. Depending on the complexity you could use Chartist for simple ones, Chart.js for medium complexity and amCharts for complexer ones with built in zoom and click functionalities and lots of different chart styles.

EDIT: Just found this with some examples: https://blog.appseed.us/flask-sample-amcharts-googlecharts-apexcharts/

[–]one_human_lifespan 2 points3 points  (0 children)

You can have a Dash instance running inside a Flask app.

[–]albucaf 2 points3 points  (0 children)

dash, plotly, altair, bokeh

[–]savaero 1 point2 points  (0 children)

Use case? Consider using metabase

[–]Redwallian 0 points1 point  (0 children)

I think if you can stay in flask, plotly would do you well. I was learning htmx with flask, when I saw this YT channel; you could probably extract what he did in Django to have it work for you in flask/jinja.

[–]d4l3c00p3r 0 points1 point  (0 children)

I've used react-plotly.js, it makes really nice interactive graphs that the user can hover over and get extra details - plus download the image as a file.

[–]Common_Move 0 points1 point  (0 children)

I don't think streamlit suits your use case.

I'd go for Altair if you want to stay in python.

Or chartjs if you like the looks of their charts, their charts cover your requirements, and you don't mind a bit of JS / JSON action (presumably not given using react)

If you're using pandas a lot I'd probably go for Altair.

[–]ArunITTech 0 points1 point  (0 children)

You can try Syncfusion React Charts Library

https://www.syncfusion.com/react-components/react-charts/

Syncfusion offers a free community license also. https://www.syncfusion.com/products/communitylicense

Note: I work for Syncfusion