...
Signature | ||||
---|---|---|---|---|
| ||||
Public Property DataLabelPlacement() As DataLabelPlacementType |
Remarks | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Wiki Markup | Set the position of each []using the []enum.
certain combinations of Placement types and chart types go together. Any invalid combinations will result in an ArgumentException.ArgumentException.
If the X or Y property of the DataLabel are set, then the DataLabelPlacement is also set to 'MovedByUser'. {align} |
Example |
---|
Csharp |
---|
//--- Create chart Chart chart = ws.Charts.CreateChart(ChartType.Column.Stacked, ws.CreateAnchor(10, 0, 0, 0)); //--- Create data series Series series = chart.SeriesCollection.CreateSeries("A1:A10"); //--- Set the data label position for the first SeriesDataLabel to OutsideEnd series[0].Label.DataLabelPlacement = DataLabelPlacementType.OutsideEnd; |
...