Version 24.2 (latest)

Chart Navigation

Topic Overview

Purpose

This topic demonstrates, with code examples, the navigation use properties in the XamFinancialChart control and their use.

Required background

The following table lists the topics required as a prerequisite to understanding this topic.

Topic Purpose

This topic provides an overview of the XamFinancialChart control.

In this topic

This topic contains the following sections:

Introduction

In the XamFinancialChart control, chart navigation is enabled by default. The following properties can be used to configure navigation behavior.

Property Name Property Type Description

boolean

Whether the chart can be horizontally zoomed through user interactions. By default, this property is set to true.

boolean

Whether the chart can be vertically zoomed through user interactions. By default, this property is set to false.

boolean

If set to true the Y-Axis will automatically resize to the visible data range. By default, this property is set to false.

Rect

Can be used to retrieve or specify the scroll and zoom state in the XamFinancialChart
WindowRect is expressed as a Rectangle with coordinates and sizes between 0 and 1.

Code Example

The following code snippet demonstrates how to configure chart navigation in the XamFinancialChart control.

In XAML:

<ig:XamFinancialChart x:Name="chart"
    IsWindowSyncedToVisibleRange="True"
    IsVerticalZoomEnabled="False"
    IsHorizontalZoomEnabled="True">
</ig:XamFinancialChart>

In C#:

var chart = new XamFinancialChart();
chart.IsWindowSyncedToVisibleRange = true;
chart.IsVerticalZoomEnabled = false;
chart.IsHorizontalZoomEnabled = true;

In Visual Basic:

Dim chart = New XamFinancialChart()
chart.IsWindowSyncedToVisibleRange = True
chart.IsVerticalZoomEnabled = False
chart.IsHorizontalZoomEnabled = True

Related Content

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic provides information on the Zoom Pane of the XamFinancialChart