Articles in this section
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

 

Chart series opacity in Xamarin.Forms

 

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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied