# chart-hi-lo-open-close-chart

> HiLoOpenCloseSeries stock chart with bullish and bearish brushes, tooltips, and a DateTimeAxis.

**Framework:** winui  **Component:** Chart  **Variant:** hi-lo-open-close-chart

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/winui/chart-hi-lo-open-close-chart.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Chart.WinUI
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/chart-hi-lo-open-close-chart/Chart.xaml

```xaml
﻿<Page
    x:Class="Chart.Samples.HiLoOpenClose.Chart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="using:Syncfusion.UI.Xaml.Charts"
    xmlns:local="using:Chart">

    <Grid x:Name="MainGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <chart:SfCartesianChart x:Name="chart" Header="Nvidia (NVDA) Stock Performance" Height="450">

            <chart:SfCartesianChart.DataContext>
                <local:FinancialViewModel x:Name="viewModel"/>
            </chart:SfCartesianChart.DataContext>

            <chart:SfCartesianChart.XAxes>
                <chart:DateTimeAxis AutoScrollingDelta="{Binding ScrollingDelta}"
                                    AutoScrollingDeltaType="Months"
                                    ShowMajorGridLines="False"
                                    EdgeLabelsVisibilityMode="AlwaysVisible"
                                    EdgeLabelsDrawingMode="Shift"
                                    FontSize="13"
                                    LabelCreated="DateTimeAxis_LabelCreated">
                </chart:DateTimeAxis>
            </chart:SfCartesianChart.XAxes>

            <chart:SfCartesianChart.YAxes>
                <chart:NumericalAxis PlotOffsetEnd="15"
                                     RangePadding="Round"
                                     FontSize="13"
                                     EdgeLabelsVisibilityMode="AlwaysVisible">
                    <chart:NumericalAxis.AxisLineStyle>
                        <Style TargetType="Line">
                            <Setter Property="StrokeThickness" Value="0"/>
                        </Style>
                    </chart:NumericalAxis.AxisLineStyle>
                    <chart:NumericalAxis.MajorTickStyle>
                        <Style TargetType="Line">
                            <Setter Property="StrokeThickness" Value="0"/>
                        </Style>
                    </chart:NumericalAxis.MajorTickStyle>
                    <chart:NumericalAxis.LabelStyle>
                        <chart:LabelStyle LabelFormat="$0"/>
                    </chart:NumericalAxis.LabelStyle>
                </chart:NumericalAxis>
            </chart:SfCartesianChart.YAxes>

            <chart:SfCartesianChart.TooltipBehavior>
                <chart:ChartTooltipBehavior EnableAnimation="False" />
            </chart:SfCartesianChart.TooltipBehavior>

            <chart:HiLoOpenCloseSeries ItemsSource="{Binding NvdaStockData}"
                                       XBindingPath="Date"
                                       Open="Open"
                                       High="High"
                                       Low="Low"
                                       Close="Close"
                                       SegmentSpacing="0.1"
                                       SegmentWidth="0.97"
                                       EnableTooltip="True"
                                       BullishBrush="#43C94C"
                                       BearishBrush="#FF3343"/>

        </chart:SfCartesianChart>

        <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="0,10,0,0">
            <TextBlock Text="Source: "/>
            <TextBlock TextWrapping="WrapWholeWords" Margin="3,0,0,0">
                <Hyperlink NavigateUri="https://www.marketwatch.com/investing/stock/nvda/download-data" FontStyle="Italic" UnderlineStyle="None">MarketWatch</Hyperlink>
            </TextBlock>
        </StackPanel>
    </Grid>
</Page>
```
