public static void UpdateStackDataList(List <Serie> series, Serie currSerie, DataZoom dataZoom, List <List <SerieData> > dataList) { dataList.Clear(); for (int i = 0; i <= currSerie.index; i++) { var serie = series[i]; if (serie.GetType() == currSerie.GetType() && ChartHelper.IsValueEqualsString(serie.stack, currSerie.stack)) { dataList.Add(serie.GetDataList(dataZoom)); } } }