DEMO FOR USING csXGraph IN Visual Basic.NET

REQUIREMENTS

The trial version of csXGraph (csXGraphTrial.ocx) must be installed.  This is available as a free download from http://www.chestysoft.com/xgraph/download.asp
Microsoft Visual Studio.NET is required.
The contents of the file VBNETGraph.zip must be unzipped and extracted keeping the current directory structure.

DESCRIPTION

This demo is almost identical in content to the standard VB5/6 demo that is distributed with csXGraph. It shows the appropriate syntax to display a bar chart, a pie chart and a line graph. It also shows how to substitute labels on the x-axis of a line graph to show strings instead of numerical values.

IMPORTANT POINTS

1. To open the project, start VB.NET and click on "Open Project".  Select the solution file VBNetGraph\VBNetGraph.sln.

2. The methods that use OLE_COLOR as a parameter, such as AddData and AddPoint, will use a UInt32 instead. The colours used for the data are stored in the Colours array, which is initialised in the Form1_Load subroutine.

3. Properties representing colours use the data type System.Drawing.Color. As an example, look in the DrawBarChart subroutine to see how the PlotAreaColor property is set.

4. The sub properties of fonts are read only and cannot be set separately. As an example, see how the TitleFont property is set using the New Font command.


 
TROUBLESHOOTING

When using this demo project, check that you are using both the latest version of the demo and the latest version of csXGraphTrial, both of which can be downloaded from the Chestysoft web site.  VB.NET may give errors when opening a project that was built with a different version (either earlier or later) of the ocx file to the one that is currently installed.    


Chestysoft, September 2013.
Website: www.chestysoft.com