Describe the issue
Using a legend with 2 or more identical labels causes the sizing logic to fail and render a very narrow legend.
To Reproduce
Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/confident-http-qv2ks?file=/src/App.tsx
- Notice the legend label is about 1 px width
- Toggle off the
legendMaxDepth option and the width with return to the correct value.
Expected behaviour
Legend sizes correctly
Screenshots

Kibana Cross Issues
elastic/kibana#125129
Checklist
Describe the issue
Using a legend with 2 or more identical labels causes the sizing logic to fail and render a very narrow legend.
To Reproduce
Steps to reproduce the behavior:
legendMaxDepthoption and the width with return to the correct value.Expected behaviour
Legend sizes correctly
Screenshots
Kibana Cross Issues
elastic/kibana#125129
Checklist
:xy,:partition):interactions,:axis)Kibana Cross Issueslist and thekibana cross issuetag is applied