Notion Plotly
Simple graph generator for Notion. This page render graph using url parameters.
Usage
Pass following parameters to graph page.
/bar.html
Bar Charts: x=1,2,3,4
: x valuesy=1,2,3,4
: y valuesgroup=A,A,B,B
: group valuessortBy=?
: sort values byx
ory
orgroup
/pie.html
Pie Charts: values=1,2,3,4
: valueslabels=a,b,c,d
: labels
Examples
Integration with Notion
Notion Template: https://efcl.notion.site/Notion-Plotly-f38a5b4fafb342b6b9b3dea6e7de102c
- Create new Database
- Add the database's relation to another database which you want to collect data from
- Rollup properties
- Create URL using formula
Example
"https://notion-plotly.netlify.app/bar.html?sortBy=x&y=" + prop("Value") + "&x=" + replaceAll(replaceAll(replaceAll(prop("Date"), "年", "/"), "月", "/"), "日", "") + "&group=" + prop("Company")
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Welcome to new charts
License
MIT
Supports
Powered by netlify and plotly.