# Hierarchical Layout 02

Hierarchical Layout 02 on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**115**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example-Diagrams`

```powershell
Import-Module .\PSWriteHTML.psd1 -Force

New-HTML -TitleText 'My diagram' -FilePath $PSScriptRoot\Example-HierarchicalLayout02.html {
    New-HTMLDiagram -Height '1000px' {
        New-DiagramOptionsLayout -HierarchicalEnabled $true -HierarchicalDirection FromUpToDown #-HierarchicalSortMethod directed
        New-DiagramOptionsPhysics -Enabled $false
        New-DiagramNode -Label 'One node' -ColorBackground Bisque -Level 1
        New-DiagramNode -Label 'Second node' -Level 1
        New-DiagramNode -Label 'Third node' -IconBrands amazon -IconColor Brown -Level 3
        New-DiagramNode -Label 'Fourth node' -IconRegular building -IconColor Brown -Level 4
        New-DiagramNode -Label 'Fifth node' -IconSolid align-left -IconColor Brown -Level 4
        New-DiagramNode -Level 4 -Label 'Bart Simson' -Image 'https://cdn.imgbin.com/5/2/1/imgbin-bart-simpson-homer-simpson-supreme-drawing-bart-simpson-bard-simpsons-jAfrtPtYNPTK5rQrcKULn5XBn.jpg' -To 'Second node'
        New-DiagramLink -Label 'Super Connection' -From 'Fourth node' -To 'Bart Simson'
        New-DiagramLink -From 'One node' -To 'Second Node'
        New-DiagramLink -From 'One node' -To 'Third node'
        New-DiagramLink -From 'Third node' -To 'Fourth node'
        New-DiagramLink -From 'Fifth node' -To 'Bart Simson'
    }
} -ShowHTML -Online
```

<!-- PowerForge markdown artifact sha256:EC9A31DA34BDF935A2454E10C53BF445072941BEC8E51FD6BBCBCB54F2942DD9 -->
