# Dashboard Chart different Y Axis per Topic

**URL:** <https://discourse.nodered.org/t/dashboard-chart-different-y-axis-per-topic/21258>\
**Category:** Dashboard\
**Created:** [4 February 2020 13:38 UTC](https://discourse.nodered.org/t/dashboard-chart-different-y-axis-per-topic/21258 "2020-02-04T13:38:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [4 February 2020 13:38 UTC](https://discourse.nodered.org/t/dashboard-chart-different-y-axis-per-topic/21258/1 "2020-02-04T13:38:00Z")

</div>

Hello Gentlemen,  
May I know if it is possible to make our Dashboard Chart having different YAxis per topic?  
I have 2 topics that has a big difference on the values, and my chart doesn't look good for that. That is why I am asking if possible to make two YAxis for each topic?.

Thanks !  
Regards

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 February 2020 13:45 UTC](https://discourse.nodered.org/t/dashboard-chart-different-y-axis-per-topic/21258/2 "2020-02-04T13:45:19Z")

</div>

not with the simple charting we have available no.  
Either rescale of your number ranges to something more equivalent (can you use milli... or kilo... ?) or you will need to use a ui\_template and a different charting package.

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [4 February 2020 13:55 UTC](https://discourse.nodered.org/t/dashboard-chart-different-y-axis-per-topic/21258/3 "2020-02-04T13:55:55Z")

</div>

Thanks for the prompt answer and insights Sir. Hopefully in the near future we could have this options in our Dashboard Charts.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [4 February 2020 14:11 UTC](https://discourse.nodered.org/t/dashboard-chart-different-y-axis-per-topic/21258/4 "2020-02-04T14:11:11Z")

</div>

It is possible to create left and right axes  
[https://www.chartjs.org/docs/latest/axes/cartesian/#creating-multiple-axes](https://www.chartjs.org/docs/latest/axes/cartesian/#creating-multiple-axes).

```auto
msg.ui_control = {options: {
        scales: {
            yAxes: [{
               
                id: 'left-y-axis',
                type: 'linear',
                position: 'left',
                ticks: {
                    suggestedMin: 0,
                    suggestedMax: 1000
                }
            } , {
                id: 'right-y-axis',
                type: 'linear',
                position: 'right',
                ticks: {
                    suggestedMin: 0,
                    suggestedMax: 10
                }
            }]
        }
    }
    
}
delete msg.payload
return msg;

```

But I'm not sure if live data can be managed to follow the configuration. Probably not.

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [4 February 2020 14:13 UTC](https://discourse.nodered.org/t/dashboard-chart-different-y-axis-per-topic/21258/5 "2020-02-04T14:13:17Z")

</div>

Thanks my friend, I actually saw this on internet, just dont know how to use it. Thanks for sharing your insight!

---

<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:** [5 March 2020 14:13 UTC](https://discourse.nodered.org/t/dashboard-chart-different-y-axis-per-topic/21258/6 "2020-03-05T14:13:24Z")

</div>

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