I can't get the tooltip to display formatted date field (it just gives me the formatting expression back) please see code snippet below in bold. However if I remove "ChartAggregateFunction.Sum" below it displays fine. Can you please tell me the correct way to access that?
I was following the example for charts and everything works, except the tooltip - Creation part. I've attached an image of demo example.
Here's the snippet, my source is a List<MyChartItem>, where MyChartItem contains two properties: int Interest, DateTime Creation.
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.SeriesDefinition.ShowItemToolTips = true;
seriesMapping.SeriesDefinition.ItemToolTipFormat = string.Concat("Month: ", "#DATAITEM.Creation{MMM-yy}", "\r\nInterest: #Y");
seriesMapping.GroupingSettings.GroupDescriptors.Add(new ChartYearGroupDescriptor());
seriesMapping.GroupingSettings.GroupDescriptors.Add(new ChartMonthGroupDescriptor());
seriesMapping.ItemMappings.Add(new ItemMapping("Interest", DataPointMember.YValue, ChartAggregateFunction.Sum));
seriesMapping.ItemMappings.Add(new ItemMapping("Creation", DataPointMember.XCategory));
MyChart.SeriesMappings.Add(seriesMapping);
MyChart.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "MMM-yy";
this.MyChart.ItemsSource = chartItems;