{"id":16174928,"url":"https://github.com/app-generator/sample-flask-charts-multiple","last_synced_at":"2025-03-19T00:31:02.667Z","repository":{"id":100503217,"uuid":"485227635","full_name":"app-generator/sample-flask-charts-multiple","owner":"app-generator","description":"Flask Charts via amCharts, Apex, G.Charts - Free Sample | AppSeed","archived":false,"fork":false,"pushed_at":"2022-11-25T15:57:11.000Z","size":1068,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-11T05:55:55.118Z","etag":null,"topics":["amchart","appseed-sample","chartjs","flask-sample"],"latest_commit_sha":null,"homepage":"https://blog.appseed.us/flask-sample-amcharts-googlecharts-apexcharts/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/app-generator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-25T04:54:42.000Z","updated_at":"2025-03-05T20:19:08.000Z","dependencies_parsed_at":"2023-05-15T11:15:33.654Z","dependency_job_id":null,"html_url":"https://github.com/app-generator/sample-flask-charts-multiple","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-flask-charts-multiple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-flask-charts-multiple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-flask-charts-multiple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-flask-charts-multiple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/sample-flask-charts-multiple/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955700,"owners_count":20374373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amchart","appseed-sample","chartjs","flask-sample"],"created_at":"2024-10-10T04:43:47.520Z","updated_at":"2025-03-19T00:31:02.661Z","avatar_url":"https://github.com/app-generator.png","language":"JavaScript","readme":"# [Flask Charts](https://blog.appseed.us/flask-sample-amcharts-googlecharts-apexcharts/): `amCharts`, `G.Charts`, `Apex`\n\nSample project crafted with `Flask`, `Flask-RestX` and multiple Charts Libraries to showcase how to plot different charts **Pie, Line and Bar Charts**. \nFrontend uses `Bootstrap5` for styling and the sample dataset is loaded via a custom **Flask CLI** and the project homepage showcases three charts type: `line`, `bar` and `pie`. \n\n- 👉 [Multiple Charts via Flask-RestX](https://sample-flask-charts-multiple.appseed-srv1.com/) - LIVE Demo\n- 👉 Free [support](https://appseed.us/support) via `email` and [Discord](https://discord.gg/fZC6hup).\n\n\u003cbr /\u003e\n\n\u003e Features:\n\n- ✅ `Up-to-date dependencies`\n- ✅ `Stack`: Flask\n- ✅ `API`: Flask-RestX\n- ✅ `DB Tools`: Flask-SqlAlchemy, SQLite\n- ✅ `Chart Libraries`: \n  - 👉 [Demo](https://sample-flask-charts-multiple.appseed-srv1.com/charjs) `Charts.js`\n  - 👉 [Demo](https://sample-flask-charts-multiple.appseed-srv1.com/chartist) `Chartist`\n  - 👉 [Demo](https://sample-flask-charts-multiple.appseed-srv1.com/amcharts) `amCharts`\n  - 👉 [Demo](https://sample-flask-charts-multiple.appseed-srv1.com/googlecharts) `Google Charts`\n  - 👉 [Demo](https://sample-flask-charts-multiple.appseed-srv1.com/apexcharts) `Apex Charts`\n\n\u003cbr /\u003e\n\n![Flask Charts: amCharts, Google Charts, Apex - Free sample by AppSeed.](https://user-images.githubusercontent.com/51070104/166502667-5a91b6a9-f73b-4d73-be4e-85b8462265ee.gif)\n\n\n## ✨ How to use it\n\n\u003e 👉 **Clone Sources** (this repo)\n\n```bash\n$ git clone https://github.com/app-generator/sample-flask-charts-multiple.git\n$ cd sample-flask-charts-multiple\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Install Modules** using a Virtual Environment\n\n```bash\n$ virtualenv env\n$ source env/bin/activate\n$ pip3 install -r requirements.txt\n```\n\nOr for **Windows-based Systems**\n\n```bash\n$ virtualenv env\n$ .\\env\\Scripts\\activate\n$\n$ # Install modules - SQLite Database\n$ pip3 install -r requirements.txt\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Set up the environment**\n\n```bash\n$ export FLASK_APP=run.py\n$ export FLASK_ENV=development\n```\n\nOr for **Windows-based Systems**\n\n```bash\n$ # CMD terminal\n$ set FLASK_APP=app.py\n$ set FLASK_ENV=development\n$\n$ # Powershell\n$ $env:FLASK_APP = \".\\run.py\"\n$ $env:FLASK_ENV = \"development\"\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Load Sample Data** from `data` directory\n\n- `monthly_customers.csv`\n- `monthly_sales.csv`\n- `product_sales.csv`\n\n```bash\n$ flask load-data \n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Start the APP**\n\n```bash\n$ flask run \n```\n\n\u003cbr /\u003e\n\n## ✨ Code-base structure\n\n```bash\n\u003c PROJECT ROOT \u003e\n   |\n   |-- app/\n   |    |\n   |    |-- __init__.py                 # Initialization of app\n   |    |-- routes.py                   # Handlers for the front end routes\n   |    |-- api.py                      # REST API hanlder\n   |    |-- data_loader.py              # Load data from data/ folder to sqlite database\n   |    |-- models.py                   # Database models for storing data\n   |    |-- models.py                   # Database models for storing data\n   |    |\n   |    |-- static/\n   |    |    |-- \u003ccss, JS, images\u003e       # CSS files, Javascripts files\n   |    |\n   |    |-- templates/\n   |    |    |\n   |    |    |-- index.html              # Index page\n   |    |    |-- chartjs.html            # Charts with Chart.js\n   |    |    |-- chartist.html           # Charts with chartist\n   |    |    |-- amcharts.html           # Charts with amCharts\n   |    |    |-- googlecharts.html       # Charts with Google Charts\n   |    |    |-- apexcharts.html         # Charts with Apex Charts\n   |    |    \n   |    |\n   |   data/\n   |    |-- monthly_customers.csv\n   |    |-- monthly_sales.csv\n   |    |-- product_sales.csv\n   |\n   |-- requirements.txt\n   |-- run.py\n   |\n   |-- ************************************************************************\n```\n\n\u003cbr /\u003e\n\n\u003e The bootstrap flow\n\n- `run.py` \n  - bundles all resources\n  - serve the `index.html`\n- `api.py` exposes a simple API using the DB data \n- `templates/index.html`\n  - HOMEpage of the project\n- `js/custom.js`\n  - fetch data exposed by the `API`\n\n\u003cbr /\u003e\n\n---\n[Flask Charts: amCharts, Google Charts, Apex](https://blog.appseed.us/flask-sample-amcharts-googlecharts-apexcharts/) - Free Sample provided by [AppSeed](https://appseed.us)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-flask-charts-multiple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fsample-flask-charts-multiple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-flask-charts-multiple/lists"}