SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android 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.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more