# Chart Tabs

Chart Tabs 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**114**

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: `Example23-Charts`

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

New-HTML {
    New-HTMLTab -Name 'Test 1' {
        New-HTMLSection -HeaderText 'Test chart1' -CanCollapse {
            New-HTMLPanel {
                New-HTMLChart {
                    New-ChartToolbar -Download
                    #New-ChartBarOptions -Gradient
                    New-ChartLegend -Name 'Time', 'Money', 'Taxes'
                    New-ChartBar -Name 'Test' -Value 1, 2, 3
                    New-ChartBar -Name 'Test1' -Value 2, 5, 7
                    New-ChartBar -Name 'Test2' -Value 3, 1, 2
                }
            }
        }
    }
    New-HTMLTab -Name 'Test2' {
        New-HTMLSection -HeaderText 'Test chart2' {
            New-HTMLChart {
                New-ChartToolbar -Download
                New-ChartBarOptions -Type barStacked
                New-ChartLegend -Name 'Time', 'Money', 'Taxes' -Color Red, Yellow, Green
                New-ChartBar -Name 'Test' -Value 1, 2, 3
                New-ChartBar -Name 'Test1' -Value 2, 5, 7
                New-ChartBar -Name 'Test2' -Value 3, 1, 2
            }
        }
    }
    New-HTMLTab -Name 'Test3' {
        New-HTMLSection -HeaderText 'Test chart3' {
            New-HTMLChart {
                New-ChartLegend -Name 'Time' -Color Red
                New-ChartBar -Name 'Test' -Value 1
            }
        }
    }
} -ShowHTML -FilePath $PSScriptRoot\Example-ChartTabs.html -Online
```

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