DxChartPaneBorder.Color Property
Specifies the pane border color.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue("#d3d3d3")]
[Parameter]
public string Color { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | "#d3d3d3" | The border color. |
Remarks
The Color
property accepts the following formats:
- Longhand and shorthand hexadecimal color values:
#ffff00
,#ff0
. - RGB and RGBA color codes:
rgb(255, 0, 0)
,rgba(0, 230, 0, 0.3)
. - HTML color name (case-insensitive):
red
,DarkGreen
.
To display borders in the DxChartPane component, enable the Visible property. You can then change the visibility of Left, Top, Right, and Bottom borders individually.
The following example shows pane borders and changes their color:
<DxChart Data="@SalesData" Height="500px">
<DxChartTitle Text="Sales amount" />
<DxChartLegend Position="RelativePosition.Outside" VerticalAlignment="VerticalEdge.Bottom" />
<DxChartPane Name="Pane1" Height="60%" >
<DxChartPaneBorder Visible="true" Color="#6f42c1" />
</DxChartPane>
<DxChartBarSeries Name="2017"
Filter="@((SaleInfo s) => s.Date.Year == 2017)"
SummaryMethod="Enumerable.Sum"
Pane="Pane1"
ArgumentField="@(s => s.City)"
ValueField="@(s => s.Amount)" />
</DxChart>
See Also