<Page x:Class="FlexChartCustomization.LegendRanges"
      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="using:FlexChartCustomization"
      xmlns:Chart="using:C1.Xaml.Chart"
      mc:Ignorable="d" 
      d:DesignHeight="600" d:DesignWidth="600">
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.DataContext>
            <local:SampleViewModel />
        </Grid.DataContext>
        <Chart:C1FlexChart x:Name="flexChart" ChartType="Scatter" ItemsSource="{Binding USStatesTemperatureRecords}" BindingX="Place" Binding="High" ToolTipContent="{}{x} {y}" Header="U.S. State Record High Temperature">
            <Chart:C1FlexChart.HeaderStyle>
                <Chart:ChartStyle FontSize="15" FontFamily="GenericSansSerif"/>
            </Chart:C1FlexChart.HeaderStyle>
            <Chart:C1FlexChart.AxisY >
                <Chart:Axis Position="Left" AxisLine="False" MajorGrid="True" MajorTickMarks="None" Binding="Value,Text" Min="95" Format="#°F"/>
            </Chart:C1FlexChart.AxisY>
        </Chart:C1FlexChart>
    </Grid>
</Page>
