I would like to bind a 'generic data' collection to different chart types (via TemplateSelector).
Until now I used as type for the X and Y values a numeric type.
But to be more generic, the X (and Y) axis should accept number, date or string.
I thought to change X and Y property to string, binding it to the chart and setting the FieldType property via XAML to the desired type.
But it seems it's not possible to set the FieldType via XAML because of a SL limitation.
What's the best solution to my problem?
How will chart handle the data when I use always the string type?
Will it detect the correct underlying type?
Or perhaps using a ValueConverter?
Or adding all possible types to the datapoint class? (-> lot of overhead)
I'm using SL4/2010.