<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:xuni="clr-namespace:Xuni.Forms.FlexChart;assembly=Xuni.Forms.FlexChart"
             xmlns:sample="clr-namespace:FlexChartDemo.Data.Views;assembly=FlexChart101.Data"
             x:Class="FlexChartDemo.Data.Views.Samples.FinancialChart" x:Name="page">
  <StackLayout>
    <Label BindingContext="{x:Reference page}" Text="{Binding Title}" IsVisible="{StaticResource TitleVisible}" HorizontalOptions="Center" Font="Large"/>
    <Grid Padding="10" VerticalOptions="FillAndExpand">
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition />
      </Grid.RowDefinitions>

      <StackLayout Orientation="Horizontal" >
        <Picker x:Name="pickerChartType" Title="Chart Type" HorizontalOptions="FillAndExpand" SelectedIndexChanged = "pickerChartType_SelectedIndexChanged" />
      </StackLayout>
      <xuni:FlexChart x:Name="flexChart" BindingX="Date" Grid.Row="1">
        <xuni:FlexChart.Series>
          <!--<xuni:ChartSeries Binding="Volume" Name="Volume" ChartType="Column" SymbolBorderWidth="2" />-->
          <xuni:ChartSeries Binding="High,Low,Open,Close" SymbolBorderWidth="3" />
        </xuni:FlexChart.Series>
      </xuni:FlexChart>
    </Grid>
  </StackLayout>
</ContentPage>