Skip to content

SvgText

Renders an SVG <text> element from code. Razor reserves the literal <text> markup tag as its template-transition directive, so chart components emit axis/legend labels through this helper to sidestep the parser while keeping pure inline SVG.

Text anchor (start | middle | end).

Fill color (CSS color or theme token).

Fill opacity (0..1).

Font size in SVG user units.

Optional font weight (e.g. “600”).

The text content to render.

X coordinate in SVG user units.

Y coordinate in SVG user units.