This question is locked. New answers and comments are not allowed.
Hi there,
I have the following:
My Axis appears, but the Values are not bound to the
I have the following:
foreach (KeyValuePair<string, List<OperationData>> opd in _viewModel.OperationDataDictionary) { DataSeries ds = new DataSeries(); DataSeries ds1 = new DataSeries(); ds.Definition = ProfitChart.DefaultSeriesDefinition; ds.LegendLabel = opd.Key.ToString(); ds1.Definition = ProfitChart.DefaultSeriesDefinition; AxisY ay = new AxisY(); ay.AxisName = "WindSpeed"; ay.Title = "m/s"; ProfitChart.DefaultView.ChartArea.AdditionalYAxes.Add(ay); foreach (var elem in opd.Value.ToList()) { string _zeit = elem.OD_DATE.Value.Hour + ":" + elem.OD_DATE.Value.Minute; ds.Add(new DataPoint(_zeit, Convert.ToDouble(elem.LEISTNG_MIT))); ds1.Add(new DataPoint(_zeit, Convert.ToDouble(elem.WINDGES_MIT))); } ProfitChart.DefaultView.ChartArea.DataSeries.Add(ds); ProfitChart.DefaultView.ChartArea.DataSeries.Add(ds1); SeriesMapping seriesMapping = new SeriesMapping(); seriesMapping.CollectionIndex = 1; seriesMapping.LegendLabel = "WindSpeed"; seriesMapping.SeriesDefinition = new LineSeriesDefinition(); seriesMapping.SeriesDefinition.ShowItemLabels = false; seriesMapping.ItemMappings.Add(new ItemMapping("YValue", DataPointMember.YValue)); ProfitChart.SeriesMappings.Add(seriesMapping); }My Axis appears, but the Values are not bound to the
elem.WINDGES_MIT-Value, my Chart looks like attached.
How can I bound my Windspeed to the second YAxis?
Best Regards
Manfred