PlottableProjection<TElement, TValue>
public readonly struct PlottableProjection<TElement, TValue>Type-safe projection from a data element to a plottable value.
Swift Charts equivalent: PlottableProjection<DataElement, DataValue>
with typed key-path semantics via System.Func%602.
Fields
Section titled “Fields”
public readonly string LabelReturns
System.String
Selector
Section titled “Selector”public readonly Func<TElement, TValue> SelectorReturns
System.Func{{TElement},{TValue}}
public readonly PlottableType TypeReturns
ChartGuru.PlottableType
Constructors
Section titled “Constructors”
PlottableProjection(string, Func<TElement, TValue>, PlottableType)
Section titled “PlottableProjection(string, Func<TElement, TValue>, PlottableType)”public PlottableProjection(string label, Func<TElement, TValue> selector, PlottableType type)Creates a typed projection that labels and classifies values selected from source elements.
Parameters
| Name | Type |
|---|---|
label |
System.String |
selector |
System.Func{{TElement},{TValue}} |
type |
ChartGuru.PlottableType |
Methods
Section titled “Methods”
Select(TElement)
Section titled “Select(TElement)”public TValue Select(TElement element)Projects one source element into the plottable value consumed by the mark binding.
Parameters
| Name | Type |
|---|---|
element |
{TElement} |
Returns
{TValue}
ToRef(TElement)
Section titled “ToRef(TElement)”public PlottableValueRef ToRef(TElement element)Evaluates the selector for one element and wraps the result as an untyped plottable reference for mark APIs.
Parameters
| Name | Type |
|---|---|
element |
{TElement} |
Returns
ChartGuru.PlottableValueRef