Hi,
We are developing a customized series for our XamDataChart control and show it with other ScatterLineSerieses together in one chart. The issue is other ScatterLineSerieses have set up MaximumMarkers to make sure whatever zoom of the chart, they show fixed number of markers. We do not know how Infragistics calculates the markers so we hope to write a customized series inheriting from ScatterSeries or ScatterBase. The problem is the former class is sealed and the latter class has an internal constructor that we cannot call.
However on the online document:http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamDataChart_Creating_Custom_Series.html
it says we can inherit from ScatterSeries.
Could you please help me how to achieve this function? I really appreciate it.
Thanks,
Bill
Hello Bill,
Thank you for your post. I have been looking into it and I can say that you can inherit from ScatterBase class, which is subclass of Series, but you are not able to inherit from ScatterSeries, because it is sealed. In the link you provided it is written that you can inherit from Series class and there is an example of how to achieve this.
Hope this helps you.
Hi Stefan,
Attachment shows when points are larger than 1000, the ScatterLineSeries cannot show correct number of markers.
Thanks,Bill
I have been looking into your sample and I can say that since the XamDataChart’s Markers are virtualized this behavior is expected and I can suggest you set the Series’ MaximumMarkers Property instead of binding Marker’s Visibility.
Hello,
In order to turn off the visrtulaization of the Markers, you can set the MaximumMarkers Property to 100 000 e.g., but this way the performace of the XamDataChart will decrease dramatically.
MaximumMarkers property works for one series, it does not work for showing markers for multiple series which require markers have the same x axis.
Assuming a PointViewModel has X, Y, Y1, Y2. I want to show three serieses with fixed number of markers. All markers align by x axis and draw a small line between each marker on Y1 and marker on Y2, MaximumMarkers cannot do this.