# Set chart max value

**URL:** <https://discourse.nodered.org/t/set-chart-max-value/32115>\
**Category:** General\
**Created:** [27 August 2020 17:51 UTC](https://discourse.nodered.org/t/set-chart-max-value/32115 "2020-08-27T17:51:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hattori](https://avatars.discourse-cdn.com/v4/letter/h/bb73d2/32.png) [@Hattori](https://discourse.nodered.org/u/Hattori)\
**Post date:** [27 August 2020 17:51 UTC](https://discourse.nodered.org/t/set-chart-max-value/32115/1 "2020-08-27T17:51:24Z")

</div>

I would like to be able to set the maximum value of a dashboard chart at runtime. When i start my flow, i wait for an input to get the maximum chart value to then set it. I tried to send the followings but it does not work

> return {  
> ui\_control: {  
> max: mode10 ? 65536 : 255  
> }  
> }

> return {  
> max: mode10 ? 65536 : 255  
> }

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 August 2020 18:14 UTC](https://discourse.nodered.org/t/set-chart-max-value/32115/2 "2020-08-27T18:14:41Z")

</div>

Take a look at this page: [https://github.com/node-red/node-red-dashboard/blob/master/config-fields.md](https://github.com/node-red/node-red-dashboard/blob/master/config-fields.md)

---

<div class="post-metadata">

**Author:** ![Hattori](https://avatars.discourse-cdn.com/v4/letter/h/bb73d2/32.png) [@Hattori](https://discourse.nodered.org/u/Hattori)\
**Post date:** [27 August 2020 20:05 UTC](https://discourse.nodered.org/t/set-chart-max-value/32115/3 "2020-08-27T20:05:31Z")

</div>

great! that is exactly the kind of doc i needed. thanks

---

<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:** [26 October 2020 20:05 UTC](https://discourse.nodered.org/t/set-chart-max-value/32115/4 "2020-10-26T20:05:37Z")

</div>

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