ChartsOrg / ChartsOrg/Charts

Vertical position of the horizontal Legend?

Open
#4,536 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I am trying to offset the Legend so that it is not hugging the chart as much.
My legend setup:

```
let legend = chartView.legend
legend.enabled = true
legend.orientation = .horizontal
legend.horizontalAlignment = .left
legend.verticalAlignment = .bottom
//legend.yEntrySpace = 20
legend.yOffset = 10
legend.xOffset = 10.0
```

When I set `yOffset` it only makes the entire chart space bigger below the Legend. When I make it into a negative value, it disappears from the chart altogether.. Is there a way to make such a simple thing?

Zrzut ekranu 2020-12-18 o 08 10 56

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.