<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/Chart3DSurfaceStyle/heightBased(yRange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Swift Charts",
      "Charts"
    ],
    "preciseIdentifier" : "s:6Charts19Chart3DSurfaceStylePA2A05BasicbcD0VRszrlE11heightBased6yRangeAESNy14CoreFoundation7CGFloatVG_tFZ"
  },
  "title" : "heightBased(yRange:)"
}
-->

# heightBased(yRange:)

Height (Y) based style with Y range.

```
static func heightBased(yRange: ClosedRange<CGFloat>) -> Self
```

---

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)