Version

Volume Pane

Purpose

This topic demonstrates the Volume Pane of the XamFinancialChart control.

financialchart wpf pane volume.png

The above screenshot highlights the Volume Pane of the chart and the drop down that is used to adjust the chart type at run time. The supported chart types for this pane are:

  • None

  • Column

  • Line

  • Area

By default, this is set to None which means the chart will not render the Volume Pane. You can find more information on properties related to the Volume Pane below:

Property Name Type Description

FinancialChartVolumeType

Gets or sets the type of the volume pane.

BrushCollection

Gets or sets the palette of brushes to use for coloring the volume pane.

BrushCollection

Gets or sets the palette of brushes to use for outlines on the volume pane.

double

Gets or sets the thickness of the volume pane.

You can set the volume type through code as follows:

In XAML:

<ig:XamFinancialChart ItemsSource="{Binding}"
    VolumeType="Area"
    VolumeBrushes="Red"
    VolumeOutlines="Green"
    VolumeThickness="2" />

In Visual Basic:

Dim chart = New XamFinancialChart()
chart.VolumeType = Infragistics.Controls.Charts.FinancialChartVolumeType.Area

chart.VolumeBrushes = New Infragistics.BrushCollection()
Dim brush As SolidColorBrush = New SolidColorBrush()
brush.Color = Colors.Red;
chart.VolumeBrushes.Add(brush)

chart.VolumeOutlines = new Infragistics.BrushCollection()
Dim brush2 As SolidColorBrush = New SolidColorBrush()
brush2.Color = Colors.Green
chart.VolumeOutlines.Add(brush2)

chart.VolumeThickness = 2

In C#:

var chart = new XamFinancialChart();
chart.VolumeType = Infragistics.Controls.Charts.FinancialChartVolumeType.Area;

chart.VolumeBrushes = new Infragistics.BrushCollection();
var brush = new SolidColorBrush();
brush.Color = Colors.Red;
chart.VolumeBrushes.Add(brush);

chart.VolumeOutlines = new Infragistics.BrushCollection();
var brush2 = new SolidColorBrush();
brush2.Color = Colors.Green;
chart.VolumeOutlines.Add(brush2);

chart.VolumeThickness = 2;
Topic Purpose

This article is an overview of the different chart panes.