Command
New-ImageChartOptions
Creates renderer options for New-ImageChart.
Syntax
New-ImageChartOptions [-BarLayout <Grouped|Stacked>] [-DonutCenterLabel <String>] [-DonutCenterValue <String>] [-DonutInnerRadiusRatio <Double>] [-HeatmapScale <Sequential|Semantic>] [-LegendPosition <Bottom|Top|Left|Right>] [-NoAxes] [-NoCard] [-NoHeatmapScale] [-NoLegend] [-NoPlotBackground] [-NoProgressHandles] [-Palette <ChartColor[]>] [-PictorialColumns <Int32>] [-PictorialSymbol <ChartPictorialSymbol>] [-PieLabelContent <Label|Value|Percent|LabelAndValue|LabelAndPercent>] [-ProgressMaximum <Double>] [-ShowDataLabels] [-ShowLegend] [-ShowPointLegend] [-TickCount <Int32>] [-Transparent] [-WordCloudMaximumTerms <Int32>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Create options for a labeled chart with a right-side legend
New-ImageChartOptions -ShowLegend -LegendPosition Right -ShowDataLabels -Palette '#8B5CF6','#2DD4BF'Stack bar series
New-ImageChart -Title 'Builds by result' -XLabel Mon, Tue, Wed -Options (New-ImageChartOptions -BarLayout Stacked -ShowLegend) -FilePath builds.png { New-ImageChartBar -Name Passed -Value 41, 38, 45; New-ImageChartBar -Name Failed -Value 3, 6, 2 }Parameters
- -BarLayout ChartBarLayout
- How several bar series share one category: Grouped (side by side) or Stacked.
- Possible values:
Grouped,Stacked - -DonutCenterLabel String
- Donut center label text.
- -DonutCenterValue String
- Donut center value text.
- -DonutInnerRadiusRatio Double
- Donut inner radius ratio.
- -HeatmapScale ChartHeatmapColorScale
- Heatmap color scale.
- Possible values:
Sequential,Semantic - -LegendPosition ChartLegendPosition
- Legend placement.
- Possible values:
Bottom,Top,Left,Right - -NoAxes SwitchParameter
- Hide axes.
- -NoCard SwitchParameter
- Hide chart card surface.
- -NoHeatmapScale SwitchParameter
- Hide heatmap scale legend.
- -NoLegend SwitchParameter
- Hide the legend.
- -NoPlotBackground SwitchParameter
- Hide plot background surface.
- -NoProgressHandles SwitchParameter
- Hide progress handles.
- -Palette ChartColor[]
- Palette colors used by series and point-based charts.
- -PictorialColumns Int32
- Pictorial columns per row.
- -PictorialSymbol ChartPictorialSymbol
- Pictorial symbol.
- Possible values:
Circle,Square,Diamond,Triangle,Star,Person - -PieLabelContent ChartPieLabelContent
- Pie and donut slice label content.
- Possible values:
Label,Value,Percent,LabelAndValue,LabelAndPercent - -ProgressMaximum Double
- Progress maximum.
- -ShowDataLabels SwitchParameter
- Show data labels.
- -ShowLegend SwitchParameter
- Show the legend.
- -ShowPointLegend SwitchParameter
- Show point-level legend entries.
- -TickCount Int32
- Preferred number of axis ticks.
- -Transparent SwitchParameter
- Use transparent background.
- -WordCloudMaximumTerms Int32
- Maximum number of word cloud terms.
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.
Outputs
ImagePlayground.ChartRenderOptions: Renderer-neutral chart options exposed by ImagePlayground.