AddChart()
Contents
[
Hide
]IShapeCollection::AddChart(Charts::ChartType, float, float, float, float) method
Creates a new chart, initializes it with sample series data and settings, and adds it to the end of the shape collection.
virtual System::SharedPtr<Charts::IChart> Aspose::Slides::IShapeCollection::AddChart(Charts::ChartType type, float x, float y, float width, float height)=0
Arguments
| Parameter | Type | Description | 
|---|---|---|
| type | Charts::ChartType | The type of chart to add. | 
| x | float | The x-coordinate of the new chart, in points. | 
| y | float | The y-coordinate of the new chart, in points. | 
| width | float | The width of the chart, in points. | 
| height | float | The height of the chart, in points. | 
Return Value
The newly created Charts::IChart.
IShapeCollection::AddChart(Charts::ChartType, float, float, float, float, bool) method
Creates a new chart, initializes it with sample series data and settings, and adds it to the end of the shape collection.
virtual System::SharedPtr<Charts::IChart> Aspose::Slides::IShapeCollection::AddChart(Charts::ChartType type, float x, float y, float width, float height, bool initWithSample)=0
Arguments
| Parameter | Type | Description | 
|---|---|---|
| type | Charts::ChartType | The type of chart to add. | 
| x | float | The x-coordinate of the new chart, in points. | 
| y | float | The y-coordinate of the new chart, in points. | 
| width | float | The width of the chart, in points. | 
| height | float | The height of the chart, in points. | 
| initWithSample | bool | True to initialize the new chart with sample series data and settings; false to create the chart with no series and only minimal settings, which makes creation faster. | 
Return Value
The newly created Charts::IChart.
See Also
- Enum ChartType
 - Typedef SharedPtr
 - Class IChart
 - Class IShapeCollection
 - Namespace Aspose::Slides
 - Library Aspose.Slides