Hi,
I want to add series dynamic with this code above;
let options = {
type: 'line',
id: symbol,
name: symbol,
data: data,
yAxis: 0,
};
chart.addSeries(options);
After adding new series I make comparison type percentage like this;
chart.series.forEach((series) => {
if (compare == "value") {
min = Math.min(parseFloat(series.yData));
}
series.update({
min: min,
dataMin: min,
compare: compare
}, false);
});
chart.yAxis[0].update({ min: min,dataMin:min });
Then i remove single serie. But after i remove a serie from chart ,yAxis still starts at "0".
For example my value array min data is = 5.75 but yAxis is still at "0". how can i solve this problem?
Thanks