# Chart node does not take data as expected

**URL:** <https://discourse.nodered.org/t/chart-node-does-not-take-data-as-expected/90891>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [11 September 2024 15:54 UTC](https://discourse.nodered.org/t/chart-node-does-not-take-data-as-expected/90891 "2024-09-11T15:54:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RandomSporadicProjs](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@RandomSporadicProjs](https://discourse.nodered.org/u/RandomSporadicProjs)\
**Post date:** [11 September 2024 16:27 UTC](https://discourse.nodered.org/t/chart-node-does-not-take-data-as-expected/90891/2 "2024-09-11T16:27:31Z")

</div>

I've been doing this today too. Actually it turns out to be much better than the old way for database derived data.

Have a look at this link for more information on getting your data to display.

> [@Chart Dashboard 2.0](https://discourse.nodered.org/t/chart-dashboard-2-0/88757/2):
>
> 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: [{ "DateTime": "2024-06-17 14:23:24" "Carbon Monoxide": 1 "Oxygen": 20, "Light Intensity": 134, "Temperature…

---

_[View the full topic](https://discourse.nodered.org/t/chart-node-does-not-take-data-as-expected/90891)._
