echarts icon indicating copy to clipboard operation
echarts copied to clipboard

In graphics element rotation is not working as expected ,

Open RahulVishK opened this issue 2 years ago • 1 comments

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. create a graphic element
  2. add rotation option to it
  3. 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 avatar Aug 02 '22 12:08 RahulVishK

@RahulVishK Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.

echarts-bot[bot] avatar Aug 03 '22 01:08 echarts-bot[bot]

@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: [

] };

RahulVishK avatar Sep 05 '22 11:09 RahulVishK