Format-SpectreBreakdownChart
Description
This function takes an array of data and formats it into a breakdown chart using BreakdownChart. The chart can be customized with a specified width and color.
See https://spectreconsole.net/widgets/breakdownchart for more information.
Examples
Example 1
This example demonstrates how to display a breakdown chart of various data points.
Parameters
Data
An array of data to be formatted into a breakdown chart.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Object] | true | 1 | true (ByValue) |
Width
The width of the chart. Defaults to the width of the console.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] | false | 2 | false |
HideTags
Hides the tags on the chart.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] | false | named | false |
HideTagValues
Hides the tag values on the chart.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] | false | named | false |
ShowPercentage
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] | false | named | false |