I'm currently using Angular in combination with the highcharts boxplot API. While I am aware that I can manually set the max value of the y-axis in the chart configuration, such as:
max: 100,
tickInterval: 10.
There's now a need for me to dynamically adjust the max value based on the return value. For instance, if the maximum return value is approximately 60%, then the max should be set to 60.
max: 60,
tickInterval: 10.
Is there a way to incorporate a method or function to accommodate the maximum return value? Something along the lines of:
max: function(){ xxxx; return A },
tickInterval: 10
The aforementioned function serves as a custom method to verify the maximum value from the API. Once validated, it returns the updated value to the chart configuration for setting the max.