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

# lineStyle(by:)

Represents data using line styles.

## Declaration

```swift
nonisolated func lineStyle(by value: PlottableProjection<Self.DataElement, some Plottable>) -> some VectorizedChartContent<Self.DataElement>

```

## Parameters

- `value`: The keyPath accessor for the data value that encodes the line style.

## See Also

### Encoding data into mark characteristics

- [foregroundStyle(by:)](charts/vectorizedchartcontent/foregroundstyle(by:).md)
- [symbol(by:)](charts/vectorizedchartcontent/symbol(by:).md)
- [symbolSize(by:)](charts/vectorizedchartcontent/symbolsize(by:).md)
