ChartSpace![]() |
Represents the chart workspace. The chart workspace is the top-level chart container; it can contain more than one chart, with each chart represented by a ChChart object. When a chart workspace is first created, it is empty (it does not contain any charts). Use the Add method of the ChCharts object to create a new chart.
You can use either the CreateObject method or the New keyword to create a new ChartSpace object.
The object ID for a chart control on an HTML page or a Visual Basic form returns a ChartSpace object.
The programmatic identifier for the ChartSpace object is CLSID:0002E556-0000-0000-C000-000000000046
. The following example creates a chart workspace named "ChartSpace1" on an HTML page.
<object id=ChartSpace1 classid=CLSID:0002E556-0000-0000-C000-000000000046 style="width:100%;height:350"></object>