# New-ChartTimeLine

Creates a new time series chart object. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteHTML API Reference.

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/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates a new time series chart object.

## Syntax

```
New-ChartTimeLine
[[-Color] <String>]
[[-DateFormatPattern] <String>]
[[-DateFrom] <DateTime>]
[[-DateTo] <DateTime>]
[-Name] <String>
[[-TimeZoneOffset] <String>]
[<CommonParameters>]
```

[#](#method-new-charttimeline-string-string-datetime-datetime-string-string)

Parameter set: `All Parameter Sets`

## Description

This function creates a new time series chart object with the specified Name, DateFrom, DateTo, Color, TimeZoneOffset, and DateFormatPattern. It allows customization of the time series chart appearance.

## Examples

### Example 1

```powershell
New-ChartTimeLine -Name "TimeSeries1" -DateFrom (Get-Date) -DateTo (Get-Date).AddDays(7) -Color "Blue" -TimeZoneOffset "+3" -DateFormatPattern "MM/dd/yyyy HH:mm:ss"
Creates a new time series chart object named "TimeSeries1" with a date range from the current date to 7 days ahead, colored in blue, with a time zone offset of +3, and using the date format pattern "MM/dd/yyyy HH:mm:ss".
```

### Example 2

```powershell
New-ChartTimeLine -Name "TimeSeries2" -DateFrom (Get-Date) -DateTo (Get-Date).AddDays(14) -Color "Green" -TimeZoneOffset "-5"
Creates a new time series chart object named "TimeSeries2" with a date range from the current date to 14 days ahead, colored in green, with a time zone offset of -5, using the default date format pattern.
```

## Parameters

**-Color String optionalposition: 3**

Specifies the color of the time series chart.

**-DateFormatPattern String optionalposition: 5**

Specifies the date format pattern for the time series chart. Default is "yyyy-MM-dd HH:mm:ss".

**-DateFrom DateTime optionalposition: 1**

Specifies the starting date for the time series chart.

**-DateTo DateTime optionalposition: 2**

Specifies the ending date for the time series chart.

**-Name String requiredposition: 0**

Specifies the name of the time series chart.

**-TimeZoneOffset String optionalposition: 4**

Specifies the time zone offset for the time series chart.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:650D8F80748E432333AC5D6BA643264637046A47BE4FD98DAE7B8EBF32478FBA -->
