/ Chart3d / Svg3DRenderer
Search results

Svg3DRenderer API in Angular Chart3d API component

The Svg3DRenderer class provides methods for rendering SVG graphics in a 3D context.

Methods

checkColorFormat

Checks if a given color string is in a valid format (hex or rgba).

Parameter Type Description
color string The color string to check.

Returns boolean

drawText

Draws text on an SVG element.

Parameter Type Description
options Chart3DTextOption | SVGCanvasAttributes The options for drawing the text.
label string | string[] The text label.
font FontModel The font settings for the text.
chart Chart3D The 3D chart instance.

Returns Element

getStringBuilder

Gets a Chart3DStringBuilder instance for constructing strings.

Returns Chart3DStringBuilder

hexColor

Converts a Chart3DColorFormat object to its corresponding color string.

Parameter Type Description
color Chart3DColorFormat The color in Chart3DColorFormat.

Returns string

hexToValue

Parses a hex color code and returns its Red green Blue values.

Parameter Type Description
hexColorCode string The hex color code.

Returns Chart3DColorFormat | null

transform3DToVisible

Transforms 3D coordinates to visible 2D coordinates on the chart.

Parameter Type Description
currentSeries Chart3DSeries The current 3D series.
x number The x-coordinate in 3D space.
y number The y-coordinate in 3D space.
chart Chart3D The 3D chart instance.

Returns Chart3DLocation