AddItems<T>(BarChart, IEnumerable<T>, Func<T, BarChartItem>) Method
Adds multiple items to the bar chart.
public static BarChart AddItems<T>(this BarChart chart, IEnumerable<T> items, Func<T, BarChartItem> converter)
- Namespace
- Spectre
.Console - Containing Type
- BarChartExtensions
Parameters
-
T
- A type that implements
IBarChartItem
.
Parameters
- BarChart chart
- The bar chart.
-
IEnumerable
<T> items - The items.
-
Func
<T, BarChartItem> converter - The converter that converts instances of
T
toBarChartItem
.