Skip to content

PlottableProjection

ClassChartGuruChartGuru
public static class PlottableProjection

Factory methods for creating ChartGuru.PlottableProjection%602 instances.

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 Description
label System.String
selector System.Func{{T},System.Single}

Returns

ChartGuru.PlottableProjection{{T},System.Single} — No return description is available.

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 Description
label System.String
selector System.Func{{T},System.String}

Returns

ChartGuru.PlottableProjection{{T},System.String} — No return description is available.

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 Description
label System.String
selector System.Func{{T},System.DateTime}

Returns

ChartGuru.PlottableProjection{{T},System.DateTime} — No return description is available.

public static PlottableProjection<T, int> Value<T>(string label, Func<T, int> selector)

Creates a quantitative integer projection.

Parameters

Name Type Description
label System.String
selector System.Func{{T},System.Int32}

Returns

ChartGuru.PlottableProjection{{T},System.Int32} — No return description is available.