I just installed version 2011.2. I am now getting a warning that says:
'Infragistics.Controls.Charts.Axis.Chart' is obsolete: '"Please use the SeriesViewer property."
The warning is on this line of code and pretty much anywhere else I use CategoryDateTimeXAxis.Chart.
Axis.Chart.Axes.Remove(Axis);
Axis is a CategoryDateTimeXAxis. I can't seem to find any documentation on SeriesViewer. I looked at the API reference in the online docs but it doesn't tell me much about what it is for or how to use it.
Does anyone have any more info on this?
SeriesViewer is a new base class of XamDataChart and XamGeographicMap as they share a lot of logic. We are deprecating the Chart property for types that might sit in a chart or a XamGeographicMap (which are both used to view series). So, when you get a chance, you should update your code such that you use the SeriesViewer property instead of the Chart property. If there is any instance where this doesn't make sense, let us know as there could be a factoring problem.
-Graham
How would I go about removing an Axis from a chart's Axis collection when the only object I have is the Axis itself?
Would recommend casting the SeriesViewer to XamDataChart explicitely for that scenario. XamGeographicMap doesn't let you modify its axis collection so this is not available at the SeriesViewer level.