New-ChartGrid
Creates a new chart grid with customizable options.
Syntax
New-ChartGrid [[-BorderColor] <String>] [[-ColumnColors] <String[]>] [[-ColumnOpacity] <Double>] [[-PaddingBottom] <Int32>] [[-PaddingLeft] <Int32>] [[-PaddingRight] <Int32>] [[-PaddingTop] <Int32>] [[-Position] <front|back|default>] [[-RowColors] <String[]>] [[-RowOpacity] <Double>] [-Show] [[-StrokeDash] <Int32>] [-xAxisLinesShow] [-yAxisLinesShow] [<CommonParameters>]#All Parameter SetsDescription
This function creates a new chart grid with the provided parameters. It allows customization of the grid visibility, colors, opacity, padding, and other styling options.
Examples
EXAMPLE 1
New-ChartGrid -Show -BorderColor 'black' -StrokeDash 2 -Position 'front' -xAxisLinesShow -yAxisLinesShow -RowColors @('red', 'blue') -RowOpacity 0.7 -ColumnColors @('green', 'yellow') -ColumnOpacity 0.8 -PaddingTop 10 -PaddingRight 5 -PaddingBottom 15 -PaddingLeft 5Creates a new chart grid with specified options including visible grid, black border color, dashed border style, front position, visible x-axis and y-axis lines, red and blue row colors with 0.7 opacity, green and yellow column colors with 0.8 opacity, and padding values.
EXAMPLE 2
New-ChartGrid -Show -BorderColor 'gray' -RowColors @('orange', 'purple') -ColumnColors @('pink', 'cyan') -PaddingTop 5 -PaddingRight 5 -PaddingBottom 5 -PaddingLeft 5Creates a new chart grid with visible grid, gray border color, orange and purple row colors, pink and cyan column colors, and equal padding values.
Parameters
- -BorderColor String
- The color of the grid border.
- -ColumnColors String[]
- An array of colors for the columns in the grid.
- -ColumnOpacity Double
- The opacity of the column colors. Valid range is 0 to 1. Default is 0.5.
- -PaddingBottom Int32
- The bottom padding of the grid.
- -PaddingLeft Int32
- The left padding of the grid.
- -PaddingRight Int32
- The right padding of the grid.
- -PaddingTop Int32
- The top padding of the grid.
- -Position String
- The position of the grid. Accepted values are 'front', 'back', 'default'. Default is 'default'.
- Possible values:
front,back,default - -RowColors String[]
- An array of colors for the rows in the grid.
- -RowOpacity Double
- The opacity of the row colors. Valid range is 0 to 1. Default is 0.5.
- -Show SwitchParameter
- Indicates whether the grid is visible.
- -StrokeDash Int32
- The style of the grid border. Default is 0.
- -xAxisLinesShow SwitchParameter
- Indicates whether the x-axis lines are visible.
- -yAxisLinesShow SwitchParameter
- Indicates whether the y-axis lines are visible.
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.