API Reference
Function
New-ChartTimeLine
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
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 SetsParameters
- Color String
- Specifies the color of the time series chart.
- DateFormatPattern String
- Specifies the date format pattern for the time series chart. Default is "yyyy-MM-dd HH:mm:ss".
- DateFrom DateTime
- Specifies the starting date for the time series chart.
- DateTo DateTime
- Specifies the ending date for the time series chart.
- Name String
- Specifies the name of the time series chart.
- TimeZoneOffset String
- Specifies the time zone offset for the time series chart.