ActiveReports for .NET 3 Online Help Request technical support
Candle Charts
User Guide > Concepts > Charts > Chart Types > Financial Charts > Candle Charts

Glossary Item Box

A candle chart displays stock information using High, Low, Open and Close values. The size of the wick line is determined by the High and Low values, while the size of the bar is determined by the Open and Close values. The bar is displayed using different colors, depending on whether the price of the stock has gone up or down.

 

Chart Information

# of Y values/data point 4 (The first value is the high figure, the second is the low figure, the third is the opening figure, and the fourth is the closing figure.)
# of Series 1 or more
Marker Support Series or Data Point. Marker labels use the first Y value as the default value.
Custom Properties BodyDownswingBackdrop gets or sets the backdrop information used to fill the rectangle for data points in which the closing figure is lower than the opening figure.
BodyUpswingBackdrop gets or sets the backdrop information used to fill the rectangle for data points in which the closing figure is higher than the opening figure.
BodyWidth gets or sets the width of the rectangle used to show upswing or downswing.
WickLine gets or sets the line information for the wick line.

 

Below is an example of setting the custom chart properties at run time for a candle chart as shown in the image above.

' Visual Basic
Imports DataDynamics.ActiveReports.Chart.Graphics

With Me.ChartControl1.Series(0)
   .Properties("BodyDownswingBackdrop") = New Chart.Graphics.Backdrop(Color.FromArgb(255, 192, 255))
   .Properties("BodyUpswingBackdrop") = New Chart.Graphics.Backdrop(Color.FromArgb(192, 192, 255))
   .Properties("WickLine") = New Chart.Graphics.Line(Color.Indigo)
   .Properties("BodyWidth") = 7.0F
End With
 
// C#
Using DataDynamics.ActiveReports.Chart.Graphics

this.chartControl1.Series[0].Properties["BodyDownswingBackdrop"]= new Chart.Graphics.Backdrop
     (Color.FromArgb(255, 192, 255));
this.chartControl1.Series[0].Properties["BodyUpswingBackdrop"] = new Chart.Graphics.Backdrop
     (Color.FromArgb(192, 192, 255));
this.chartControl1.Series(0).Properties("WickLine") = new Chart.Graphics.Line(Color.Indigo);
this.chartControl1.Series[0].Properties["BodyWidth"] = 7f;

 

©2009. All Rights Reserved.