---
title: "plotDimension(startPadding:endPadding:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/positionscalerange/plotdimension(startpadding:endpadding:)"
---

# plotDimension(startPadding:endPadding:)

A scale range that fills the plot area with the given padding values at start and end, respectively.

## Declaration

```swift
static func plotDimension(startPadding: CGFloat = 0, endPadding: CGFloat = 0) -> PlotDimensionScaleRange
```

## Parameters

- `startPadding`: The start padding value in screen coordinates.
- `endPadding`: The end padding value in screen coordinates.
