---
title: "heightBased(yRange:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/chart3dsurfacestyle/heightbased(yrange:)"
---

# heightBased(yRange:)

Height (Y) based style with Y range.

## Declaration

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