Cursor and DateTime-X-Axis

Jan 10, 2012 at 12:49 PM

Is it possible to use the cursor with the DateTime-Axis?

I use this syntax ang get values like 6,34E+07 instead of hh:mm:ss - format

<d3:CursorCoordinateGraph Name = "cursor"/>



Jul 10, 2012 at 8:50 PM
Edited Jul 10, 2012 at 8:50 PM

In your C# code, you can use the following example to format your graph's X-Axis tooltip to display Date/Time values rather than doubles.


CursorCoordinateGraph ccg = new CursorCoordinateGraph();
ccg.XTextMapping = x => dateAxis.ConvertFromDouble(x).ToString(CultureInfo.CurrentCulture);


Hope this helps!