# Chart after refreshing the page becomes disrupted

**URL:** <https://discourse.nodered.org/t/chart-after-refreshing-the-page-becomes-disrupted/58037>\
**Category:** Dashboard\
**Tags:** node-red-dashboard, chart\
**Created:** [9 February 2022 14:56 UTC](https://discourse.nodered.org/t/chart-after-refreshing-the-page-becomes-disrupted/58037 "2022-02-09T14:56:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sulomus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sulomus/32/49578_2.png) [@Sulomus](https://discourse.nodered.org/u/Sulomus)\
**Post date:** [9 February 2022 14:56 UTC](https://discourse.nodered.org/t/chart-after-refreshing-the-page-becomes-disrupted/58037/1 "2022-02-09T14:56:02Z")

</div>

Hello everyone,  
I have an issue with fairly simple task in NodeRed. For now I am trying to generate random data and display them on a chart.

Everything works fine but after I reload the page the chart collapses and becomes disrupted:

 ![Screenshot_1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9fffd5cab7b55bbab85a5ca292ea3ab10c7d7f10.png)  
 ![Screenshot_2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/91bb70b888dc377e4ea894486d0bec2d0f8d2df2.png)

This is flow I am using:  
[flows.json](https://discourse.nodered.org/uploads/short-url/uOyS2uc30PIwrHjwFT73PqSI1Yc.json) (1.6 KB)

I have already looked into the [issue here](https://discourse.nodered.org/t/dashboard-charts-break-after-refresh-x-axis-scales-up-5-hrs/45525) but the problem was with Raspberry PI Zero and it not able to connect to the NTP. Which shouldn't be a problem for me because I have an ethernet connection and when refreshing the page the device doesn't shut down.

Thank you all in advance! 🙂

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 February 2022 16:32 UTC](https://discourse.nodered.org/t/chart-after-refreshing-the-page-becomes-disrupted/58037/2 "2022-02-09T16:32:36Z")

</div>

Please see this post for how to post your flow so that it is easy for use to copy/import it - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

Also tell us which version of node-red, node-red-dashboard and nodejs you are using. You can get the node versions from Manage Palette, and the command `node -v` will tell us the node version. Also what browser/OS are you using?

---

<div class="post-metadata">

**Author:** ![AuraMadariaga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/auramadariaga/32/45730_2.png) [@AuraMadariaga](https://discourse.nodered.org/u/AuraMadariaga)\
**Post date:** [8 March 2022 06:13 UTC](https://discourse.nodered.org/t/chart-after-refreshing-the-page-becomes-disrupted/58037/3 "2022-03-08T06:13:19Z")

</div>

hello!  
How can I change the colors of the chart?

---

<div class="post-metadata">

**Author:** ![nico25](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nico25](https://discourse.nodered.org/u/nico25)\
**Post date:** [8 March 2022 06:35 UTC](https://discourse.nodered.org/t/chart-after-refreshing-the-page-becomes-disrupted/58037/4 "2022-03-08T06:35:18Z")

</div>

Doubleclick chart-node, then you can choose colors from a color-picker.

---

<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:** [7 April 2022 06:36 UTC](https://discourse.nodered.org/t/chart-after-refreshing-the-page-becomes-disrupted/58037/5 "2022-04-07T06:36:13Z")

</div>

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