Dynamic Chart Max Value

Hi,

Is there any way to make the Y-axis maximum value of a mapp View Bar Chart dynamic?

My production values change depending on the product, so using a fixed maximum value is not ideal.

Is it possible to adjust the Y-axis maximum at runtime?

Regards,

Hello,

Good question, there is not a max value binding but the answer is yes!
You need to use a node binding for the BarChartItems, the BarChart will take the largest value allowed for those nodes and use it as the maximum for the y axis.
In the opcua mapping you can bind the maximum EU value to another variable, this will allow you to adjust the Y-axis maximum during runtime.

Here is an example where my BarChartItems are different indexes of the array “ResultsArray”.
In the properties for EU Range I’ve mapped the maximum value to “MaxResultCnt”.
In my code I set MaxResultCnt to the largest value in my array so that the Y-Axis maximum is always equal to the largest bar (but you can adjust this logic to meet your own needs).

Wow, thank you so much. It’s working now.