ChartsOrg / ChartsOrg/Charts

Y labels are not shown fully when using setVisibleYRangeMinimum

Open
#3,315 3 comments 0 reactions 0 assignees View on GitHub
★★ bug help wanted
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I'm having troubles getting `setVisibleYRangeMinimum` to work properly. I expect it not only to zoom out to minimum range but also to display all the labels on Y axis.

Here's my code snippet:
```swift
data.addDataSet(set1)
wrapperGraphView.data = data
wrapperGraphView.setVisibleYRangeMinimum(300, axis: .left)
wrapperGraphView.notifyDataSetChanged()
```

Here's the result:
![img_1241c700dc06-1](https://user-images.githubusercontent.com/10250257/36939932-5ff955d2-1eee-11e8-810f-08e955de36d4.jpeg)

It's zooming out properly, but does not display all the labels up to 300 on Y axis.

It seems to be similar to https://github.com/danielgindi/Charts/issues/199 but none of the suggested solutions worked for me.

Any suggestions would be appreciated.

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.