Hi,
I am trying to change the X-Axis label style for a line-chart.
In specific, I am attempting to change the font, as well as the label text color in the following way:
var series =
new
TKChartLineSeries(graphData.ToArray());
series.Style.Stroke =
new
TKStroke(ConvertToUIColor(lineColor));
peakTimeChart.AddSeries(series);
peakTimeChart.XAxis.Style.MajorTickStyle.TicksHidden =
true
;
peakTimeChart.XAxis.Style.MinorTickStyle.TicksHidden =
true
;
peakTimeChart.XAxis.Style.LineStroke =
new
TKStroke(ConvertToUIColor(axisColor));
peakTimeChart.XAxis.Style.LabelStyle.TextColor = UIColor.Red;
peakTimeChart.XAxis.Style.LabelStyle.Font = UIFont.FromName(
"Avenir Next Condensed"
, 7f);
peakTimeChart.ReloadData();
Everything seems to be working, except of the label color and font.
I tried to to reload data as was suggested in the iOS-UI forum, but that didn't seem to work.
Am I missing anything?