BreakdownChart

Class

For examples and usage details, see the component documentation.

View BreakdownChart Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class BreakdownChart : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
BreakdownChart()Constructor—

Properties

9
NameTypeDescription
Appearance
ValueColorNullable<Color>Color in which the values will be shown. If null, uses default color.
WidthNullable<Int32>Width of the breakdown chart in characters. If null, automatically calculated.
Common
ShowTagValuesBooleanWhether to show tag values. Default is false.
ShowTagValuesPercentageBooleanWhether to show tag values with percentage. Default is false.
Other
BreakdownChartItemsList<IBreakdownChartItem>Renders a breakdown chart using Spectre.Console's BreakdownChart renderable.
CompactBooleanWhether the chart and tags should be rendered in compact mode. Default is false.
CultureCultureInfoCultureInfo to use when rendering values. Default is CurrentCulture.
ExpandBooleanWhether the chart should expand to available space. When false, width is automatically calculated. Default is false.
ShowTagsBooleanWhether to show tags. Default is false.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()MethodRenders the component to the supplied RenderTreeBuilder.