Skip to main content

ChartSeriesPointExtensions.Render<T>(T, Func<T, RenderFragment>) Method

Renders a series point and its child components.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public static RenderFragment Render<T>(
    this T point,
    Func<T, RenderFragment> relatedRenderFragmentGetter
)
    where T : ChartSeriesPoint

Parameters

Name Type Description
point T

A series point to render.

relatedRenderFragmentGetter Func<T, RenderFragment>

A function that returns a UI fragment to render.

Type Parameters

Name Description
T

The series point type.

Returns

Type Description
RenderFragment

A UI fragment to be rendered to the page.

Remarks

The following example uses the Render method to customize text for series point tooltips:

<DxChart Data="@ChartsData">
    <DxChartTooltip>
        @context.GetBubblePoint().Render((bubblePoint) =>
            @<div class="p-3">
                <p>Argument: @bubblePoint.Argument</p>
                <p>Value: @bubblePoint.Value</p>
                <p>Size: @bubblePoint.Size</p>
            </div>
          )
    </DxChartTooltip>
    ...
</DxChart>    
See Also