This question is locked. New answers and comments are not allowed.
Hello,
I am presenting categorical and numerical data. Categorical with Stacked Bar, numerical with Candle Stick.
So if is categorical, show Stacked Bar chart:
If numerical, Candlestick chart:
If I select candle stick first then switch to stacked bar, it works but if I select stacked bar first, then switch to candle stick, the candle stick chart doesn't draw.
I have debugged to make sure the data is going through correctly and data is consistently correct, it just doesn't draw.
Thanks for any help.
I am presenting categorical and numerical data. Categorical with Stacked Bar, numerical with Candle Stick.
So if is categorical, show Stacked Bar chart:
MyRadChart.DefaultView.ChartLegend.Visibility = Visibility.Visible; MyRadChart.DefaultView.ChartArea.AxisX.Title = "Visit"; MyRadChart.DefaultSeriesDefinition.LegendDisplayMode = LegendDisplayMode.SeriesLabel; var seriesMappingCat = new SeriesMapping {SeriesDefinition = new StackedBarSeriesDefinition {ShowItemLabels = false}}; seriesMappingCat.ItemMappings.Add(new ItemMapping("ValidTextColumn", DataPointMember.YValue)); seriesMappingCat.ItemMappings.Add(new ItemMapping("VisitColumn", DataPointMember.XCategory)); MyRadChart.DefaultView.ChartArea.AxisY.AutoRange = false; MyRadChart.DefaultView.ChartArea.AxisY.Step = 1; MyRadChart.SeriesMappings.Add(seriesMappingCat);If numerical, Candlestick chart:
MyRadChart.DefaultView.ChartLegend.Visibility = Visibility.Collapsed; MyRadChart.DefaultView.ChartArea.AxisX.Title = "Visit"; var seriesMappingNum = new SeriesMapping {SeriesDefinition = new CandleStickSeriesDefinition {ShowItemLabels = false}}; seriesMappingNum.ItemMappings.Add(new ItemMapping("VisitColumn", DataPointMember.XCategory)); seriesMappingNum.ItemMappings.Add(new ItemMapping("Q1Column", DataPointMember.Open)); seriesMappingNum.ItemMappings.Add(new ItemMapping("Q3Column", DataPointMember.Close)); seriesMappingNum.ItemMappings.Add(new ItemMapping("MinColumn", DataPointMember.Low)); seriesMappingNum.ItemMappings.Add(new ItemMapping("MaxColumn", DataPointMember.High)); MyRadChart.SeriesMappings.Add(seriesMappingNum);If I select candle stick first then switch to stacked bar, it works but if I select stacked bar first, then switch to candle stick, the candle stick chart doesn't draw.
I have debugged to make sure the data is going through correctly and data is consistently correct, it just doesn't draw.
Thanks for any help.