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

BootstrapChartCommonSeriesBase.Color Property

Specifies the series color.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v19.1.dll

Declaration

[DefaultValue(typeof(Color), "")]
public Color Color { get; set; }

Property Value

Type Default Description
Color String.Empty

A Color value.

Remarks

The markup sample below demonstrates how to explicitly specify series colors.


<dx:BootstrapChart ID="Chart" runat="server" >
    <SeriesCollection>
        <dx:BootstrapChartBarSeries ValueField="UnitsInStock" Name="Units in stock" Color="YellowGreen" />
        <dx:BootstrapChartBarSeries ValueField="UnitsOnOrder" Name="Units on order" Color="Orange" />
    </SeriesCollection>
...
 </dx:BootstrapChart>

Result:

BootstrapCharts_SeriesColor

See Also