This topic demonstrates the Volume Pane of the XamFinancialChart control.
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:
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;