# Line chart: maximum y axis values?

**URL:** <https://discourse.nodered.org/t/line-chart-maximum-y-axis-values/100455>\
**Category:** Dashboard\
**Tags:** node-red-dashboard, chart, dashboard-2, ui-chart\
**Created:** [25 February 2026 12:46 UTC](https://discourse.nodered.org/t/line-chart-maximum-y-axis-values/100455 "2026-02-25T12:46:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![metawops](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/metawops/32/105800_2.png) [@metawops](https://discourse.nodered.org/u/metawops)\
**Post date:** [25 February 2026 12:46 UTC](https://discourse.nodered.org/t/line-chart-maximum-y-axis-values/100455/1 "2026-02-25T12:46:58Z")

</div>

I'm using the astrodata node and wanted to plot the sun distance values (app. 148.100.000 km) on the y axis of a line chart.  
I had to divide the values by 1000 to make something happen.  
I was searching the docs for some information about maximum values – to no avail.  
Is 148 million too large of a number for the chart to handle? Where's the limit?

---

<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:** [25 February 2026 13:31 UTC](https://discourse.nodered.org/t/line-chart-maximum-y-axis-values/100455/2 "2026-02-25T13:31:51Z")

</div>

It works ok for me with big numbers

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/aed5d3c95115007792ae95606f60042696ba06aa.png)

Can you show us what the messages that you are sending into the chart look like if you feed them to a debug node?

---

<div class="post-metadata">

**Author:** ![metawops](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/metawops/32/105800_2.png) [@metawops](https://discourse.nodered.org/u/metawops)\
**Post date:** [26 February 2026 12:01 UTC](https://discourse.nodered.org/t/line-chart-maximum-y-axis-values/100455/3 "2026-02-26T12:01:39Z")

</div>

Very interesting, @Colin, thanks for caring!

The [Astrodata](https://flows.nodered.org/node/node-red-contrib-astrodata) nodes deliver their data/values directly in the msg object. For example, the sun distance is in `msg.sunDistance`, _not_ in `msg.payload` or `msg.payload.sunDistance`.

When I connect a chart node directly to the output of such an astro data node and configure its y values to be `msg.sunDistance` I get nothing in the chart.

However, when I use a change or a function node in between and set the value of `msg.payload` to `msg.sunDistance`'s value and then configure the y value in the chart node to be `msg.payload` it works indeed. 🤔

So, it's not a problem with large numbers but it seems to be a problem with the chart node not being able to correctly access `msg.sunDistance` ...

---

<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:** [26 February 2026 13:20 UTC](https://discourse.nodered.org/t/line-chart-maximum-y-axis-values/100455/4 "2026-02-26T13:20:49Z")

</div>

Again, it works for me with the value in msg.sunDistance. Feed the messages into a Debug node set to Output complete message and show us what it looks like, and show us how the chart node is configured.

---

<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:** [28 March 2026 13:21 UTC](https://discourse.nodered.org/t/line-chart-maximum-y-axis-values/100455/5 "2026-03-28T13:21:07Z")

</div>

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