Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-ChartTimeLine

Namespace PSWriteHTML

Creates a new time series chart object.

Remarks

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.
        

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.

Syntax

New-ChartTimeLine [-Color <String>] [-DateFormatPattern <String>] [-DateFrom <DateTime>] [-DateTo <DateTime>] -Name <String> [-TimeZoneOffset <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Color String optionalposition: 3pipeline: False
Specifies the color of the time series chart.
DateFormatPattern String optionalposition: 5pipeline: False
Specifies the date format pattern for the time series chart. Default is "yyyy-MM-dd HH:mm:ss".
DateFrom DateTime optionalposition: 1pipeline: False
Specifies the starting date for the time series chart.
DateTo DateTime optionalposition: 2pipeline: False
Specifies the ending date for the time series chart.
Name String requiredposition: 0pipeline: False
Specifies the name of the time series chart.
TimeZoneOffset String optionalposition: 4pipeline: False
Specifies the time zone offset for the time series chart.