Skip to content

About

NotionChartMaker is a Flask-based application that visualizes progress metrics from a Notion database in real time. The project dynamically generates a donut chart that updates periodically, displaying the current status of monthly goals or quotas

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Notion Chart Maker

I wanted a quick visual answer to “how many uploads have actually landed this month?” This Flask dashboard queries a Notion production calendar and turns its uploaded records into a donut chart, with the same counts available as JSON. Bring your own database and integration, then adapt the goal or chart to fit your workflow.

Notion Chart Maker Click preview above to watch illustrated architecture overview.

Connect a calendar

  1. Share a Notion database with your own integration. The app expects Name (title), Status (status), and Upload Due Date (date). It counts records marked Uploaded whose due date is in the current month.
  2. Set NOTION_API_KEY and DATABASE_ID in your shell environment. Keep the integration token outside the repository.
  3. Build and start the included Python 3.10 container.
docker build -t notion-chart-maker .
docker run --rm -p 127.0.0.1:8080:8080 -e NOTION_API_KEY -e DATABASE_ID notion-chart-maker

Open localhost:8080. The chart refreshes from the server, and /api/interactive-chart returns the counts and chart image. The goal defaults to five uploads and is set in main.py. This version uses the Notion database-query interface pinned by its dependency set.

Data flow

flowchart LR
  Notion[Notion database] -->|Integration API| Flask[Flask app]
  Flask -->|Monthly uploaded count| Chart[Donut chart]
  Flask -->|JSON and chart image| Browser[Browser dashboard]
Loading

The app needs a Notion integration with access to the selected database. Bind the container to loopback as shown above, and do not commit or share the integration token.

About

NotionChartMaker is a Flask-based application that visualizes progress metrics from a Notion database in real time. The project dynamically generates a donut chart that updates periodically, displaying the current status of monthly goals or quotas

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages