swift - IOS Charts - Values on X-Axis not formatted correctly in portrait mode -
i'm in process of integrating "ios charts" latest app. fine formatting of xaxis isn't running in portrait mode on ios (see screenshot). landscape mode fine. chartsdata contain 290 entries date / numeric value. formatting done not enough. (see screenshots) working xcode 8 / swift 3 / latest build cocoapods (version 3.0.0 of charts) / ios 10
here code relating xaxis, "charty" linechartview
charty.xaxis.granularityenabled = true charty.xaxis.granularity = 10 charty.xaxis.labelposition = .bottom charty.autoscaleminmaxenabled = true
any kindly appreciated
try below code while in portrait mode.
linechartview.xaxis.spacebetweenlabels = 4 linechartview.xaxis.wordwrapenabled = false
spacebetweenlabels align things on xaxis.
have happy coding.
Comments
Post a Comment