ChartMultiLevelLabelProps

Defines the configuration options for a single level of multi-level axis labels.

Props

The following table outlines the props for the ChartMultiLevelLabelProps:

NameTypeDefaultDescription
alignment
'Center'

Defines the position of the multi-level labels. The available options are:

  • Left: Places the multi-level labels close to the chart elements.
  • Center: Positions the multi-level labels in the center of the chart elements.
  • Right: Places the multi-level labels further from the chart elements.
border
{color: '', width: 0, dashArray: ''}

The border property allows customization of the border for multi-level labels. It includes options to set the color, width, and dash pattern of the border.

categories
-

Configures multi-level categories for multi-level labels. Each category defines a range within the axis with a start and end value.

overflow
'Wrap'

Defines the text overflow behavior for multi-level labels. The available options are:

  • Trim: Trims the text that overflows for multi-level labels.
  • Wrap: Wraps the text that overflows for multi-level labels.
  • None: No text overflow handling for multi-level labels.
textStyle
-

Options to customize the text styling for multi-level labels. Includes font family, size, weight, color, and opacity settings.