Project

PowerBGInfo

Generate support-ready Windows desktop and logon backgrounds from PowerShell data, charts, and topology.

Stars 312
Forks 27
PowerShell Gallery downloads 612,914
Release v2.0.3
Language: C# Updated: 2026-09-02

API Reference

Command

New-BGInfoChart

Namespace PowerBGInfo
Inputs
None
Outputs
PowerBGInfo.BgInfoChart

Creates a BGInfo chart definition.

Remarks

Creates a BGInfo chart definition.

Examples

Authored help example

EXAMPLE 1


New-BGInfoChart -Anchor 'Value'
        

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-BGInfoChart [-Anchor <TopLeft>] [-BackgroundColor <Object>] [-BarGap <Single>] [-DonutCenterLabel <String>] [-DonutCenterValue <String>] [-DonutInnerRadiusRatio <Double>] [-FillColor <Object>] [-FontFamilyName <String>] [-GridColor <Object>] [-GridLineCount <Int32>] [-Height <Int32>] [-Id <String>] [-Kind <Sparkline>] [-Labels <String[]>] [-LegendPosition <Bottom|Top|Left|Right>] [-LineColor <Object>] [-Maximum <Double>] [-MaxPoints <Int32>] [-Metric <CpuPercent>] [-MetricArgument <String>] [-Minimum <Double>] [-NoCircleStatusLabel] [-NoDonutCenterLabel] [-NoHistory] [-NoProgressHandles] [-NoProgressValues] [-NoRadialBarCenterLabel] [-OffsetX <Int32>] [-OffsetY <Int32>] [-Padding <Int32>] [-Palette <Object[]>] [-PictorialColumns <Int32>] [-PictorialSymbol <Circle>] [-PositionX <Int32>] [-PositionY <Int32>] [-ProgressBarThicknessRatio <Double>] [-RangeEnds <Double[]>] [-ReplaceHistory] [-ShowDataLabels] [-ShowGrid] [-ShowLatestValue] [-ShowLegend] [-ShowPointLegend] [-Target <Double>] [-TextColor <Object>] [-Title <String>] [-TitleFontSize <Single>] [-Value <Double>] [-ValueFontSize <Single>] [-ValueFormat <String>] [-ValueSuffix <String>] [-Width <Int32>] [<CommonParameters>]
#
Parameter set: Single

Parameters

Anchor BgInfoTextPosition optionalposition: namedpipeline: Falsevalues: 9
Anchor position for placement.
Possible values: TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight
BackgroundColor Object optionalposition: namedpipeline: False
Background color for the chart block.
BarGap Single optionalposition: namedpipeline: False
Gap between bars (0-1).
DonutCenterLabel String optionalposition: namedpipeline: False
Donut center label text.
DonutCenterValue String optionalposition: namedpipeline: False
Donut center value text.
DonutInnerRadiusRatio Double optionalposition: namedpipeline: False
Donut inner radius ratio.
FillColor Object optionalposition: namedpipeline: False
Fill color for sparklines.
FontFamilyName String optionalposition: namedpipeline: False
Font family for title and value.
GridColor Object optionalposition: namedpipeline: False
Grid line color.
GridLineCount Int32 optionalposition: namedpipeline: False
Number of horizontal grid lines.
Height Int32 optionalposition: namedpipeline: False
Chart height in pixels.
Id String optionalposition: namedpipeline: False
Chart identifier used for history storage.
Kind BgInfoChartKind optionalposition: namedpipeline: Falsevalues: 13
Chart kind to render, such as Sparkline, Line, Area, Bar, HorizontalBar, Gauge, Circle, RadialBar, Bullet, Pie, Donut, ProgressBar, or Pictorial.
Possible values: Sparkline, Line, Area, Bar, HorizontalBar, Gauge, Circle, RadialBar, Bullet, Pie, Donut, ProgressBar, Pictorial
Labels String[] optionalposition: namedpipeline: False
Optional labels used by point-based charts.
LegendPosition BgInfoChartLegendPosition optionalposition: namedpipeline: Falsevalues: 4
Chart legend position.
Possible values: Bottom, Top, Left, Right
LineColor Object optionalposition: namedpipeline: False
Line or bar color.
Maximum Double optionalposition: namedpipeline: False
Optional maximum scale value.
MaxPoints Int32 optionalposition: namedpipeline: False
Maximum number of samples to keep in history.
Metric BgInfoChartMetric optionalposition: namedpipeline: Falsevalues: 7
Built-in metric source used when no explicit values are provided.
Possible values: CpuPercent, MemoryPercent, DiskFreePercent, DiskUsedPercent, DiskFreeGb, UptimeHours, UptimeDays
MetricArgument String optionalposition: namedpipeline: False
Optional metric argument (for example drive letter).
Minimum Double optionalposition: namedpipeline: False
Optional minimum scale value.
NoCircleStatusLabel SwitchParameter optionalposition: namedpipeline: False
Hide circle status label.
NoDonutCenterLabel SwitchParameter optionalposition: namedpipeline: False
Hide donut center label.
NoHistory SwitchParameter optionalposition: namedpipeline: False
Disable history storage and render only provided values.
NoProgressHandles SwitchParameter optionalposition: namedpipeline: False
Hide progress handles.
NoProgressValues SwitchParameter optionalposition: namedpipeline: False
Hide progress values.
NoRadialBarCenterLabel SwitchParameter optionalposition: namedpipeline: False
Hide radial-bar center label.
OffsetX Int32 optionalposition: namedpipeline: False
Horizontal offset from the anchor.
OffsetY Int32 optionalposition: namedpipeline: False
Vertical offset from the anchor.
Padding Int32 optionalposition: namedpipeline: False
Padding inside the chart.
Palette Object[] optionalposition: namedpipeline: False
Palette colors for point-based charts.
PictorialColumns Int32 optionalposition: namedpipeline: False
Pictorial symbols per row.
PictorialSymbol BgInfoChartPictorialSymbol optionalposition: namedpipeline: Falsevalues: 6
Pictorial chart symbol.
Possible values: Circle, Square, Diamond, Triangle, Star, Person
PositionX Int32 optionalposition: namedpipeline: False
Absolute X position for placement.
PositionY Int32 optionalposition: namedpipeline: False
Absolute Y position for placement.
ProgressBarThicknessRatio Double optionalposition: namedpipeline: False
Progress-bar thickness ratio.
RangeEnds Double[] optionalposition: namedpipeline: False
Qualitative range ends used by bullet charts.
ReplaceHistory SwitchParameter optionalposition: namedpipeline: False
Replace history instead of appending values.
ShowDataLabels SwitchParameter optionalposition: namedpipeline: False
Show supported data labels.
ShowGrid SwitchParameter optionalposition: namedpipeline: False
Show chart grid lines.
ShowLatestValue SwitchParameter optionalposition: namedpipeline: False
Show the latest value text.
ShowLegend SwitchParameter optionalposition: namedpipeline: False
Show the chart legend.
ShowPointLegend SwitchParameter optionalposition: namedpipeline: False
Show point-level legend entries.
Target Double optionalposition: namedpipeline: False
Target value used by bullet charts.
TextColor Object optionalposition: namedpipeline: False
Text color for title/value.
Title String optionalposition: namedpipeline: False
Chart title displayed above the plot.
TitleFontSize Single optionalposition: namedpipeline: False
Title font size.
Value Double optionalposition: namedpipeline: False
Single value to append.
ValueFontSize Single optionalposition: namedpipeline: False
Value font size.
ValueFormat String optionalposition: namedpipeline: False
Format string for the latest value.
ValueSuffix String optionalposition: namedpipeline: False
Suffix appended to the latest value.
Width Int32 optionalposition: namedpipeline: False
Chart width in pixels.

Outputs

PowerBGInfo.BgInfoChart

New-BGInfoChart [-Anchor <TopLeft>] [-BackgroundColor <Object>] [-BarGap <Single>] [-DonutCenterLabel <String>] [-DonutCenterValue <String>] [-DonutInnerRadiusRatio <Double>] [-FillColor <Object>] [-FontFamilyName <String>] [-GridColor <Object>] [-GridLineCount <Int32>] [-Height <Int32>] [-Id <String>] [-Kind <Sparkline>] [-Labels <String[]>] [-LegendPosition <Bottom|Top|Left|Right>] [-LineColor <Object>] [-Maximum <Double>] [-MaxPoints <Int32>] [-Metric <CpuPercent>] [-MetricArgument <String>] [-Minimum <Double>] [-NoCircleStatusLabel] [-NoDonutCenterLabel] [-NoHistory] [-NoProgressHandles] [-NoProgressValues] [-NoRadialBarCenterLabel] [-OffsetX <Int32>] [-OffsetY <Int32>] [-Padding <Int32>] [-Palette <Object[]>] [-PictorialColumns <Int32>] [-PictorialSymbol <Circle>] [-PositionX <Int32>] [-PositionY <Int32>] [-ProgressBarThicknessRatio <Double>] [-RangeEnds <Double[]>] [-ReplaceHistory] [-ShowDataLabels] [-ShowGrid] [-ShowLatestValue] [-ShowLegend] [-ShowPointLegend] [-Target <Double>] [-TextColor <Object>] [-Title <String>] [-TitleFontSize <Single>] [-ValueFontSize <Single>] [-ValueFormat <String>] [-Values <Double[]>] [-ValueSuffix <String>] [-Width <Int32>] [<CommonParameters>]
#
Parameter set: Multiple

Parameters

Anchor BgInfoTextPosition optionalposition: namedpipeline: Falsevalues: 9
Anchor position for placement.
Possible values: TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight
BackgroundColor Object optionalposition: namedpipeline: False
Background color for the chart block.
BarGap Single optionalposition: namedpipeline: False
Gap between bars (0-1).
DonutCenterLabel String optionalposition: namedpipeline: False
Donut center label text.
DonutCenterValue String optionalposition: namedpipeline: False
Donut center value text.
DonutInnerRadiusRatio Double optionalposition: namedpipeline: False
Donut inner radius ratio.
FillColor Object optionalposition: namedpipeline: False
Fill color for sparklines.
FontFamilyName String optionalposition: namedpipeline: False
Font family for title and value.
GridColor Object optionalposition: namedpipeline: False
Grid line color.
GridLineCount Int32 optionalposition: namedpipeline: False
Number of horizontal grid lines.
Height Int32 optionalposition: namedpipeline: False
Chart height in pixels.
Id String optionalposition: namedpipeline: False
Chart identifier used for history storage.
Kind BgInfoChartKind optionalposition: namedpipeline: Falsevalues: 13
Chart kind to render, such as Sparkline, Line, Area, Bar, HorizontalBar, Gauge, Circle, RadialBar, Bullet, Pie, Donut, ProgressBar, or Pictorial.
Possible values: Sparkline, Line, Area, Bar, HorizontalBar, Gauge, Circle, RadialBar, Bullet, Pie, Donut, ProgressBar, Pictorial
Labels String[] optionalposition: namedpipeline: False
Optional labels used by point-based charts.
LegendPosition BgInfoChartLegendPosition optionalposition: namedpipeline: Falsevalues: 4
Chart legend position.
Possible values: Bottom, Top, Left, Right
LineColor Object optionalposition: namedpipeline: False
Line or bar color.
Maximum Double optionalposition: namedpipeline: False
Optional maximum scale value.
MaxPoints Int32 optionalposition: namedpipeline: False
Maximum number of samples to keep in history.
Metric BgInfoChartMetric optionalposition: namedpipeline: Falsevalues: 7
Built-in metric source used when no explicit values are provided.
Possible values: CpuPercent, MemoryPercent, DiskFreePercent, DiskUsedPercent, DiskFreeGb, UptimeHours, UptimeDays
MetricArgument String optionalposition: namedpipeline: False
Optional metric argument (for example drive letter).
Minimum Double optionalposition: namedpipeline: False
Optional minimum scale value.
NoCircleStatusLabel SwitchParameter optionalposition: namedpipeline: False
Hide circle status label.
NoDonutCenterLabel SwitchParameter optionalposition: namedpipeline: False
Hide donut center label.
NoHistory SwitchParameter optionalposition: namedpipeline: False
Disable history storage and render only provided values.
NoProgressHandles SwitchParameter optionalposition: namedpipeline: False
Hide progress handles.
NoProgressValues SwitchParameter optionalposition: namedpipeline: False
Hide progress values.
NoRadialBarCenterLabel SwitchParameter optionalposition: namedpipeline: False
Hide radial-bar center label.
OffsetX Int32 optionalposition: namedpipeline: False
Horizontal offset from the anchor.
OffsetY Int32 optionalposition: namedpipeline: False
Vertical offset from the anchor.
Padding Int32 optionalposition: namedpipeline: False
Padding inside the chart.
Palette Object[] optionalposition: namedpipeline: False
Palette colors for point-based charts.
PictorialColumns Int32 optionalposition: namedpipeline: False
Pictorial symbols per row.
PictorialSymbol BgInfoChartPictorialSymbol optionalposition: namedpipeline: Falsevalues: 6
Pictorial chart symbol.
Possible values: Circle, Square, Diamond, Triangle, Star, Person
PositionX Int32 optionalposition: namedpipeline: False
Absolute X position for placement.
PositionY Int32 optionalposition: namedpipeline: False
Absolute Y position for placement.
ProgressBarThicknessRatio Double optionalposition: namedpipeline: False
Progress-bar thickness ratio.
RangeEnds Double[] optionalposition: namedpipeline: False
Qualitative range ends used by bullet charts.
ReplaceHistory SwitchParameter optionalposition: namedpipeline: False
Replace history instead of appending values.
ShowDataLabels SwitchParameter optionalposition: namedpipeline: False
Show supported data labels.
ShowGrid SwitchParameter optionalposition: namedpipeline: False
Show chart grid lines.
ShowLatestValue SwitchParameter optionalposition: namedpipeline: False
Show the latest value text.
ShowLegend SwitchParameter optionalposition: namedpipeline: False
Show the chart legend.
ShowPointLegend SwitchParameter optionalposition: namedpipeline: False
Show point-level legend entries.
Target Double optionalposition: namedpipeline: False
Target value used by bullet charts.
TextColor Object optionalposition: namedpipeline: False
Text color for title/value.
Title String optionalposition: namedpipeline: False
Chart title displayed above the plot.
TitleFontSize Single optionalposition: namedpipeline: False
Title font size.
ValueFontSize Single optionalposition: namedpipeline: False
Value font size.
ValueFormat String optionalposition: namedpipeline: False
Format string for the latest value.
Values Double[] optionalposition: namedpipeline: False
Multiple values to append or replace.
ValueSuffix String optionalposition: namedpipeline: False
Suffix appended to the latest value.
Width Int32 optionalposition: namedpipeline: False
Chart width in pixels.

Outputs

PowerBGInfo.BgInfoChart