<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/Plottable/init(primitivePlottable:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift Charts"
    ],
    "preciseIdentifier" : "s:6Charts9PlottableP09primitiveB0xSg09PrimitiveB0Qz_tcfc"
  },
  "title" : "init(primitivePlottable:)"
}
-->

# init(primitivePlottable:)

Creates the plottable value for the underlying type, if any, that corresponds to the primitive plottable value.

```
init?(primitivePlottable: Self.PrimitivePlottable)
```

## Discussion

This initializer fails if there is no corresponding plottable value.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)