Click or drag to resize

Paragraph AppendChart Method (ChartType, Single, Single)

Append an chart object into the document and scales it to the specified size.

Namespace: Spire.Doc.Documents
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public ShapeObject AppendChart(
	ChartType chartType,
	float width,
	float height
)

Parameters

chartType
Type: Spire.Doc.Fields.Shapes.Charts ChartType
The chart type to insert into the document.
width
Type: System Single
The width of the image in points. Can be a negative or zero value to request 100% scale.
height
Type: System Single
The height of the image in points. Can be a negative or zero value to request 100% scale.

Return Value

Type: ShapeObject
The image node that was just inserted.
See Also