@fssh It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗 TRANSLATED
TITLE
[Feature] Can legend set the horizontal and vertical intervals separately?
BODY
What problem does this feature solve?
itemGap The official description of this property is as follows: the interval between each item in the legend. Horizontal intervals in landscape layout and vertical intervals in portrait layout. However, tests have shown that changing this value will change both the horizontal and longitudinal intervals.
What does the proposed API look like?
I hope that the official provided itemGap supports input arrays, array items are horizontal interval and vertical interval, or provide other feasible solutions, thank you very much.
6条答案
按热度按时间wz1wpwve1#
@fssh It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Feature] Can legend set the horizontal and vertical intervals separately?
BODY
What problem does this feature solve?
itemGap
The official description of this property is as follows: the interval between each item in the legend. Horizontal intervals in landscape layout and vertical intervals in portrait layout.
However, tests have shown that changing this value will change both the horizontal and longitudinal intervals.
What does the proposed API look like?
I hope that the official provided itemGap supports input arrays, array items are horizontal interval and vertical interval, or provide other feasible solutions, thank you very much.
rslzwgfq2#
But after testing, it is found that changing this value will change the horizontal and vertical intervals at the same time.
Could you provide your test code?
Our Demo Code shows correct spacing for the two orient options - horizontal' and 'vertical'.
r1zhe5dt3#
But after testing, it is found that changing this value will change the horizontal and vertical intervals at the same time.
Could you provide your test code? Our Demo Code shows correct spacing for the two orient options - horizontal' and 'vertical'.
ercv8c1e4#
ok, so it is for a legend with many items auto-wrapped on two or more lines. Agree, it's a bug.
Maybe vertical will work better for you:
xzabzqsa5#
ok, so it is for a legend with many items auto-wrapped on two or more lines. Agree, it's a bug. Maybe vertical will work better for you:
The same goes for vertical.
33qvvth16#
yes, the bug is there. But when working with many legend items, using smaller itemGap is always better.
I was just looking for a solution/workaround.