Version

Using Percent Change Y Axis

This topic demonstrates, with code examples, how to use the PercentChangeYAxis in the UltraDataChart control. This axis allows the ability to show percent values as opposed to the actual bound values to the chart.

Required Background

The following topics are prerequisites to understanding this topic:

Topic Purpose

Chart Axes

This topic provides conceptual information about Axis objects used in the UltraDataChart control.

In this topic

This topic contains the following sections:

Overview

The PercentChangeYAxis may be used with the following series types:

Note
Note:

StackedSeries are not currently supported by the PercentChangeYAxis.

The PercentChangeYAxis works such that it takes the first data point in your series as a reference value. Each value after the first value is scaled according to what percent increase or decrease it is compared to the reference value.

For CategorySeries, this reference value corresponds to the ValueMemberPath for those series.

For ScatterSeries, the reference value will correspond to the YMemberPath for those series.

For RangeSeries, the reference value will correspond to the first low value.

For FinancialSeries and Financial Indicators, the reference value will correspond to the first "Open" value.

Code Example

The following code example demonstrates usage of the PercentChangeYAxis element in the UltraDataChart control.

In C#:

var dataChart = new UltraDataChart();
var percentYAxis = new PercentChangeYAxis();
dataChart.Axes.Add(percentYAxis);

In VB.NET:

Dim dataChart As UltraDataChart = New UltraDataChart()
Dim percentYAxis As PercentChangeYAxis = New PercentChangeYAxis()
dataChart.Axes.Add(percentYAxis)

Below is a screenshot demonstrating the usage of the PercentChangeYAxis with a FinancialPriceSeries.

percent_change_y_axis.png