Skip to main content
A newer version of this page is available. .

BarSeriesBase.Style Property

Specifies the bar series appearance.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public BarSeriesStyle Style { get; set; }

Property Value

Type Description
BarSeriesStyle

A BarSeriesStyle object that stores bar series appearance settings.

Remarks

Use the Style property to specify the fill color and stroke to be applied to all bars of a series.

To draw series bars in different colors, follow the steps below:

  1. Set the ColorEach property of a bar series to true.
  2. To specify a palette of bar colors, assign a ChartStyle object with the specified Palette to the chart view’s ChartStyle property.

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>
          <dxc:BarSeries.Style>
              <dxc:BarSeriesStyle Fill="MediumSeaGreen" Stroke="SeaGreen" StrokeThickness="10"/>
          </dxc:BarSeries.Style>
      </dxc:BarSeries>
  </dxc:ChartView.Series>
</dxc:ChartView>
See Also