Version

Chart Navigation

Topic Overview

Purpose

This topic demonstrates, with code examples, the navigation use properties in the XamDataChart™ 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 key features in the XamDataChart control.

In this topic

This topic contains the following sections

Introduction

In the XamDataChart control, chart navigation is disabled by default. Follow the instructions in the this section in order to enable it. The property configuration shown in the Recommended Value column in the table below, enables chart navigation and displays the navigation zoom bars in the chart.

Property Name Type Description Default Value Recommended Value

Boolean

When True, enables horizontal zooming of the chart.

False

True

Boolean

When True, enables vertical zooming of the chart.

False

True

Code Example

The following code snippet demonstrates how to enable chart navigation in the XamDataChart control.

In XAML:

<ig:XamDataChart x:Name="Chart"
                IsHorizontalZoomEnabled="True"
                IsVerticalZoomEnabled="True">
</ig:XamDataChart>

In C#:

var chart = new XamDataChart();
chart.IsHorizontalZoomEnabled = true;
chart.IsVerticalZoomEnabled = true;

Related Content

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic provides information on how to navigate chart in code-behind

This topic provides information on how to navigate chart using touch gestures