SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


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

  • You must to post comments

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.