Dundas Data Visualization Support Site
Dundas Support Site Home  |  Contact Us  |  Dundas Home  
Contact Us via Email
Home

Sample - Point and Figure Chart

 

The Point and Figure Chart Type sample displays a Point and Figure Financial Chart in the Dundas Chart Samples Environment (under Financial Charting → Price Change Financial Charts → Point and Figure Chart). This demo lets you see a Point and Figure chart in action and tweak the box size (which can be a floating point value, a percentage or "Default"), and reversal amount.

Point and Figure Chart

The sample's Overview provides lots of information about when to use a Point and Figure chart and how to identify trends using one.

The source code snippets demonstrate changing the chart's box size with the BoxSize attribute, and the price up/down colors (with the PriceUpColor attribute and Color property, respectively). Removing the BoxSize attribute will cause the chart to calculate an appropriate default box size for your data. You can also set the reversal amount with the ReversalAmount attribute.

C#

using Dundas.Charting.WinControl;
…

// Set series type
chart1.Series["Default"].Type = SeriesChartType.PointAndFigure;

// Set the PriceUpColor attribute            
chart1.Series["Default"]["PriceUpColor"] = "Red";

// Set the Color attribute            
chart1.Series["Default"].Color = Color.Blue;

// Clear attribute, let the default ReversalAmount to be calculated
chart1.Series["Default"].DeleteAttribute("ReversalAmount");

// Set the ReversalAmount attribute
chart1.Series["Default"]["ReversalAmount"] = "1";

// Clear attribute, let the default BoxSize to be calculated
chart1.Series["Default"].DeleteAttribute("BoxSize");

// Set the BoxSize attribute
chart1.Series["Default"]["BoxSize"] = "1";

// Set the ProportionalSymbols attribute
chart1.Series["Default"]["ProportionalSymbols"] = "false";

VisualBasic.NET

Imports Dundas.Charting.WinControl
…

' Set series type
chart1.Series("Default").Type = SeriesChartType.PointAndFigure

' Set the PriceUpColor attribute            
chart1.Series("Default")("PriceUpColor") = "Red" 

' Set the Color attribute            
chart1.Series("Default").Color = Color.Blue 

' Clear attribute, let the default ReversalAmount to be calculated
chart1.Series("Default").DeleteAttribute("ReversalAmount") 

' Set the ReversalAmount attribute
chart1.Series("Default")("ReversalAmount") = "1" 

' Clear attribute, let the default BoxSize to be calculated
chart1.Series("Default").DeleteAttribute("BoxSize") 

' Set the BoxSize attribute
chart1.Series("Default")("BoxSize") = "1" 

' Set the ProportionalSymbols attribute
chart1.Series("Default")("ProportionalSymbols") = "false"
PoorExcellent