<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:viewModel="clr-namespace:WpfApplication1.ViewModels"
        Title="MainWindow" Height="350" Width="525">
    
    <Window.DataContext>
        <viewModel:DowJonesViewModel />
    </Window.DataContext>
    
    <Grid>
        <telerik:ChartDataSource Name="dataSource" ItemsSource="{Binding Data}" />
        
        <telerik:RadCartesianChart Name="chart" Palette="Windows8">
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorXLineDashArray="5, 5" MajorYLineDashArray="5, 5" MajorLinesVisibility="XY">
                    <telerik:CartesianChartGrid.MajorYLineStyle>
                        <Style TargetType="{x:Type Line}">
                            <Setter Property="Stroke" Value="Gray"/>
                        </Style>
                    </telerik:CartesianChartGrid.MajorYLineStyle>
                    <telerik:CartesianChartGrid.MajorXLineStyle>
                        <Style TargetType="{x:Type Line}">
                            <Setter Property="Stroke" Value="Gray"/>
                        </Style>
                    </telerik:CartesianChartGrid.MajorXLineStyle>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis MajorStep="5" MajorStepUnit="Year" LabelFormat="yyyy"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:LineSeries ItemsSource="{Binding ElementName=dataSource}" />
            <telerik:LineSeries ItemsSource="{Binding ElementName=dataSource}" />
            <telerik:LineSeries ItemsSource="{Binding ElementName=dataSource}" />
            <telerik:LineSeries ItemsSource="{Binding ElementName=dataSource}" />
        </telerik:RadCartesianChart>
    </Grid>
</Window>
