/ Circularchart3d / CircularChart3DSvgRenderer
Search results

CircularChart3DSvgRenderer API in Vue Circularchart3d API component

The CircularChart3DSvgRenderer 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 SVGCanvasAttributes The options for drawing the text.
label string | string[] The text label.
font FontModel The font settings for the text.
chart CircularChart3D The circular 3D chart instance.

Returns Element

getStringBuilder

Gets a CircularChart3DStringBuilder instance for constructing strings.

Returns CircularChart3DStringBuilder

hexColor

Converts a CircularChart3DColorFormat object to its corresponding color string.

Parameter Type Description
color CircularChart3DColorFormat The color in CircularChart3DColorFormat.

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 CircularChart3DColorFormat | null