Is there a way to conditionally hide a series label based on the available space within the series?
Currently, labels are rendered for all series, but in some cases the label text is too large to fit inside the corresponding series segment, causing it to overflow or become unreadable.
Is there a built-in option or recommended approach to detect when a label cannot fit within the series area and automatically hide it? Ideally, I would like labels to be displayed only when there is enough space to render the entire text inside the series.

Is there a way to conditionally hide a series label based on the available space within the series?
Currently, labels are rendered for all series, but in some cases the label text is too large to fit inside the corresponding series segment, causing it to overflow or become unreadable.
Is there a built-in option or recommended approach to detect when a label cannot fit within the series area and automatically hide it? Ideally, I would like labels to be displayed only when there is enough space to render the entire text inside the series.