Set the opacity for chart series in Xamarin.Android

28 Apr 20211 minute to read

The Alpha property can be used to set opacity of chart series.

The code sample demonstrated as follows.

  • C#
  • ...
                AreaSeries series = new AreaSeries()
                    ItemsSource = new AreaChartViewModel().Performance,
                    XBindingPath = "Load",
                    YBindingPath = "Server",
                    //to set opacity value
                    Alpha = 0.3f,
                    Color = Color.Blue

    opacity support in Xamarin.Android Chart