---
title: "lineStyle(_:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/vectorizedchartcontent/linestyle(_:)"
---

# lineStyle(_:)

Represents data using line styles.

## Declaration

```swift
nonisolated func lineStyle(_ style: KeyPath<Self.DataElement, StrokeStyle>) -> some VectorizedChartContent<Self.DataElement>

```

## Parameters

- `style`: The keyPath accessor for shape style.

## See Also

### Styling marks

- [foregroundStyle(_:)](charts/vectorizedchartcontent/foregroundstyle(_:).md)
- [opacity(_:)](charts/vectorizedchartcontent/opacity(_:).md)
- [position(by:axis:span:)](charts/vectorizedchartcontent/position(by:axis:span:).md)
