Pre loader

Changing Legend Background Color iOS

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.