# Chart Time Line 02

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

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

New-HTML -TitleText 'Charts - TimeLine' -Online -FilePath $PSScriptRoot\Example-ChartTimeLine02.html {
    New-HTMLSection -Invisible {
        New-HTMLPanel {
            New-HTMLChart -Title 'Incidents Reported vs Solved' -TitleAlignment center {
                New-ChartTooltip -TitleText 'Timeline' -XAxisFormatPattern 'HH:mm:ss'
                New-ChartAxisX -MinValue ((Get-Date).AddDays(-1)) -MaxValue ((Get-Date).AddDays(1)) -Type 'datetime'
                $From = (Get-Date).AddDays(-1)
                $To = (Get-Date)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 0'
                $From = (Get-Date).AddHours(-1)
                $To = (Get-Date)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 1' -Color Red
                $From = (Get-Date).AddDays(0)
                $To = (Get-Date).AddHours(5)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 2' -Color Yellow
                $From = (Get-Date).AddHours(-5)
                $To = (Get-Date).AddHours(11)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 3' -Color Beige
                $From = (Get-Date).AddMinutes(15)
                $To = (Get-Date).AddHours(3)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 4'
            }
        }
        New-HTMLPanel {
            New-HTMLChart -Title 'Incidents Reported vs Solved' -TitleAlignment center {
                New-ChartTooltip -TitleText 'Timeline' -XAxisFormatPattern 'HH:mm:ss'
                New-ChartAxisX -MinValue (Get-Date) -MaxValue ((Get-Date).AddHours(1)) -Type 'datetime'
                $From = (Get-Date).AddMinutes(15)
                $To = (Get-Date).AddMinutes(30)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 1' -Color Red
                $From = (Get-Date).AddMinutes(27)
                $To = (Get-Date).AddMinutes(59)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 2' -Color Yellow
                $From = (Get-Date).AddMinutes(1)
                $To = (Get-Date).AddMinutes(30)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 3' -Color Beige
            }
        }
        New-HTMLPanel {
            New-HTMLChart -Title 'Incidents Reported vs Solved' -TitleAlignment center {
                New-ChartTooltip -TitleText 'Timeline' -XAxisFormatPattern 'HH:mm:ss'
                $From = (Get-Date).AddMinutes(15)
                $To = (Get-Date).AddMinutes(30)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 1' -Color Red
                $From = (Get-Date).AddMinutes(27)
                $To = (Get-Date).AddMinutes(59)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 2' -Color Yellow
                $From = (Get-Date).AddMinutes(1)
                $To = (Get-Date).AddMinutes(30)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 3' -Color Beige
            }
        }
        New-HTMLPanel {
            New-HTMLChart -Title 'Incidents Reported vs Solved' -TitleAlignment center {
                $From = (Get-Date).AddMinutes(15)
                $To = (Get-Date).AddMinutes(30)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 1' -Color Red
                $From = (Get-Date).AddMinutes(27)
                $To = (Get-Date).AddMinutes(59)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 2' -Color Yellow
                $From = (Get-Date).AddMinutes(1)
                $To = (Get-Date).AddMinutes(30)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Test 3' -Color Beige
            }
        }
    }
    New-HTMLSection -Invisible {
        New-HTMLPanel {
            New-HTMLChart -Title 'Days' -TitleAlignment center {
                New-ChartAxisY # this hides AXIS Y
                New-ChartDataLabel -Enabled -DataLabelsColor Black, Red, Red, Red, Red
                $From = (Get-Date).AddDays(-1)
                $To = (Get-Date).AddDays(2)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Analysis' -Color Red
                $From = (Get-Date).AddDays(0)
                $To = (Get-Date).AddDays(5)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Design' -Color Yellow
                $From = (Get-Date).AddDays(1)
                $To = (Get-Date).AddDays(8)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Coding' -Color Beige
                $From = (Get-Date).AddDays(3)
                $To = (Get-Date).AddDays(7)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Testing' -Color Beige
                $From = (Get-Date).AddDays(8)
                $To = (Get-Date).AddDays(10)
                New-ChartTimeLine -DateFrom $From -DateTo $To -Name 'Deployment' -Color Beige
            }
        }
    }
} -ShowHTML
```

<!-- PowerForge markdown artifact sha256:76DC81DA094FF8B430870A8958EB49E3B3D9BF0F32F09006897F286C9FA4B2B5 -->
