Obsidian Plugin

97 views
Skip to first unread message

Dylan Hojnoski

unread,
Mar 1, 2024, 1:25:53 PM3/1/24
to JSXGraph
Hi,

I created a plugin for Obsidian that uses JSXGraph to render graphs within Markdown. You create the a graph by writing YAML inside of a code block describing what you what the graph to look like and what elements to put on it. The example below would create a graph with a line on it that goes through point (0,0) and (4,1).

```graph
bounds: [-10, 10, 10, -10]
elements: [
{type: "line", def: [[0,0],[4,1]]}
]
```

This also supports composing elements and writing functions to calculate values. I also created a theme for JSXGraph so that it uses colors based on your Obsidian theme.

Hopefully, people find this useful.


Thanks,
Dylan


Alfred Wassermann

unread,
Mar 4, 2024, 2:26:15 AM3/4/24
to JSXGraph
Dear Dylan,
this is amazing! May I put the link on the JSXGraph homepage?
I did not see an installation how-to. I guess, Obsidian users
know how to do it.

Best wishes,
Alfred




Dylan Hojnoski

unread,
Mar 4, 2024, 9:31:20 AM3/4/24
to JSXGraph
Hello Alfred,

Yes you can put the link on the JSXGraph homepage. For installation Obsidian has a built-in plugin manager where you can search for the plugin and install in one click. I'm glad that you like it.

Thanks,
Dylan

Lai Hoi Yuen HYL

unread,
Mar 13, 2024, 2:37:45 AM3/13/24
to JSXGraph
Is there a way to change the horizontal axis labels for bar chart?
Reply all
Reply to author
Forward
0 new messages