BreakdownChart
ClassFor examples and usage details, see the component documentation.
View BreakdownChart ComponentNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class BreakdownChart : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
BreakdownChart() | Constructor | — |
Properties
9| Name | Type | Description |
|---|---|---|
Appearance | ||
ValueColor | Nullable<Color> | Color in which the values will be shown. If null , uses default color. |
Width | Nullable<Int32> | Width of the breakdown chart in characters. If null , automatically calculated. |
Common | ||
ShowTagValues | Boolean | Whether to show tag values. Default is false . |
ShowTagValuesPercentage | Boolean | Whether to show tag values with percentage. Default is false . |
Other | ||
BreakdownChartItems | List<IBreakdownChartItem> | Renders a breakdown chart using Spectre.Console's BreakdownChart renderable. |
Compact | Boolean | Whether the chart and tags should be rendered in compact mode. Default is false . |
Culture | CultureInfo | CultureInfo to use when rendering values. Default is CurrentCulture. |
Expand | Boolean | Whether the chart should expand to available space. When false , width is automatically calculated. Default is false . |
ShowTags | Boolean | Whether to show tags. Default is false . |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | — |