I am using a Chart to display values on the Y axis with the XAxis representing time. Everything works fine using the DateTime.GetOATime() and times appear on the X axis fine, but when I try to get the X value to appear in the tooltip I get a value like
39850.666667. I'm wondering how I can modify the Format string to display a DateTime value. The code I am using with now is
39850.666667. I'm wondering how I can modify the Format string to display a DateTime value. The code I am using with now is
DataSeries lineSeries = new DataSeries() { LegendLabel = data.SeriesData[i].Label };
lineSeries.Definition =
new LineSeriesDefinition();
lineSeries.Definition.ToolTipFormat =
"Time: #X\nValue: #Y";
lineSeries.Definition.ShowItemLabels =
false;
lineSeries.Definition.ShowItemToolTips =
true;
I have tried to modify the ToolTipFormat string several different ways, but can't figure out a way to make this work.
Any help would be appreciated.