# Chart Dashboard 2.0

**URL:** <https://discourse.nodered.org/t/chart-dashboard-2-0/88757>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [17 June 2024 12:46 UTC](https://discourse.nodered.org/t/chart-dashboard-2-0/88757 "2024-06-17T12:46:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [17 June 2024 15:44 UTC](https://discourse.nodered.org/t/chart-dashboard-2-0/88757/2 "2024-06-17T15:44:37Z")

</div>

Dashboard 2.0 is not backward compatible.

One of the joys, and big changes we made for of Dashboard 2.0, is that you don't need to separate and pre-format your data.

Instead of having multiple arrays, all duplicating data as you have it currently, you can just use the output from SQL directly, and have a single array containing the relevant data in each object, e.g:

```js
[{
    "DateTime": "2024-06-17 14:23:24"
    "Carbon Monoxide": 1
    "Oxygen": 20,
    "Light Intensity": 134,
    "Temperature": 29.3,
    "Humidity": 45
}, 
...]

```

Then, on the options of your chart, choose series type to be "JSON", and define each of your series there:

 ![Screenshot 2024-06-17 at 16.44.11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/f/0f424b4d648ef162852f94361f6ef02f47c05880.png)

You can read more about this property here: [Chart ui-chart | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/nodes/widgets/ui-chart.html#working-with-data)

---

_[View the full topic](https://discourse.nodered.org/t/chart-dashboard-2-0/88757)._
