Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.53 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.53 KB

statista-data-analysis

Retrieve insights from Statista API and display Line-or-Pie chart via webpage

Quickstart - Pre-requisites

Download and Install Python (3.10 or above). Activate Virtual Environment and Install these libraries with peer dependencies:

python -m venv .venv 

python -m pip install flask flask-cors requests matplotlib pandas python-dotenv 

Create the following directory structure. Then, import and use individual components as required:

statista/
├── app.py
├── .venv
├── .env
├── .gitignore
├── requirements.txt
├── statista-project-structure
├── templates/
│   └── index.html
├── nppBackup/
│   └── app.py.2024-11-22_115328.bak
├── charts/  # Will store generated charts
│   └── charts.html #example

How to Use

Run the Flask application (python app.py). Open the app in your browser (http://127.0.0.1:5000). Select a category, chart type, and optional premium content, then analyze or download the data. The updated frontend should integrate seamlessly with the enhanced app.py backend. Style as per your desire!

Request API Access:

  • Create an accout with Statista here
  • Request API key access here:

Visualize your Code: