I'm trying to hide the item labels on my chart. There are 52 items on one chart, so the item labels hide the actual line on the chart. I can't figure out how to turn them off. The data is generated from the code-behind. Here is a snippet that shows how I am creating the chart data:
Is there a simple way to do this? Demo code would be most appreciated. I would prefer the option to do it either in the XAML or the code-behind, since I might want to set the default in the XAML but then change it in the code-behind.
SeriesMapping mySeries = new SeriesMapping();mySeries.LegendLabel = "Current Year Cash Balance";mySeries.SeriesDefinition = new SplineSeriesDefinition();mySeries.SeriesDefinition.Appearance.StrokeThickness = 3;mySeries.ItemMappings.Add(new ItemMapping("CashBalance", DataPointMember.YValue));mySeries.ItemMappings.Add(new ItemMapping("Week", DataPointMember.XCategory));secondaryChart.SeriesMappings.Add(mySeries);secondaryChart.DefaultSeriesDefinition.ShowItemLabels = false;secondaryChart.ItemsSource = cashBalanceData.Tables["currentCashBalance"];Is there a simple way to do this? Demo code would be most appreciated. I would prefer the option to do it either in the XAML or the code-behind, since I might want to set the default in the XAML but then change it in the code-behind.