How can i display datetime axis in Silverlight?

May 21, 2013 at 3:28 PM

i have 2 list in my Silverlight Project. First list holds datetime values for x axis and second list holds values for y axis. if i convert datetime values to double i can display chart but datetime values shows in double format. How can i display the datetime calues in right format?


// XAML //

<d3:Chart BottomTitle="Date" LeftTitle="Value" Width="800" Height="600">
            <TextBlock HorizontalAlignment="Center" FontSize="14" Margin="0,5,0,5">My Project</TextBlock>
        <d3:LineGraph x:Name="linegraph" Description="Values" Stroke="Blue" StrokeThickness="1"/>

// C# //

List<double> dates = new List<double>();
List<double> values = new List<double>();

//fill lists

linegraph.Plot(dates, values);