Q: When I first embed the control, I get a message saying “Unknown Chart.” Is this an error message?
A: No. Before the control has been programmed, it displays the text “Unknown Chart” in its client area. As soon as Recalculate is called, the control will display the chart, based upon the ChartType property and the data that have been programmed.
Q: How do I get started?
A: To get some simple results, and learn the functionality of the control, first choose a chart type. In the second example above, we chose an X chart. After setting the ChartType property, add a Region. To this Region, add two SubGroups, and to each SubGroup add an Item. Finally, call the Recalculate method. The control will draw a simple X chart. Here is the code to perform this:
Chart1.ChartType = 3
Chart1.AddRegion
Chart1.Regions(1).AddSubGroup
Chart1.Regions(1).SubGroups(1).AddItem 5
Chart1.Regions(1).AddSubGroup
Chart1.Regions(1).SubGroups(2).AddItem 3
Chart1.Recalculate