LegendExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for creating instances.
csharp
public static class LegendExtensionsInheritance
Object → LegendExtensions
Methods
Legend(RootContext, IReadOnlyList<ChartItem>)
Creates a legend with data (selectors pre-wired).
Parameters:
ctx(RootContext):data(IReadOnlyList<ChartItem>):
Returns: LegendWidget<ChartItem>
csharp
public static LegendWidget<ChartItem> Legend(this RootContext ctx, IReadOnlyList<ChartItem> data)Legend(RootContext, params ChartItem[])
Creates a legend with data (params overload).
Parameters:
ctx(RootContext):data(ChartItem[]):
Returns: LegendWidget<ChartItem>
csharp
public static LegendWidget<ChartItem> Legend(this RootContext ctx, params ChartItem[] data)Legend<T, TParent>(WidgetContext<TParent>, IReadOnlyList<T>)
Creates a legend bound to the specified data.
Parameters:
ctx(WidgetContext<<TParent>>):data(IReadOnlyList<<T>>):
Returns: LegendWidget<<T>>
csharp
public static LegendWidget<T> Legend<T, TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<T> data) where TParent : Hex1bWidgetLegend<T>(RootContext, IReadOnlyList<T>)
Creates a legend bound to the specified data.
Parameters:
ctx(RootContext):data(IReadOnlyList<<T>>):
Returns: LegendWidget<<T>>
csharp
public static LegendWidget<T> Legend<T>(this RootContext ctx, IReadOnlyList<T> data)Legend<TParent>(WidgetContext<TParent>, IReadOnlyList<ChartItem>)
Creates a legend with data (selectors pre-wired).
Parameters:
ctx(WidgetContext<<TParent>>):data(IReadOnlyList<ChartItem>):
Returns: LegendWidget<ChartItem>
csharp
public static LegendWidget<ChartItem> Legend<TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<ChartItem> data) where TParent : Hex1bWidgetLegend<TParent>(WidgetContext<TParent>, params ChartItem[])
Creates a legend with data (params overload).
Parameters:
ctx(WidgetContext<<TParent>>):data(ChartItem[]):
Returns: LegendWidget<ChartItem>
csharp
public static LegendWidget<ChartItem> Legend<TParent>(this WidgetContext<TParent> ctx, params ChartItem[] data) where TParent : Hex1bWidget