public override void Update(int scenario, string selectedReservoir) { if (tipografico != 0) { Series.Clear(); List <DataSeriesViewModel> dataSeriesList; try { dataSeriesList = ResultsDataProvider.GetReservoirEvolutionDataSeries(scenario, selectedReservoir); } catch { throw; } Series.Add(ChartSeriesCreator.CreateAreaSeries(dataSeriesList[0], seriesColors[0], true)); Series.Add(ChartSeriesCreator.CreateLineSeries(dataSeriesList[1], seriesColors[1], true, false)); LineSeries generationSeries = ChartSeriesCreator.CreateLineSeries(dataSeriesList[2], seriesColors[2], false, false); generationSeries.VerticalAxis = new LinearAxis() { HorizontalLocation = AxisHorizontalLocation.Right, Title = "Generación en MWh / Etapa", Minimum = 0 }; Series.Add(generationSeries); } }
public override void Update(int scenario) { if (tipografico != 0) { Series.Clear(); List <DataSeriesViewModel> dataSeriesList; try { dataSeriesList = ResultsDataProvider.GetSINGenerationDataSeries(scenario, generationType); } catch { throw; } Series.Add(ChartSeriesCreator.CreateAreaSeries(dataSeriesList[0], seriesColors[0], true)); int position; for (position = 1; position < dataSeriesList.Count - 2; position++) { Series.Add(ChartSeriesCreator.CreateAreaSeries(dataSeriesList[position], seriesColors[position], false)); } Series.Add(ChartSeriesCreator.CreateLineSeries(dataSeriesList[position], seriesColors[position], false, false)); position++; LineSeries marginalCostSeries = ChartSeriesCreator.CreateLineSeries(dataSeriesList[position], seriesColors[position], true, false); marginalCostSeries.VerticalAxis = new LinearAxis() { HorizontalLocation = AxisHorizontalLocation.Right, Title = "$/MWh", Minimum = 0 }; Series.Add(marginalCostSeries); } }
public override void Update(int scenario) { if (tipografico != 0) { Series.Clear(); List <DataSeriesViewModel> dataSeriesList; try { dataSeriesList = ResultsDataProvider.GetDailyThermalGenerationDataSeries(scenario); } catch { throw; } Series.Add(ChartSeriesCreator.CreateAreaSeries(dataSeriesList[0], seriesColors[0], true)); for (int position = 1; position < dataSeriesList.Count; position++) { Series.Add(ChartSeriesCreator.CreateAreaSeries(dataSeriesList[position], seriesColors[position], false)); } } }