Multiple Charts Tutorial

This section provides step-by-step instructions for programatically adding a Bar and XYPlot chart on the C1Chart control. The graph shows the Bar chart with a y-axis that represents the double values for the average precipitation and the x-axis that represents string values for each month from March till August. The XYPlot chart has a y2-axis that represents the double values for the average high temperature for each month from March till August and the x-axis that represents string values for each month from March till August.

The following chart illustration is shown before you begin creating the chart:

 

 

Multiple charts can be created programmatically using the following steps:

1.   Add the following directive to declare the C1.Win.C1Chart namespace:

      Visual Basic

      C#

2.   Double click Form1 and add the following code in the Form1_Load procedure to create the multiple charts:

      Visual Basic

 

      C#

 

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.