DIAdem Help

Property: StartAngle for PieChartSettings

  • Updated2024-09-12
  • 1 minute(s) read

Property: StartAngle for PieChartSettings

Specifies the angle of the first segment in a pie chart in DIAdem REPORT.

Object.StartAngle
ObjectPieChartSettings
Object with this property
Object.StartAngleDouble with read and write access

The following example creates a pie chart in the current worksheet with a aperture angle of 180° and a angle of 270° in the first segment:

VBScriptPython

 

Dim oMyPieChart, oMyCurvePieChart, oMyPos, oMySettings
Call Data.Root.Clear()
Call DataFileLoad(DataReadPath & "Example.tdm","TDM","")
Report.NewLayout
Set oMyPieChart = Report.ActiveSheet.Objects.Add(eReportObjectPieChart, "MyPieChart")
Set oMyPos = oMyPieChart.Position.ByCoordinate
oMyPos.X1 = 20
oMyPos.X2 = 80
oMyPos.Y1 = 20
oMyPos.Y2 = 80
Set oMyCurvePieChart = oMyPieChart.CurvePieChart
oMyCurvePieChart.Channel.Reference = "[5]/[4]" 
Set oMySettings = oMyPieChart.Settings
oMySettings.ApertureAngle = 180
oMySettings.StartAngle = 270
Call Report.Refresh()

Log in to get a better experience