---
title: "ratio(_:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/markdimensions/ratio(_:)-8ufgm"
---

# ratio(_:)

A dimension that’s proportional to the scale step size, using the specified ratio.

## Declaration

```swift
static func ratio(_ value: CGFloat) -> MarkDimensions<DataElement>
```

## Parameters

- `value`: The given ratio, from 0 to 1.
