ChartsOrg/Charts

Y labels are not shown fully when using setVisibleYRangeMinimum

開放

#3,315 建立於 2018年3月3日

 (3 則留言) (0 個反應) (0 位負責人)Swift (5,993 個分叉)batch import
bughelp wanted★★

倉庫指標

星標
 (28,010 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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:

data.addDataSet(set1)
wrapperGraphView.data = data
wrapperGraphView.setVisibleYRangeMinimum(300, axis: .left)
wrapperGraphView.notifyDataSetChanged()

Here's the result: img_1241c700dc06-1

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.

貢獻者指南