Is it possible to bind XBindingPath="{Binding Key, StringFormat='{0:MMM yyyy}'}" in
<chart:SfChart.Series>
<chart:SplineSeries x:Name="splineSalesGraph"
ItemsSource="{Binding MonthWiseSummaryList}"
XBindingPath="Key"
YBindingPath="Value"
EnableAnimation="True" EnableTooltip="False">
</chart:SplineSeries>
</chart:SfChart.Series>
where Key is a property in :
namespace System.Collections.Generic
{
public struct KeyValuePair<TKey, TValue>
{
public KeyValuePair(TKey key, TValue value);
public TKey Key { get; }
public TValue Value { get; }
public override string ToString();
}
}
in ViewModel :
MonthWiseSummaryList = new List<KeyValuePair<DateTime, double>>();
MonthWiseSummaryList.Add(new KeyValuePair<DateTime, double>(new DateTime(2017, 03, 01), 383884.00));