r/learnprogramming • u/Lopsided-Ice-9283 • 27d ago
best tech stack to create a data visualization website
i am working on creating a website based on digital linguistics that can track certain data across time and groups and lets the user scroll through it from top to bottom to see how it has moved across time and become more common in use. what can be my preferred tech stack for this?
- i was thinking of going for react for the frontend and d3 for the visualisation.
- i'm confused if i should go with next.js or python/flask for the backend. it will have to crunch through around 300GB of data to render the visualisation and i will have to make a model for it to sort through, categorise it and show its trends.
- what should i choose for my database? would postgres be a safe choice? the data currently exists as compressed files that i can parse as a json stream to crunch.
i'm looking for opinions and experiences people have had building something similar and what tech stack they would choose and any tips you have for me as well. i am still new to programming so please forgive any mistakes and clarify whatever you can! much appreciated :)
2
u/YWRtaW46YWRtaW4 27d ago
You can't crunch 300 GB on request. Your server will timeout and browsers will crash. So you have to pre-compute everything:
1
u/Pale-Preparation-354 25d ago
For this kind of project, keep the data processing separate from the visualization layer. Python with FastAPI or Flask can handle the preprocessing, while React + D3 takes care of the interactive charts. DuckDB or Polars are also worth exploring for working with those huge datasets. One extra thing, if you ever need to export the finished visualizations as downloadable PDFs or reports, IronPDF is worth checking out. It can generate PDFs from HTML in .NET, so you could use it for polished exports without having to rebuild the layouts from scratch.
0
u/[deleted] 27d ago
[removed] — view removed comment