DIAdem Help

Object: PieChart

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

Object: PieChart

The PieChart object provides a pie chart in DIAdem REPORT.

The following example creates a pie chart:

VBScriptPython

 

Dim oPieChart
Set oPieChart = Report.ActiveSheet.Objects.Add(eReportObjectPieChart, "PieChart1")

The following example creates a pie chart, positions the pie chart, and assigns a data channel to it:

VBScriptPython

 

Dim oMyPieChart, oMyCurvePieChart, oMyPos
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  ' CurvePieChartPieChart
oMyCurvePieChart.Channel.Reference = "[5]/[4]" 
Call Report.Refresh()