I want to load and show multiple data series like this sample but my data is coming from web service.

As per documents of ApexCharts we can use appendSeries to add data series to an existing chart.
Here is my JavaScript code that I am using to fetch data and add it as a new data series.
//Load second series
var url = 'chartdata_r02b.php';
$.getJSON(url, function(response){
console.log(response);
chart.appendSeries([{
name: 'Stock Usage 2021-2022',
data: response
}]);
});
If I use updateSeries then previously loaded series is getting replaced.
What is the problem here?
TIA