I am creating a scrolable legend so that if the legend has to many field it can be scrolled to acess to fields that are not being displayed.
So far I manged that by adding the chart.legend to a UIScrollView
My problem now is on the costumization of the legend it self … I am trying make the symbol heigh more tinny, make the “P1, P2, P3, P4” part bold and the rest of the string normal.
The code i have so far for the legend cofiguration is this: (Note that some lines are experiments )
[lStyle setFont:[UIFont fontWithName:@"Gotham-Book" size:12.0]]; [lStyle setFontColor:LEGEND_COLOR]; [lStyle setShowSymbols:YES]; [lStyle setVerticalPadding:@(15)]; [lStyle setSymbolAlignment:SChartSeriesLegendAlignSymbolsLeft];; chart.legend.hidden = YES; [chart.legend setStyle:lStyle]; [chart.legend setSymbolWidth:@(15.0f)]; [chart.legend setAutosizeLabels:NO]; [chart.legend setAutoresizingMask:UIViewAutoresizingNone]; [chart.legend setAutoresizesSubviews:NO]; [chart.legend setPlacement:SChartLegendPlacementOutsidePlotArea]; [chart.legend setClipsToBounds:NO]; [chart.legend setMaxSeriesPerLine:2];