Skip to content
ChartForgeX
Command

New-ImageOrganizationChart

Module imageplayground
Inputs
ChartForgeX.Topology.TopologyTeamMember[]
Outputs
ChartForgeX.Topology.TopologyChart

Creates an organization or team chart.

Syntax

New-ImageOrganizationChart [-Direction <TopToBottom|LeftToRight|BottomToTop|RightToLeft>] -FilePath <String> [-Height <Int32>] [-LayoutPolicy <Auto|Standard|Compact|Vertical>] [-MaxLevel <Int32>] [-MemberDefinition] <ScriptBlock> [-MinLevel <Int32>] [-NoAncestorContext] [-NodeDisplayMode <TopologyNodeDisplayMode>] [-NoTeamNode] [-PassThru] [-Show] [-ShowLegend] [-Subtitle <String>] [-TeamId <String>] -TeamLabel <String> [-Theme <Light|Dark>] [-Transparent] [-Width <Int32>] [<CommonParameters>]
#
Parameter set: Definition
New-ImageOrganizationChart [-Direction <TopToBottom|LeftToRight|BottomToTop|RightToLeft>] -FilePath <String> [-Height <Int32>] [-LayoutPolicy <Auto|Standard|Compact|Vertical>] [-MaxLevel <Int32>] -Member <TopologyTeamMember[]> [-MinLevel <Int32>] [-NoAncestorContext] [-NodeDisplayMode <TopologyNodeDisplayMode>] [-NoTeamNode] [-PassThru] [-Show] [-ShowLegend] [-Subtitle <String>] [-TeamId <String>] -TeamLabel <String> [-Theme <Light|Dark>] [-Transparent] [-Width <Int32>] [<CommonParameters>]
#
Parameter set: Member

Description

Maps PowerShell-authored team members into the shared ChartForgeX hierarchy engine, including inherited standard, compact, and vertical subtree layouts.

Examples

Authored help example

Create an engineering organization chart

New-ImageOrganizationChart -TeamId engineering -TeamLabel 'Engineering' -MemberDefinition { New-ImageOrganizationMember -Id lead -Name 'Avery Stone' -Role 'Director'; New-ImageOrganizationMember -Id platform -Name 'Morgan Lee' -Role 'Platform Lead' -ParentId lead } -FilePath engineering.svg

Parameters

-Direction TopologyLayoutDirection optional
Layered organization-chart direction.
Possible values: TopToBottom, LeftToRight, BottomToTop, RightToLeft
-FilePath String required
Output file path. Supported extensions are PNG, SVG, HTML, and HTM.
-Height Int32 optional
Output height in pixels.
-LayoutPolicy TopologyHierarchyLayoutPolicy optional
Default sibling layout inherited by organization members that do not specify their own policy.
Possible values: Auto, Standard, Compact, Vertical
-MaxLevel Int32 optional
Highest hierarchy level to include.
-MemberDefinition ScriptBlock requiredposition: 0sets: Definition
Script block that emits members from New-ImageOrganizationMember.
-MinLevel Int32 optional
Lowest primary hierarchy level to include.
-NoAncestorContext SwitchParameter optional
Omit ancestors below the requested minimum level.
-NodeDisplayMode TopologyNodeDisplayMode optional
Organization member presentation mode.
Possible values: Card, CompactCard, Tile, Pill, Icon, Artwork, Dot, Hidden
-NoTeamNode SwitchParameter optional
Omit the generated team root node.
-PassThru SwitchParameter optional
Write the generated ChartForgeX topology chart to the pipeline.
-Show SwitchParameter optional
Open the generated organization chart.
-ShowLegend SwitchParameter optional
Show the node-kind and status legend.
-Subtitle String optional
Optional chart subtitle.
-TeamId String optional
Stable team root identifier.
-TeamLabel String required
Team or organization label.
-Theme String optional
Topology theme name.
Possible values: Light, Dark
-Transparent SwitchParameter optional
Use a transparent chart background.
-Width Int32 optional
Output width in pixels.
-Member TopologyTeamMember[] requiredpipeline: True (ByValue)sets: Member
Members supplied directly or through the pipeline.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.