I have an object with some properties, such as:
public class Result{ public DateTime Date { get; set; } public Double Temperature { get; set; } public Double Humidity { get; set; }}
I would like to have possibility to dynamically change series which I plot at the chart.
Eg. to have ComboBox with string items: "Temperature" and "Humidity" with binding SelectedItems={Binding SelectedSeriesName}
In ViewModel property "SelectedSeriesName"
In chart
<telerik:StepLineSeries ItemsSource="{Binding Results}" ValueBinding="{Binding SelectedSeriesName}" CategoryBinding="Date"/>
of course that is not possible due to ValueBinding must be string.
How can I make this scenario corect?
