Version
5.4.3
Link to Minimal Reproduction
Steps to Reproduce
1.create a pie chart
2.apply align="edge"
3.and give rotate value in label or labelLayout
Current Behavior
option = {
series: [
{
name: 'Access From',
type: 'pie',
radius: '50%',
data: [
{ value: 1048, name: 'Search Engine' },
{ value: 735, name: 'Direct' },
{ value: 580, name: 'Email' },
{ value: 484, name: 'Union Ads' },
{ value: 300, name: 'Video Ads' }
],
label: {
alignTo: 'edge'
// rotate:50
},
labelLayout: {
rotate: 50
}
}
]
};
Expected Behavior
labels should rotate on "labelLine" in pie chart when alignTo ="edge" option is applied
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
5条答案
按热度按时间n7taea2i1#
why not use
alignTo: 'labelLine'
instead?cqoc49vn2#
we have a requirement to use alignTo: 'labelLine' ,
bkkx9g8r3#
is there any solution for it ?
l0oc07j24#
we have a requirement to use alignTo: 'labelLine' ,
...but you are using alignTo: 'edge' ...?!?
iaqfqrcu5#
We have a requirement to align labels with the edge of the container, which we're accomplishing using the alignTo: 'edge' setting. However, we also need to adjust the label rotation. Currently, labels are rotated from the left side, but we now need them to rotate from the right side. This means the rotation should occur from the end of the label line.
please provide a solution for it