rollue / notion-charts

API to build charts for your notion.so database

Home Page:https://charts.mathix.ninja

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notion-charts

image

See other examples

Business Dashboard

Business Dashboard

Usage

For public notions

Simply use https://notion-charts.now.sh url, and follow the documentation below.

For private notions

You'll need to host your own version of this repository. The best way to do that is by clicking this button below, it will automatically host this API on vercel.com which is 100% free.

Show me the steps
  1. Click the blue Deploy button on this page
  2. Zeit is now opened, click Continue
  3. Then if you don't already have an account click Sign Up in the top right corner
  4. Choose a name for your project, keep in mind that this name will goes in your url https://YOUR-PROJECT-NAME.now.sh
  5. Don't forget to put your notion TOKEN_V2 before clicking Continue If you don't know how to get it, click here
  6. Click Continue one more time, and you're done!

Then when the hosting is completed simply follow documentation instructions below and enjoy 😎 Don't forget to use your URL instead of notion-charts.now.sh.

Deploy with Vercel

If you want to stay up to date I will recommend you to use a Deploy Hook.

Documentation

For fast and easy previews you can now go directly here.

Split notion url

https://www.notion.so/fa9b093633c0479f886fdb857f57f9b0?v=c94a0043c3df410cb461e7698cee6aff

collection_id = fa9b093633c0479f886fdb857f57f9b0

view_id = c94a0043c3df410cb461e7698cee6aff

Image charts

/chart-image/<collection>/<view>

Example:

Inital page => https://www.notion.so/fa9b093633c0479f886fdb857f57f9b0?v=c94a0043c3df410cb461e7698cee6aff

Chart => https://notion-charts.now.sh/chart-image/fa9b093633c0479f886fdb857f57f9b0/c94a0043c3df410cb461e7698cee6aff

Simply paste the chart url in your notion and click Embbed

Interactive charts

/chart/<collection>/<view>

Examples:

Inital page => https://www.notion.so/fa9b093633c0479f886fdb857f57f9b0?v=c94a0043c3df410cb461e7698cee6aff

Chart => https://notion-charts.now.sh/chart/fa9b093633c0479f886fdb857f57f9b0/c94a0043c3df410cb461e7698cee6aff

Inital page => https://www.notion.so/fa9b093633c0479f886fdb857f57f9b0?v=f1b7adb289cc4da3aa7ee6b8ac68470e

Chart => https://notion-charts.now.sh/chart/fa9b093633c0479f886fdb857f57f9b0/f1b7adb289cc4da3aa7ee6b8ac68470e

Custom status

You can use custom columns name with the l parameter

/chart-image/<collection>/<view>?l=<NAME1>|<NAME2>|...|<END-NAME>
/chart/<collection>/<view>?l=<NAME1>|<NAME2>|...|<END-NAME>

Example:

Inital page => https://www.notion.so/049c3ee811c344868b78d043e152241b?v=376b00ef4b634a7f9b51ee78bc361e15

Chart => https://notion-charts.now.sh/chart/049c3ee811c344868b78d043e152241b/376b00ef4b634a7f9b51ee78bc361e15?l=Next%20Up|In%20Progress|Completed

Dark-mode

Dark-mode is only available for interactive charts.

/chart/<collection>/<view>?dark

Examples:

https://notion-charts.now.sh/chart/049c3ee811c344868b78d043e152241b/376b00ef4b634a7f9b51ee78bc361e15?l=Next%20Up|In%20Progress|Completed&dark

https://notion-charts.now.sh/chart/fa9b093633c0479f886fdb857f57f9b0/c94a0043c3df410cb461e7698cee6aff?dark

Open for contributions

I know this API is not very flexible, but if someone want to make it better I'd be glad to accept its contribution.

About

API to build charts for your notion.so database

https://charts.mathix.ninja


Languages

Language:HTML 72.4%Language:Python 27.6%