Category / Section
How to set the opacity of the Xamarin.Forms Charts
3 mins read
This article explains how Xamarin.Forms Charts provides support to change the opacity of series color. By setting, the Opacity property of series value between 0 and 1, you can change the opacity of series color.
[XAML]
<chart:SplineAreaSeries ItemsSource="{Binding Data}" XBindingPath="XValue" YBindingPath="YValue" StrokeWidth="2" Color="Green" Opacity = "0.5" StrokeColor = "Black"> </chart:SplineAreaSeries>
Output
See also
How to bind Series from MVVM pattern in Xamarin.Forms Charts
How to add multiple series in the Xamarin.Forms Charts
How to grouping stacked series in the Xamarin.Forms Charts
How to transpose the series in the Xamarin.Forms Charts
How to add different combination series in the Xamarin.Forms Charts