# Right Axis in the Time plot

**URL:** https://discourse.nodered.org/t/right-axis-in-the-time-plot/82989
**Category:** General
**Tags:** flexdash
**Created:** [18 November 2023 11:18 UTC](https://discourse.nodered.org/t/right-axis-in-the-time-plot/82989 "2023-11-18T11:18:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Panda](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@Panda](https://discourse.nodered.org/u/Panda)
#### Post date: [18 November 2023 11:18 UTC](https://discourse.nodered.org/t/right-axis-in-the-time-plot/82989/1 "2023-11-18T11:18:50Z")

</div>

Hey guys,  
I'm trying to use the right Axis in my time plot.  
But when I use msg.axes I'll only get the error "...must be an array or null..."  
I want to record my internet speed and ping.

How can someone help me to use the right Axis for my ping with a different scale and unit?

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [18 November 2023 11:30 UTC](https://discourse.nodered.org/t/right-axis-in-the-time-plot/82989/2 "2023-11-18T11:30:43Z")

</div>

This is how I use the right axis;

```auto
msg.payload = data
msg.labels = ["zero line", "Power grid", "Solar", "Diverted", "Diverter temp"]
msg.widths = [2, 2, 2, 2, 2]
msg.colors = ['blue', 'red', '#ffd23d', 'grey', 'purple']
msg.axes = ["right", "right", "right", "right", "left"]
msg.left_unit = " °C"
msg.left_decimals = 1
msg.right_unit = " W"
msg.left_min = 10
msg.left_max = 40
msg.right_decimals = 0

```

---

<div class="post-metadata">

### Author: ![Panda](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@Panda](https://discourse.nodered.org/u/Panda)
#### Post date: [18 November 2023 11:39 UTC](https://discourse.nodered.org/t/right-axis-in-the-time-plot/82989/3 "2023-11-18T11:39:47Z")

</div>

Perfect, thank you so much.  
I was struggling for hours 🙈  
I miss understood how to use the axes

---

<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: [2 December 2023 11:39 UTC](https://discourse.nodered.org/t/right-axis-in-the-time-plot/82989/4 "2023-12-02T11:39:56Z")

</div>

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