PieChartTitleProps
Defines configuration options for the chart's title, including styling, positioning, and accessibility features.
Props
The following table outlines the props for the PieChartTitleProps:
| Name | Type | Default | Description |
|---|---|---|---|
| accessibility | { ariaLabel: null, focusable: true, role: null, tabIndex: 0 } | Provides customization options to enhance accessibility for the chart title. | |
| align | Center | Determines the alignment of the title within its container. Available options:
| |
| background | string | transparent | The background color of the chart title area. Accepts any valid CSS color value. |
| border | { color: '', width: 1, dashArray: '' } | Defines the border styling for the chart title area. | |
| font | { color: '', fontFamily: '', fontSize: '', fontStyle: '', fontWeight: '', opacity: 1 } | Defines the font and color styling for the title. This includes properties like font family, size, weight, and color, allowing the text to match the chart's overall aesthetic or to be emphasized. | |
| position | Top | Determines the position of the chart title relative to the chart area. Available options:
| |
| text | string | '' | Specifies the main title text of the chart. This text provides context or a label for the chart's data. |
| textOverflow | Wrap | Controls how the title behaves when it overflows its container. Available options:
| |
| x | number | 0 | X-coordinate for positioning the chart title. Only applicable when |
| y | number | 0 | Y-coordinate for positioning the chart title.Only applicable when |