private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { ISHES proxy = ConnectHelper.ConnectToSHES(); List <Dictionary <String, Double> > measurementsForDay = proxy.GetInfoForDate(GraphDate.SelectedValue.ToString()); Dictionary <String, Double> solarPanelProduction = measurementsForDay[0]; ((LineSeries)chart.Series[0]).ItemsSource = solarPanelProduction; Dictionary <String, Double> batteryConsumptionProduction = measurementsForDay[1]; ((LineSeries)chart.Series[1]).ItemsSource = batteryConsumptionProduction; Dictionary <String, Double> powerFromUtility = measurementsForDay[2]; ((LineSeries)chart.Series[2]).ItemsSource = powerFromUtility; Dictionary <String, Double> powerToUtility = measurementsForDay[3]; ((LineSeries)chart.Series[3]).ItemsSource = powerToUtility; Dictionary <String, Double> totalConsumption = measurementsForDay[4]; ((LineSeries)chart.Series[4]).ItemsSource = totalConsumption; Dictionary <String, Double> powerPrice = measurementsForDay[5]; ((LineSeries)chart.Series[5]).ItemsSource = powerPrice; Dictionary <String, Double> moneyBalance = measurementsForDay[6]; ((LineSeries)chart.Series[6]).ItemsSource = moneyBalance; }