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

**URL:** <https://racket.discourse.group/t/anyone-knows-how-to-insert-a-line-graph-in-a-pollen-document/419>\
**Category:** Questions & Answers\
**Tags:** question, pollen\
**Created:** [December 13, 2021, 3:57pm UTC](https://racket.discourse.group/t/anyone-knows-how-to-insert-a-line-graph-in-a-pollen-document/419 "2021-12-13T15:57:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agarzia](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/agarzia/32/130_2.png) [@agarzia](https://racket.discourse.group/u/agarzia)\
**Post date:** [December 13, 2021, 3:57pm UTC](https://racket.discourse.group/t/anyone-knows-how-to-insert-a-line-graph-in-a-pollen-document/419/1 "2021-12-13T15:57:47Z")

</div>

I use Pollen to make my [website](https://andregarzia.com). 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.

---

<div class="post-metadata">

**Author:** ![sorawee](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sorawee](https://racket.discourse.group/u/sorawee)\
**Post date:** [December 13, 2021, 4:17pm UTC](https://racket.discourse.group/t/anyone-knows-how-to-insert-a-line-graph-in-a-pollen-document/419/2 "2021-12-13T16:17:12Z")

</div>

See an example at [https://github.com/mbutterick/pollen-users/issues/46#issuecomment-622071331](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](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](https://github.com/mbutterick/pollen-users). I don't know how many Pollen users are in this Discourse.

---

<div class="post-metadata">

**Author:** ![agarzia](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/agarzia/32/130_2.png) [@agarzia](https://racket.discourse.group/u/agarzia)\
**Post date:** [December 15, 2021, 7:59pm UTC](https://racket.discourse.group/t/anyone-knows-how-to-insert-a-line-graph-in-a-pollen-document/419/3 "2021-12-15T19:59:29Z")

</div>

@sorawee,

Thanks a lot for the help. You've pointed me in the correct direction and I could finally create the [blog post](https://andregarzia.com/2021/12/in-defense-of-the-damage-chart.html) I wanted with charts and other niceties. I documented a bit of the journey in [another post](https://andregarzia.com/2021/12/the-blog-is-the-program.html).
