API Reference
New-ChartAxisX
Creates a new X-axis for a chart with specified parameters.
Remarks
This function creates a new X-axis for a chart with the provided parameters. It allows customization of the axis name, title, type, minimum and maximum values, and timezone offset.
Examples
EXAMPLE 1
New-ChartAxisX -Names @('Jan', 'Feb', 'Mar') -TitleText 'Months' -Type 'category'
Creates a new X-axis with categories 'Jan', 'Feb', 'Mar' and title 'Months'.
EXAMPLE 2
New-ChartAxisX -Names @('2020-01-01', '2020-02-01', '2020-03-01') -TitleText 'Dates' -Type 'datetime' -MinValue (Get-Date '2020-01-01') -MaxValue (Get-Date '2020-03-01') -TimeZoneOffset '+02:00'
Creates a new X-axis with datetime values, title 'Dates', and timezone offset of +2 hours.
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-ChartAxisX [-MaxValue <Object>] [-MinValue <Object>] [-Names <Array>] [-TimeZoneOffset <String>] [-TitleText <String>] [-Type <datetime|category|numeric>] [<CommonParameters>]
#
All Parameter SetsParameters
- MaxValue Object
- The maximum value of the X-axis.
- MinValue Object
- The minimum value of the X-axis.
- Names Array
- An array of names for the X-axis categories.
- TimeZoneOffset String
- The timezone offset to adjust the X-axis values.
- TitleText String
- The title text to be displayed for the X-axis.
- Type String
- The type of the X-axis data. Accepted values are 'datetime', 'category', or 'numeric'. Default is 'category'.
- Possible values:
datetime,category,numeric