<UserControl x:Class="DashboardWPF.RangeSelector"
             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:c1="http://schemas.componentone.com/winfx/2006/xaml"
             xmlns:flexChart="clr-namespace:C1.WPF.Chart;assembly=C1.WPF.FlexChart.4" 
             xmlns:local="clr-namespace:DashboardWPF"
             mc:Ignorable="d" 
             d:DesignHeight="300" MinHeight="80"  d:DesignWidth="300" Loaded="OnLoaded">
    <Grid>
        <c1:C1FlexChart x:Name="Chart" BindingX="Month" ChartType="Area" ToolTip="{x:Null}" >
            <c1:Series Binding="Sales"/>
            <c1:C1FlexChart.AxisY>
                <flexChart:Axis AxisLine="False" MajorTickMarks="None" Labels="False" />
            </c1:C1FlexChart.AxisY>
            <c1:C1FlexChart.AxisX>
                <flexChart:Axis MajorUnit="31" />
            </c1:C1FlexChart.AxisX>
            <c1:C1FlexChart.Layers>
                <c1:C1RangeSelector x:Name="Selector" UpperValueChanged="OnSelectorValueChanged" LowerValueChanged="OnSelectorValueChanged" SmallValueChange="1"/>
            </c1:C1FlexChart.Layers>
        </c1:C1FlexChart>
    </Grid>
</UserControl>
