# Carousel 03

Carousel 03 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-Carousel`

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

# Minimal demo showing carousels + charts + tables inside tabs
# Charts/tables in the non-active tab should render correctly on first show

$Data = Get-Process |
    Select-Object -First 12 Name, Id, CPU

New-HTML -Name 'Tabs + Carousel' -FilePath "$PSScriptRoot\Example-Carousel03.html" -Online -Show {
    New-HTMLTab -Name 'Tab 1' -Heading 'First' {
        New-HTMLSection -HeaderText 'Visible Tab' -Invisible {
            New-HTMLCarousel {
                New-CarouselSlide {
                    New-HTMLChart {
                        New-ChartPie -Name 'A' -Value 10
                        New-ChartPie -Name 'B' -Value 20
                        New-ChartPie -Name 'C' -Value 30
                    } -Title 'Pie - Tab 1'
                }
                New-CarouselSlide {
                    New-HTMLText -Text 'Second slide (Tab 1)'
                }
            }
        }
        New-HTMLSection -HeaderText 'Table' -Invisible {
            New-HTMLTable -DataTable $Data -HideFooter
        }
    }

    New-HTMLTab -Name 'Tab 2' -Heading 'Second' {
        # This tab is initially hidden; content should reflow on tab activation
        New-HTMLSection -HeaderText 'Hidden Tab (initial)' -Invisible {
            New-HTMLCarousel {
                New-CarouselSlide {
                    New-HTMLChart {
                        New-ChartPie -Name 'X' -Value 30
                        New-ChartPie -Name 'Y' -Value 40
                        New-ChartPie -Name 'Z' -Value 50
                    } -Title 'Pie - Tab 2'
                }
                New-CarouselSlide {
                    New-HTMLText -Text 'Second slide (Tab 2)'
                }
            }
        }
        New-HTMLSection -HeaderText 'Table in hidden Tab' -Invisible {
            New-HTMLTable -DataTable $Data -HideFooter
        }

        # Collapsible section to verify reflow on show/hide
        New-HTMLSection -HeaderText 'Collapsible Carousel' -CanCollapse -Collapsed {
            New-HTMLCarousel {
                New-CarouselSlide {
                    New-HTMLChart {
                        New-ChartLegend -LegendPosition bottom -HorizontalAlign right
                        New-ChartBarOptions -Distributed
                        New-ChartBar -Name 'One' -Value 10
                        New-ChartBar -Name 'Two' -Value 20
                        New-ChartBar -Name 'Three' -Value 15
                    } -Title 'Bar - Collapsible'
                }
                New-CarouselSlide {
                    New-HTMLText -Text 'Collapsed initially; open to reflow.'
                }
            }
        }
    }
}
```

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