# Shred Payload and make a graph

**URL:** <https://discourse.nodered.org/t/shred-payload-and-make-a-graph/44308>\
**Category:** Dashboard\
**Created:** [17 April 2021 05:04 UTC](https://discourse.nodered.org/t/shred-payload-and-make-a-graph/44308 "2021-04-17T05:04:44Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [17 April 2021 07:14 UTC](https://discourse.nodered.org/t/shred-payload-and-make-a-graph/44308/7 "2021-04-17T07:14:40Z")

</div>

Here is a solution that works for most arrays of objects...

> [@Dynamic series identification from message, send data to Chart](https://discourse.nodered.org/t/dynamic-series-identification-from-message-send-data-to-chart/36682/5):
>
> So, i am not 100% certain what you are after but if (by the title "dynamic series") you mean sending alternative types of data from a database (i.e. varying fields and varying quantities) then this should get you close. It was a simple adaption of the previous solution I pointed you to, modified to build the series from the field names of the 1st data element in the data passed in. There are 2 injects to simulate two different sets of mySQL data [image] [{"id":"227e8b13.87c804…

With very little changes, you could adapt this.

---

_[View the full topic](https://discourse.nodered.org/t/shred-payload-and-make-a-graph/44308)._
