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
- Haoran Xie asked 6 years ago
- last edited 6 years ago
- You must login 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;
- Andriy Shkinder answered 6 years ago
-
Thanks Andriy. How do I further change font size/color as well as the color blocks for each plot on legend?
-
Hello Haoran. Please check my answer to this forum question https://www.scichart.com/questions/question/xamarin-ios-custom-legend-items, I’ve briefly explained how the SCIChartLegend is implemented under the hood, and how it can be customized.
- You must login to post comments
Please login first to submit.