Set chart max value

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
}

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

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