Anyone knows how to insert a line graph in a pollen document?

I use Pollen to make my website. I'm now trying to create more complex documents that require me to add some line graphs. I know that one can insert runtime generated images inside scribble documents but I haven't seen any example of doing a graph inside a pollen document. Anyone has some sample code handy? Thanks in advance.

2 Likes

See an example at https://github.com/mbutterick/pollen-users/issues/46#issuecomment-622071331

It's a directed graph diagram, not a line graph. That being said, the principle is the same.

  • Convert your graph into a bitmap.

  • Save it to a file.

  • Create a tag that references the file path.

Also see https://github.com/mbutterick/pollen-users/issues/46#issuecomment-622139748 if you want to make it a bit more advanced.

FWIW, the Pollen discussion forum is at https://github.com/mbutterick/pollen-users. I don't know how many Pollen users are in this Discourse.

3 Likes

@sorawee,

Thanks a lot for the help. You've pointed me in the correct direction and I could finally create the blog post I wanted with charts and other niceties. I documented a bit of the journey in another post.

2 Likes