You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if the following was possible. Basically on the x-axis I have a set of dates with a string like
05 Sat
I wanted to do two things, one is to wrap the string so that the day number is on 1 line and weekday is on the next.
The next thing I wanted to do is see if I could make the first line a bigger font size then the second line. So basically 05 is larger than Sat
The text was updated successfully, but these errors were encountered:
x axis support wrapping already, but I am not 100% sure it can achieve your goals, just give a try first.
checkout if below property can help you, or at least guide you how to customize your own:
also look at internal func drawLabels
/// the position of the x-labels relative to the chartpublicvarlabelPosition=XAxisLabelPosition.Top
/// if set to true, word wrapping the labels will be enabled./// word wrapping is done using `(value width * labelRotatedWidth)`////// *Note: currently supports all charts except pie/radar/horizontal-bar*publicvarwordWrapEnabled= false
/// - returns: true if word wrapping the labels is enabledpublicvarisWordWrapEnabled:Bool{return wordWrapEnabled }/// the width for wrapping the labels, as percentage out of one value width./// used only when isWordWrapEnabled = true./// /// **default**: 1.0publicvarwordWrapWidthPercent:CGFloat= 1.0
using two font seems not supported yet. Since this is a little customization-oriented. You could override some methods and add new font size property to do so.
I was wondering if the following was possible. Basically on the x-axis I have a set of dates with a string like
05 Sat
I wanted to do two things, one is to wrap the string so that the day number is on 1 line and weekday is on the next.
The next thing I wanted to do is see if I could make the first line a bigger font size then the second line. So basically 05 is larger than Sat
The text was updated successfully, but these errors were encountered: