Skip to content

xpgo/obsidian-render-block-chartjs

Repository files navigation

Render Block Chartjs Plugin for Obsidian

Obsidian Plugin: Render code block of chartjs to different charts by chart.js.

Features

  • 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 chartjs instead of chart.
  • 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.

Syntax and Examples

  • 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.

Change log

0.1.x

  • Initial release (0.1.0)

Plans for future

  • More examples.

Install

  • Manually installing: go to the GitHub release page, copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/render-block-chartjs/.

Build

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run dev to start compilation in watch mode.

Support

BuyMeACoffee GitHub release (latest SemVer) GitHub all releases

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published