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.
Here is the Dynamic object I have used in my code:
public class DynamicObject
{
Dictionary<string, object> properties = new Dictionary<string, object>();
public object this[string name]
get
if (properties.ContainsKey(name))
return properties[name];
}
return null;
set
properties[name] = value;
If you are talking about IDictionary indexed properties. I believe the chart can do this now in version 11.2. You can do something like this ValueMemberPath="SomeDictionary[SomeKey]" is that the kind of thing you are referring to?
Hi there!
Very nice post, and very useful as well.
I was wondering if the DataMapping defined in the code above can be used for Indexed properties of dynamically generated objects as well. I tried but it did not work.
Is it possible to have dynamically generated objects, with indexed properties being used for binding?
Thanks,
thx alot
Is there any article or blog that binds the pivot grid with the datachart??
am searching but there is only for webchart
I believe you can just set the Brush property on each fragment.