Skip to main content

BarSeriesStyle.Fill Property

Gets or sets the fill color of bars.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public Color Fill { get; set; }

Property Value

Type Description
Color

A Color object that specifies the bar series fill color.

Remarks

To specify the bar stroke (color and thickness), use the Stroke and StrokeThickness properties.

Example

This example demonstrates how to customize the bar series appearance (bar color and stroke). To do this, assign the BarSeriesStyle object with the specified settings to the Style property of the bar series.

Bar Series Style

<dxc:ChartView>
  <dxc:ChartView.Series>
      <dxc:BarSeries x:Name="barSeries">
          <dxc:BarSeries.Style>
              <dxc:BarSeriesStyle Fill="MediumSeaGreen" Stroke="SeaGreen" StrokeThickness="10"/>
          </dxc:BarSeries.Style>
      </dxc:BarSeries>
  </dxc:ChartView.Series>
</dxc:ChartView>
See Also