Pre loader

Changing Legend Background Color iOS

0
0

Hello, I’m trailing your library right now. I’m wondering how to change the background color of the legend box. The document page for LegendModifier shows coming soon. I don’t see such option in LegendModifier definition in Xcode either. Thanks

Version
v2.2.1.2260
  • You must to post comments
1
0

Hello. Haoran Xie.
SCILegend is a UICollectionView subclass, so just create a legend, set background color and then create SCILegendModifier with your legend object. Here is a code example in Xamarin iOS

var legend = new SCIChartLegend();
legend.BackgroundColor = UIKit.UIColor.Blue;

var legendDataSource = new SCISeriesInfoLegendDataSource(legend);
var legendModifier = new SCILegendModifier(legend, legendDataSource, true);
legendModifier.SourceMode = SCISourceMode.AllSeries;
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies