I am currently working with a Highcharts chart that includes multiple tabs allowing users to display different data on the graph. I am dynamically adding series for each of these data points, which has been functioning well.
However, I have encountered an issue where I would like to manually set the min
and max
values for the yAxis
for two specific data points. This is in order to ensure that when comparing their data on the graph, they align correctly. Unfortunately, I have been unable to find a way to customize the min
and max
values for the added series' yAxis
.
Below is my current code snippet:
window["chart"].addAxis({
id: 'Data',
title: {
text: 'Graph',
enabled: true
},
lineWidth: 0,
lineColor: '#000000'
});
window["chart"].addSeries({
data: groupingData,
name: 'Graph',
type: 'line',
color: '#000000',
yAxis: 'Data'
});
How can I specify the desired min
and max
values for the yAxis
when dynamically adding these series?