blazor-devexpress-dot-blazor-dot-base-dot-legendbasesettings-2-cf6a2ba9.md
Specifies the distance between legend columns.
Namespace : DevExpress.Blazor.Base
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(20)]
[Parameter]
public int ColumnSpacing { get; set; }
| Type | Default | Description |
|---|---|---|
| Int32 | 20 |
The distance between legend columns in pixels.
|
The following code snippet removes an empty space between legend columns in the DxBarGauge component:
<DxBarGauge Width="100%"
Height="500px"
StartValue="0"
EndValue="100"
Values="@Values">
<DxBarGaugeLegendSettings Visible="true"
ItemCaptions="@LegendItemCaptions"
HorizontalAlignment="HorizontalAlignment.Center"
ColumnCount="3"
ColumnSpacing="0"/>
@* ... *@
</DxBarGauge>
@code {
double[] Values = new double[] { 47.27, 65.32, 84.59, 81.86, 99 };
string[] LegendItemCaptions = new string[] { "Metacritic", "Ratingraph.com", "Rotten Tomatoes", "IMDb", "TV.com" };
}
See Also
LegendBaseSettings<TComponent, TModel> Class