echarts
echarts copied to clipboard
In graphics element rotation is not working as expected ,
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
- create a graphic element
- add rotation option to it
- observe graphic rotation vs normal label rotation
Current Behavior
rotation in graphics is not working
Expected Behavior
graphics rotation should work as per " rotation which is working for labels..etc"
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
@RahulVishK Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.
@plainheart option = {
graphic: [
{
type: 'group',
children: [
{
type: 'text',
z: 100,
x:250,
y:200,
rotation:10,//here rotation is not happening properly , it is not working similar to "rotate"
style: {
fill: '#333',
width: 220,
overflow: 'break',
text: 'xAxis represents temperature in °C, yAxis represents altitude in km, An image watermark in the upper right, This text block can be placed in any place',
font: '14px Microsoft YaHei'
}
}
]
}
],
series: [
] };