当前位置: 动力学知识库 > 问答 > 编程问答 >

swift - ios charts framework value overlap

问题描述:

How can I avoid overlap issue of first value

and, how can I see last value that clipped?

网友答案:

I think you have a few options between modify styling on your axes and adjusting the viewport.

I would try:

Disable left axis, enable right axis

chart.leftAxis.drawValuesEnabled = false
chart.rightAxis.drawValuesEnabled = true

Modify viewport

https://github.com/PhilJay/MPAndroidChart/wiki/Modifying-the-Viewport

chart.setExtraOffsets()

Custom value formatting

https://github.com/PhilJay/MPAndroidChart/wiki/The-ValueFormatter-interface

991234 becomes 991K (shorter and easy-to-read)

chart.xAxis.valueFormatter = ...
分享给朋友:
您可能感兴趣的文章:
随机阅读: