apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.17k stars 19.6k forks source link

In graphics element rotation is not working as expected , #17460

Closed RahulVishK closed 4 days ago

RahulVishK commented 2 years ago

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

echarts-bot[bot] commented 2 years ago

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

RahulVishK commented 2 years ago

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

] };

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 4 days ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!