This question is locked. New answers and comments are not allowed.
Hello,
I tried to built a chart with a web request. The data loading and redrawing works fine, but I don't know, how to ajust the valueAxis automatically...
If I define the new max value of the axis, the axis adapts to this value, but I'd like to autoscale it...
With the code above I can change the max value of the axis before redrawing... can I somehow get the max value of the series to set this value as the new max value of the axis? Is there a way to autoscale it?
Hint: without having defined the valueAxis before, the Axis is autoscaled... the definition of the valueAxis is as follow:
Thank you for your help and best regards!
I tried to built a chart with a web request. The data loading and redrawing works fine, but I don't know, how to ajust the valueAxis automatically...
If I define the new max value of the axis, the axis adapts to this value, but I'd like to autoscale it...
chart.valueAxis.max = 150;Hint: without having defined the valueAxis before, the Axis is autoscaled... the definition of the valueAxis is as follow:
valueAxis: {labels: { format: '{0}', skip: 2, step: 2},title: { text: 'EUR'},name: 'price',color: '#000000',majorGridLines: {
color: '#cccccc', width: 1, visible: true}
}Thank you for your help and best regards!