Collection: Channels
- Updated2024-09-12
- 1 minute(s) read
(2DBoxWhisker | 2DGroupedBars | 2DStackedBars | Collections) > Collection: Channels
Collection: Channels
The Channels object provides the y-channels of a 2D axis system in the display mode Stacked bars or Grouped bars in DIAdem REPORT.
The following example generates a 2D axis system with stacked bars:
| VBScript | Python |
Dim oMy2DAxisSystem, oMyPos, oMy2DCurve Call Report.NewLayout() Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem") Set oMyPos = oMy2DAxisSystem.Position.ByCoordinate oMyPos.X1 = 20 oMyPos.X2 = 80 oMyPos.Y1 = 20 oMyPos.Y2 = 80 Set oMy2DCurve = oMy2DaxisSystem.Curves2D.Add(e2DShapeStackedBars, "MyNew2DCurve") oMy2DCurve.Shape.XChannel.Reference = "" oMy2DCurve.Shape.YChannels.Add("[4]/[1]") oMy2DCurve.Shape.YChannels.Add("[4]/[2]") oMy2DCurve.Shape.YChannels.Add("[4]/[3]") Call Report.Refresh()
Properties
Returned From
2DBoxWhisker.YChannels | 2DGroupedBars.YChannels | 2DStackedBars.YChannels