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
- Breakdown
Chart Extensions
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
toIBreakdownChartItem
.