Contents

lineStyle(for:)

Returns the line style for the given data value. Returns nil if the line style scale is unavailable, or the value is invalid.

Declaration

func lineStyle<P>(for value: P) -> StrokeStyle? where P : Plottable

Parameters

  • value:

    The data value.

Return Value

The line style corresponding to the data value, or nil if the data value is incompatible with the chart.