Contents

init(_:content:)

Creates a 3D chart composed of a series of identifiable marks.

Declaration

nonisolated init<Data, C>(_ data: Data, @Chart3DContentBuilder content: @escaping (Data.Element) -> C) where Content == ForEach<Data, Data.Element.ID, C>, Data : RandomAccessCollection, C : Chart3DContent, Data.Element : Identifiable

Parameters

  • data:

    A collection of data that conforms to the Identifiable protocol.

  • content:

    The mark that the chart should draw for each element in the data collection.

Discussion

This initializer wraps the data that you provide as input in an implicit ForEach structure. If you need to represent more than one series in your chart, use init(content:) instead.

See Also

Creating 3D charts