Object: PieChartCurve
- Updated2024-09-12
- 1 minute(s) read
(ReportObjects | SelectedObjects) > PieChart > Object: PieChartCurve
Object: PieChartCurve
The PieChartCurve object provides a slice in a pie chart in DIAdem REPORT.
The following example specifies the the data channel in a pie chart:
| VBScript | Python |
Dim oPieChart Set oPieChart = Report.ActiveSheet.Objects("PieChart1") oPieChart.CurvePieChart.Channel.Reference = "[5]/[3]"
The following example creates a pie chart and shifts one segment out of the center
| 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 oMyCurvePieChart.Channel.Reference = "[5]/[4]" oMyCurvePieChart.SliceLabel.Channel.Reference = "[5]/[1]" oMyCurvePieChart.SliceLabel.CategoryMode = eCategoryModeChannel oMyCurvePieChart.Slices.Item(2).Explosion = 10 Call Report.Refresh()
Properties
Channel | SliceLabel | Slices