alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface ILegendBaseMethods

    Provides base interface methods for legend rendering, positioning, and layout calculations for both cartesian and accumulation charts.

    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public interface ILegendBaseMethods

    Properties

    ChartID

    Gets or sets the unique identifier for the parent chart instance associated with this legend.

    Declaration
    string ChartID { get; set; }
    Property Value
    Type
    string

    Methods

    GetLegendBounds(Size, Rect, Rect, Size)

    Calculates the overall bounds and layout for the legend area based on available space and maximum label dimensions.

    Declaration
    void GetLegendBounds(Size availableSize, Rect legendBounds, Rect rect, Size maxLabelSize)
    Parameters
    Type Name Description
    Size availableSize

    The total available size for legend rendering.

    Rect legendBounds

    The current legend bounds to be updated.

    Rect rect

    The area rectangle where the legend will be positioned.

    Size maxLabelSize

    The maximum size of legend labels for layout calculations.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved