How can I bind the XamWebChart to a SeriesCollection. I'm getting data from a service, in Xml format, containing the values and styles for few series' with several datapoints.
I created SeriesCollection in my ViewModel. Now how should I bind my view to make it use the SeriesCollection to draw graphs.
Hi Graham,
I am facing the same issue with xamGrid - Silverlight. From the description you gave in the post above, it make sense that ICustomTypeProvider works at silverlight binding level but xamGrid works at a level lower than that.
The workaround you suggested of creating runtime types works fine but causes performance overhead. I would ideally like to see ICustomTypeProvider or DynamicObjects binding seamlessly with Infragistics components.
Is there any plan to support this in upcoming Infragistics releases ? I have tried Infragistics 12.1 as well, but its still not implemented.
There may not be a way to use indexed properties currently with the labels. I would suggest making a feature request.
The xamWebChart does not support indexed properties.
In either case, your work would be easier if you bound types with named properties against the chart. If this is not possible, I'd recommend making the above feature request.
Also, when I am trying to use indexed properties with XamDataChart, I am able to use indexed properties in "ValueMemberPath", but unable to use them in Axis Labels. Can you please help me on that as well?
Thanks,
-Vikram
I am not sure if I could follow the approach you mentioned about using adapter instead of using DataMapping. If any example code can be provided, I guess that should help.Also, what I need in essence is to use MVVM pattern and have different types of charts e.g., Bar, Column, Line, Pie etc. generated. The data to be used for binding is going to have variable no. of fields, so the collection I end up with after receiving response from service is a collection of dynamic objects, with indexed properties. This is the reason I cannot go for named properties. My question is will it be possible to implement charts as mentioned in above para with MVVM approach, OR I will be required to have code-behind approach mixed with MVVM for creating charts dynamically?
Hi,
I thought you were talking about xamDataChart. The xamWebChart does not support string indexers for the series data. You could try the 11.2 xamDataChart or create a type with named properties for the xamWebChartData.
Alternatively you could create an adapter that looks at your dynamicObjects and creates a collection of DataPoint and adds those directly to the series rather than using DataMapping.
-Graham