New to Telerik Document ProcessingStart a free 30-day trial

Floating shape that embeds a chart within a worksheet, supporting visual data representation with positioning and sizing.

Definition

Constructors

Initializes a new instance of the FloatingChartShape class.

C#
public FloatingChartShape(Worksheet worksheet, CellIndex cellIndex, CellRange chartDataRange, params ChartType[] chartTypes)
Parameters:worksheetWorksheet

The worksheet that the shape is associated with.

cellIndexCellIndex

The cell index where the top left corner of the shape is positioned.

chartDataRangeCellRange

The range containing the chart data.

chartTypesChartType[]

The types of chart that will be created. Passing more than one type will create a combo chart.

Initializes a new instance of the FloatingChartShape class.

C#
public FloatingChartShape(Worksheet worksheet, CellIndex cellIndex, CellRange chartDataRange, SeriesRangesOrientation seriesRangesOrientation, params ChartType[] chartTypes)
Parameters:worksheetWorksheet

The worksheet that the shape is associated with.

cellIndexCellIndex

The cell index where the top left corner of the shape is positioned.

chartDataRangeCellRange

The range containing the chart data.

seriesRangesOrientationSeriesRangesOrientation

A value indicating whether the series of the chart will refer to vertical or horizontal ranges or the direction will be determined automatically.

chartTypesChartType[]

The types of chart that will be created. Passing more than one type will create a combo chart.

Properties

Gets or sets the chart displayed by this shape, defining all visual and data series.

C#
public DocumentChart Chart { get; set; }

Gets or sets the background fill styling for the chart shape.

C#
public Fill Fill { get; set; }

Gets the shape type, always Chart for this shape.

C#
public override FloatingShapeType FloatingShapeType { get; }

Overrides: FloatingShapeBase.FloatingShapeType

Gets the border outline styling for the chart shape.

C#
public Outline Outline { get; }