Class
ChartYAxisTitleMargin

Configures the external spacing around Y-axis titles for optimal positioning and professional chart layout. Provides precise control over title placement by defining the space between the title and surrounding chart elements. Use this component to ensure proper title positioning, prevent overlapping with axis elements, and create professional spacing for measurement context presentation.

Definition

Constructors

ChartYAxisTitleMargin()

Declaration

cs-api-definition
public ChartYAxisTitleMargin()

Properties

Bottom

Sets the bottom external spacing for Y-axis titles in pixels to control vertical positioning and chart layout. Use this property to create appropriate distance between the title and chart elements below it, such as axis labels or plot area. Larger values (10-20 pixels) provide more separation for complex charts, while smaller values (4-8 pixels) create compact layouts. Consider the overall chart structure and measurement context when setting bottom margin for optimal title placement and readability.

Declaration

cs-api-definition
[Parameter]
public double? Bottom { get; set; }

Property Value

double?

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Left

Sets the left external spacing for Y-axis titles in pixels to control horizontal positioning and chart layout optimization. Use this property to create appropriate distance between the title and chart elements to its left, such as chart borders or other titles. Larger values (10-20 pixels) provide more separation from chart edges, while smaller values (4-8 pixels) keep titles closer to the measurement context. Consider title rotation and content length when setting left margin for optimal axis identification and professional appearance.

Declaration

cs-api-definition
[Parameter]
public double? Left { get; set; }

Property Value

double?

Right

Sets the right external spacing for Y-axis titles in pixels to control horizontal positioning and prevent text truncation. Use this property to create appropriate distance between the title and chart elements to its right, such as the axis line or plot area. Larger values (10-20 pixels) provide more space for longer title text, while smaller values (4-8 pixels) create compact layouts. Consider title content length and rotation when setting right margin for optimal readability and measurement context presentation.

Declaration

cs-api-definition
[Parameter]
public double? Right { get; set; }

Property Value

double?

Top

Sets the top external spacing for Y-axis titles in pixels to control vertical positioning and visual hierarchy. Use this property to create appropriate distance between the title and chart elements above it, such as other titles or chart borders. Larger values (10-20 pixels) provide more separation for complex layouts, while smaller values (4-8 pixels) create compact presentations. Consider the overall chart design and title positioning when setting top margin for optimal measurement context clarity and professional appearance.

Declaration

cs-api-definition
[Parameter]
public double? Top { get; set; }

Property Value

double?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>