<UserControl
    x:Class="SalesDashboard2015.SalesByRegion"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SalesDashboard2015"
    xmlns:Chart="using:C1.Xaml.Chart"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400" Loaded="UserControl_Loaded">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <TextBlock Text="{Binding Region_Text,Source={StaticResource SalesDashboardLocalization}}" Style="{StaticResource PageSubheaderTextStyle}"/>
            <Image Grid.Row="1" Source="ms-appx:///Assets/scaledmap_bg.png" Stretch="Fill"/>
            <Chart:C1FlexChart x:Name="flexChart" ChartType="Bubble" Grid.Row="1" BindingX="Longitude" Binding="Latitude,SaleValue">
                <Chart:Series/>
                <Chart:C1FlexChart.AxisX>
                    <Chart:Axis Labels="False" AxisLine="False" MajorGrid="False" Position="Bottom" Min="-180" Max="180"/>
                </Chart:C1FlexChart.AxisX>
                <Chart:C1FlexChart.AxisY>
                    <Chart:Axis Labels="False" AxisLine="False" Position="Left" Min="-90" Max="90"/>
                </Chart:C1FlexChart.AxisY>
            </Chart:C1FlexChart>
        </Grid>
    </Grid>
</UserControl>
