AddChart
Contents
[
Hide
]AddChart(ChartType, float, float, float, float)
Creates a new chart, initializes it with sample series data and settings, and adds it to the end of the shape collection.
public IChart AddChart(ChartType type, float x, float y, float width, float height)
Parameter | Type | Description |
---|---|---|
type | ChartType | The type of chart to add. |
x | Single | The x-coordinate of the new chart, in points. |
y | Single | The y-coordinate of the new chart, in points. |
width | Single | The width of the chart, in points. |
height | Single | The height of the chart, in points. |
Return Value
The newly created IChart
.
See Also
- interface IChart
- enum ChartType
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddChart(ChartType, float, float, float, float, bool)
Creates a new chart, initializes it with sample series data and settings, and adds it to the end of the shape collection.
public IChart AddChart(ChartType type, float x, float y, float width, float height,
bool initWithSample)
Parameter | Type | Description |
---|---|---|
type | ChartType | The type of chart to add. |
x | Single | The x-coordinate of the new chart, in points. |
y | Single | The y-coordinate of the new chart, in points. |
width | Single | The width of the chart, in points. |
height | Single | The height of the chart, in points. |
initWithSample | Boolean | 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 IChart
.
See Also
- interface IChart
- enum ChartType
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides