PieChartFontProps

Defines the font styling options for text elements.

Props

The following table outlines the props for the PieChartFontProps:

NameTypeDefaultDescription
color
string
''

Sets the color of the text. Accepts any valid CSS color string, including hexadecimal and RGBA formats.

fontFamily
string
''

Specifies the font family used for the text (e.g., 'Arial', 'Verdana', 'sans-serif').

fontSize
string
''

Sets the font size of the text in pixels.

fontStyle
string
Normal

Specifies the font style of the text (e.g., 'Normal', 'Italic').

fontWeight
string
Normal

Specifies the font weight (thickness) of the text (e.g., 'Normal', 'Bold', '400').

opacity
number
1

Sets the opacity level of the text. A value of 1 means fully opaque, while 0 means fully transparent.