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

# ratio(_:)

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

## Declaration

```swift
static func ratio(_ value: CGFloat) -> MarkDimension
```

## Parameters

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