AddItems<T>(BreakdownChart, IEnumerable<T>, Func<T, IBreakdownChartItem>) Method

Adds multiple items to the breakdown chart.
public static BreakdownChart AddItems<T>(this BreakdownChart chart, IEnumerable<T> items, Func<T, IBreakdownChartItem> converter)
Namespace
Spectre.Console
Containing Type
BreakdownChartExtensions

Parameters

T
A type that implements IBarChartItem.

Parameters

BreakdownChart chart
The breakdown chart.
IEnumerable<T> items
The items.
Func<T, IBreakdownChartItem> converter
The converter that converts instances of T to IBreakdownChartItem.

Returns