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?
Very interesting, @Colin, thanks for caring!
The 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 ...
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.
