# \[SOLVED\] Using node-red-contrib-chart-image

**URL:** <https://discourse.nodered.org/t/solved-using-node-red-contrib-chart-image/35300>\
**Category:** General\
**Created:** [3 November 2020 22:42 UTC](https://discourse.nodered.org/t/solved-using-node-red-contrib-chart-image/35300 "2020-11-03T22:42:26Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [5 November 2020 08:56 UTC](https://discourse.nodered.org/t/solved-using-node-red-contrib-chart-image/35300/7 "2020-11-05T08:56:21Z")

</div>

Thank you for the advice, I managed to get it working.  
I had to do 3 steps:

1. Had to install some dependencies as described on [https://www.npmjs.com/package/canvas](https://www.npmjs.com/package/canvas)

```auto
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

```

1. Next I could install canvas (using the pi user, starting /home/pi folder):

```auto
npm install canvas

```

1. After the above 2 steps chart-image has installed from the Palette Manager in Node-Red.

Your example is working now.

Let me ask a related question: if I want to create a small graphics for example show a measurement value, maybe influence the colour based on the value, add trending icon or something similar and send that over telegram as an image. Since I have canvas installed, I could just create a canvas object and save the result to an image similarly like it is done for the canvas image, right?

---

_[View the full topic](https://discourse.nodered.org/t/solved-using-node-red-contrib-chart-image/35300)._
