# How to use node s7 to show pie chart

**URL:** <https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866>\
**Category:** General\
**Created:** [18 August 2021 08:54 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866 "2021-08-18T08:54:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nusto](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nusto](https://discourse.nodered.org/u/nusto)\
**Post date:** [18 August 2021 08:54 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866/1 "2021-08-18T08:54:50Z")

</div>

hello , I have data from S7 and I want to show on pie chart in dashboard but it didn't showed.  
I don't know how to use pie chart to show my data from my S7.  
please

 ![Screenshot (6)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d0ad943b15cea67de59e0684c8708c8d0c134024.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d65a2c0142dfe0986ccd1532b8b34fb5d417ada0.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 August 2021 10:44 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866/2 "2021-08-18T10:44:05Z")

</div>

There is a line in the 'Help' tab:

> See **[this information](https://github.com/node-red/node-red-dashboard/blob/master/Charts.md)** for how to pre-format data to be passed in as a complete chart.

If you follow that link it will show you how to format msg.payload for a Pie chart and there are some examples you can lok at/test with.

---

<div class="post-metadata">

**Author:** ![nusto](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nusto](https://discourse.nodered.org/u/nusto)\
**Post date:** [18 August 2021 13:40 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866/3 "2021-08-18T13:40:36Z")

</div>

I'm sorry , I don't know how to use that code. Where do I enter that code? Can I edit chart node or Add function and enter code.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/53f2d5fc04ac7d598928218a6a2b1d10fdcfd1f7.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/a/5aeae2491a24bd6f7a8947be88a03554cbdd562b.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 August 2021 13:52 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866/4 "2021-08-18T13:52:23Z")

</div>

Did you try importing the example so you could see how it works?

---

<div class="post-metadata">

**Author:** ![nusto](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nusto](https://discourse.nodered.org/u/nusto)\
**Post date:** [18 August 2021 14:22 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866/5 "2021-08-18T14:22:03Z")

</div>

I can't do that.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c018fe83e23cc74a1f3ded087593f08aa2b3db5b.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/39992da21700707479738c93dec557aa5add4dc2.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [18 August 2021 15:00 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866/6 "2021-08-18T15:00:05Z")

</div>

Use CTRL+I to import a flow (don't put it in a function node - it's not JavaScript)

---

<div class="post-metadata">

**Author:** ![nusto](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nusto](https://discourse.nodered.org/u/nusto)\
**Post date:** [18 August 2021 15:49 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866/7 "2021-08-18T15:49:39Z")

</div>

Thank you so much!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [17 October 2021 15:50 UTC](https://discourse.nodered.org/t/how-to-use-node-s7-to-show-pie-chart/49866/8 "2021-10-17T15:50:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
