<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SalesDashboard"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c1="using:C1.Xaml.Chart"
    x:Class="SalesDashboard.SalesByPartner"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400" Loaded="UserControl_Loaded_1">
    <UserControl.Resources>
        <Style x:Key="selectedStyle" TargetType="Path">
            <Setter Property="Fill" Value="#FF5EFF00" />
        </Style>
        <DataTemplate x:Key="lbl">
            <TextBlock FontSize="14" Margin="0" c1:PlotElement.LabelAlignment="MiddleRight">
                    <Run Text="$" />
                    <Run Text="{Binding Path=[Values]}" />
            </TextBlock>
        </DataTemplate>
    </UserControl.Resources>
    <Grid Background="Black">
        <Grid Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <TextBlock Text="Sales by Partner" Style="{StaticResource PageSubheaderTextStyle}" />
            <c1:C1Chart x:Name="c1Chart1" ChartType="Bar" Grid.Row="1" Margin="0 0 20 0">
                <c1:C1Chart.Data>
                    <c1:ChartData>
                        <c1:ChartData.Children>
                        <c1:DataSeries Label="Sales" ValueBinding="{Binding}" Opacity="0.9" SelectedItemLabelTemplate="{StaticResource lbl}" SelectedItemStyle="{StaticResource selectedStyle}"/>
                        </c1:ChartData.Children>
                    </c1:ChartData>
                </c1:C1Chart.Data>
                <!--<c1:C1Chart.View>
                    <c1:ChartView>
                        <c1:ChartView.AxisX>
                            <c1:Axis MajorGridStrokeThickness="0" MinorGridStrokeThickness="0" MajorTickThickness="0" MinorTickThickness="0" />
                        </c1:ChartView.AxisX>
                        <c1:ChartView.AxisY>
                            <c1:Axis MajorGridStrokeThickness="0" MinorGridStrokeThickness="0" MajorTickThickness="0" MinorTickThickness="0" />
                        </c1:ChartView.AxisY>
                    </c1:ChartView>
                </c1:C1Chart.View>-->
            </c1:C1Chart>
        </Grid>
    </Grid>
</UserControl>
