echarts icon indicating copy to clipboard operation
echarts copied to clipboard

How do I include the labels of polar bar chart or pie chart dynamically in container. 'containLabel' property only works in case of line or bar charts but not in the case of Pie chart or Polar bar chart

Open abdullahw099 opened this issue 3 years ago • 1 comments

Version

5.3.2

Link to Minimal Reproduction

No response

Steps to Reproduce

Created the Polar Bar Chart a and can't use containLabel and grid properties in Circular charts

Current Behavior

issue

Expected Behavior

Either labels are long or short, the chart size should be dynamically adjustable according to the labels size and container size

Environment

- OS: windows 11
- Browser: Chrome
- Framework: React Js

Any additional comments?

No response

abdullahw099 avatar Aug 02 '22 13:08 abdullahw099

This is not a bug because unlike in Descartes coordinate where you set left and right values, in polar coordinate you set radius of the polar so it's from the inside and should never consider containLabel or not.

I think you should use the max length of axis labels to change polar.radius dynamically.

Ovilia avatar Aug 05 '22 08:08 Ovilia