Contents

init(data:desiredCount:calendar:)

Automatically determine the bins from data.

Declaration

nonisolated init(data: [Date], desiredCount: Int? = nil, calendar: Calendar = .autoupdatingCurrent)

Parameters

  • data:

    The given data values.

  • desiredCount:

    The desired number of bins for the given data. If nil, infer the number of bins automatically from data using 66.3 capped at 200.

Return Value

The inferred bins.