# How to reduce Y references and fill up X data?

**URL:** <https://discourse.nodered.org/t/how-to-reduce-y-references-and-fill-up-x-data/59241>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [2 March 2022 15:25 UTC](https://discourse.nodered.org/t/how-to-reduce-y-references-and-fill-up-x-data/59241 "2022-03-02T15:25:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [2 March 2022 15:51 UTC](https://discourse.nodered.org/t/how-to-reduce-y-references-and-fill-up-x-data/59241/2 "2022-03-02T15:51:43Z")

</div>

> [@GiovanniG](#):
>
> today it shows on X 3 days instead of 2,

Please show us how you have configured the chart. Are you sending it live data one sample at a time or are you filling the chart from historical data?  
**[Edit]** Do you mean that the full extent of the X axis shown is three days? If so then there does only seem to be two days of data there.

> [@GiovanniG](#):
>
> the Y values are making the chart mess, I would like to reduce the number of values

You have already asked that question in this post. Please do not double post.

> [@How to get chart Y set on maximum value?](https://discourse.nodered.org/t/how-to-get-chart-y-set-on-maximum-value/58946):
>
> Hi, I'm passing by a switch node data from Openwather in this way: [{ 'series':["Media","Raffiche"], "data":[[[payload.hourly].{'x':dt\*1000,'y':wind\_speed}], [[payload.hourly].{'x':dt\*1000,'y':wind\_gust}] ] }] But I got only half chart filled, how can I have the Y set to maximum value give into the array? Why now the maximum is only about the half of chart? Thanks [immagine] [immagine] As you see I'm using a "flat" chart to save space vertically, and this result to le…

---

_[View the full topic](https://discourse.nodered.org/t/how-to-reduce-y-references-and-fill-up-x-data/59241)._
