Article ID: 240263 - Last Review: July 15, 2004 - Revision: 2.2 How To Create a Combination Chart with the Chart Web ComponentThis article was previously published under Q240263 SUMMARY
This article describes how you can create a combination chart using the Chart Office Web Component.
MORE INFORMATION
A combination chart can include Series with Columns, Lines, or Areas. To create a combination Chart, set the Type property of each series. To illustrate, you could use the following code to create an Area/Column combination Chart from a Chart with two series:
Sample CodeNotes About Chart and Series TypesBoth Charts and Series have a Type property. Setting the Type property of a Chart object changes the chart type for every Series in the Chart. Note that if you query the Type property of a combination Chart, the returned value is chChartTypeCombo (or -1). chChartTypeCombo indicates that the Series on the Chart has different types. You cannot set a Chart Type to chChartTypeCombo; if you do, you receive an error.As mentioned earlier, a combination Chart can consist only of Series with types Column, Area, or Line. If you attempt to change a Series on a Chart to an incompatible type, all the Series types on the chart are changed. In other words, you change the Type property of the Chart object itself. Notes About Value AxesA combination chart can have two value axes. The Value axes on a chart always have the same scale. In a scenario where you have two series where the y-values are considerably different in value, the Series with the smaller values may look "dwarfed" by the Series with the larger values. Unfortunately, when using the ChartWeb component there is no way to avoid this behavior because the value axes cannot have different scales.There are alternatives you might consider for using two series with very different values:
286211
(http://support.microsoft.com/kb/286211/
)
How To Create a Combination Chart Using the Office XP Chart Component or the Office 2003 Chart Component
REFERENCES
For additional information about using the Chart Web Component, please click on the number below to view the article in the Microsoft Knowledge Base:
235885
(http://support.microsoft.com/kb/235885/EN-US/
)
How To Use the Office Chart Web Component With VB
163103
(http://support.microsoft.com/kb/163103/EN-US/
)
How to Create a GIF File from a Microsoft Excel Chart
| Article Translations
|

Back to the top
