Obsidian Plugin: Render code block of chartjs to different charts by chart.js.
- use code block of chartjs to create charts in Obsidian
- use json syntax to define data and options for chart.js
- support most of charts and options in chart.js
NOTICE
- The code block name should be
chartjsinstead ofchart. - The plugin uses json syntax to define data and options of chart.js and supports more charts and options, it is different from the plugin Obsidian-Charts which uses YAML syntax.
- For the json syntax to define data and options, please refer to char.js docs.
- The note files in the example folder of the repo show some code blocks to create different charts.
- Initial release (0.1.0)
- More examples.
- Manually installing: go to the GitHub release page, copy over
main.js,styles.css,manifest.jsonto your vaultVaultFolder/.obsidian/plugins/render-block-chartjs/.
- Clone this repo.
npm ioryarnto install dependenciesnpm run devto start compilation in watch mode.

