Object: PieChart
- Updated2024-09-12
- 1 minute(s) read
(ReportObjects | SelectedObjects) > Object: PieChart
Object: PieChart
The PieChart object provides a pie chart in DIAdem REPORT.
The following example creates a pie chart:
| VBScript | Python |
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:
| VBScript | Python |
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()
Properties
CurvePieChart | Index | IsSelected | Legend | Name | ObjectType | Position | SelectedElements | Settings | TagStored | TagTemporary
Methods
Returned From
ReportObjects.Add | ReportObjects.Copy | ReportObjects.Item | SelectedObjects.Item | ToolTipPieChartContext.PieChart