PlottableProjection
public static class PlottableProjectionFactory methods for creating ChartGuru.PlottableProjection%602 instances.
Methods
Section titled “Methods”
Value(string, Func<T, float>)
Section titled “Value(string, Func<T, float>)”public static PlottableProjection<T, float> Value<T>(string label, Func<T, float> selector)Creates a quantitative projection (numeric value).
Swift Charts equivalent: .salesAmount key path on a numeric property.
Parameters
| Name | Type |
|---|---|
label |
System.String |
selector |
System.Func{{T},System.Single} |
Returns
ChartGuru.PlottableProjection{{T},System.Single}
Category(string, Func<T, string>)
Section titled “Category(string, Func<T, string>)”public static PlottableProjection<T, string> Category<T>(string label, Func<T, string> selector)Creates a categorical projection (string category).
Swift Charts equivalent: .category key path on a string property.
Parameters
| Name | Type |
|---|---|
label |
System.String |
selector |
System.Func{{T},System.String} |
Returns
ChartGuru.PlottableProjection{{T},System.String}
Temporal(string, Func<T, DateTime>)
Section titled “Temporal(string, Func<T, DateTime>)”public static PlottableProjection<T, DateTime> Temporal<T>(string label, Func<T, DateTime> selector)Creates a temporal projection (DateTime value).
Swift Charts equivalent: .date key path on a Date property.
Parameters
| Name | Type |
|---|---|
label |
System.String |
selector |
System.Func{{T},System.DateTime} |
Returns
ChartGuru.PlottableProjection{{T},System.DateTime}
Value(string, Func<T, int>)
Section titled “Value(string, Func<T, int>)”public static PlottableProjection<T, int> Value<T>(string label, Func<T, int> selector)Creates a quantitative integer projection.
Parameters
| Name | Type |
|---|---|
label |
System.String |
selector |
System.Func{{T},System.Int32} |
Returns
ChartGuru.PlottableProjection{{T},System.Int32}