DIAdem Help

Object: PieChartCurve

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

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:

VBScriptPython

 

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

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
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

Returned From

PieChart.CurvePieChart