xamarin.forms - OxyPlot DateTimeAxis, formatted label at Maximum is cut off -
formatted label of datetimeaxis cut off @ maxvalue. here's snapshot of it. trying display graph of day on hourly basis. here have 4 hours of majorstep interval , 2 hours of minorstep interval.
var minvalue = datetimeaxis.todouble(datetime.today.date); var maxvalue = datetimeaxis.todouble(datetime.today.adddays(1)); var xaxis = new datetimeaxis() { minimum = minvalue, maximum = maxvalue, position = axisposition.bottom, stringformat = "h tt", intervaltype = datetimeintervaltype.hours, iszoomenabled = false, ispanenabled = false, tickstyle = tickstyle.outside, ticklinecolor = oxycolor.fromrgb(47, 131, 167), majorticksize = 10, majorgridlinethickness = 4, majorstep = 4.0 / 24, minorticksize = 5, minorgridlinethickness = 4, minorstep = 2.0 / 24, textcolor = oxycolors.white, fontsize = 15, fontweight = 4, axisdistance = 0.25, };
Comments
Post a Comment