<UserControl x:Class="Txgy.EWS.Client.PageModule.Views.EventStatView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Txgy.EWS.Client.PageModule.Views"
             xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
             xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:prism="http://prismlibrary.com/"
             prism:ViewModelLocator.AutoWireViewModel="True"
             d:DesignHeight="450"
             d:DesignWidth="800"
             mc:Ignorable="d">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="420" MinWidth="420" />
        </Grid.ColumnDefinitions>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <md:Card Grid.Row="0"
                     Margin="10,5,10,5"
                     md:ThemeAssist.Theme="Light"
                     UniformCornerRadius="5">
                <lvc:CartesianChart Series="{Binding SeriesEventOfDay}" LegendLocation="Left">
                    <lvc:CartesianChart.AxisX>
                        <lvc:Axis Labels="{Binding StatDay}" Position="LeftBottom">
                            <lvc:Axis.Separator>
                                <lvc:Separator Stroke="Transparent">
                                </lvc:Separator>
                            </lvc:Axis.Separator>
                        </lvc:Axis>
                    </lvc:CartesianChart.AxisX>

                    <lvc:CartesianChart.AxisY>
                        <lvc:Axis MinValue="0" LabelFormatter="{Binding Formatter}">
                            <lvc:Axis.Separator>
                                <lvc:Separator Step="10" Stroke="Transparent">
                                </lvc:Separator>
                            </lvc:Axis.Separator>
                        </lvc:Axis>
                    </lvc:CartesianChart.AxisY>
                </lvc:CartesianChart>
            </md:Card>
            <Grid Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <md:Card Margin="10,15,10,5"
                         md:ThemeAssist.Theme="Light"
                         UniformCornerRadius="5">
                    <lvc:PieChart Tag="abc"
                                  LegendLocation="Bottom"
                                  Series="{Binding PieMLSeriesCollection}"
                                  DataClick="Chart_OnDataClick"
                                  Hoverable="False"
                                  DataTooltip="{x:Null}">
                    </lvc:PieChart>
                </md:Card>
                <md:Card Grid.Column="1"
                         Margin="10,15,10,5"
                         md:ThemeAssist.Theme="Light"
                         UniformCornerRadius="5">
                    <lvc:PieChart LegendLocation="Bottom"
                                  Series="{Binding PieGradeSeriesCollection}"
                                  DataClick="Chart_OnDataClick"
                                  Hoverable="False"
                                  DataTooltip="{x:Null}">
                    </lvc:PieChart>
                </md:Card>
            </Grid>
        </Grid>
        <local:EventListView Grid.Column="1" Margin="0,5,0,0" />
    </Grid>

</UserControl>
