Project

PSWriteHTML

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

Stars 1,019
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.41.0
Language: PowerShell Updated: 2026-10-03
Command

New-ChartTimeLine

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>]
#
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

Authored help example

EXAMPLE 1

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

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.