echarts icon indicating copy to clipboard operation
echarts copied to clipboard

axis equal as in matplotlib

Open wlbksy opened this issue 7 years ago • 5 comments

One-line summary [问题简述]

x, y 轴均为 value 类型时,如何设置纵横比,aspect ratio, 比如想要画正圆,但当坐标轴纵横比不是1:1 时,画出来的不是正圆,而是椭圆

想要类似于 matplotlib, Matlab 一样的 axis equal 的命令 问题参见

image

wlbksy avatar Jul 27 '18 16:07 wlbksy

@pissang 这个能支持一下吗?谢谢

wlbksy avatar Jul 20 '20 08:07 wlbksy

上面圆形的case没做,下面做了个正方形的例子 https://gallery.echartsjs.com/editor.html?c=xCFLh2SQxL 这个例子里面写了正方形的四个点。当绘图区域有变化时,四个点是长方形,不是正方形 image

wlbksy avatar Jul 20 '20 09:07 wlbksy

遇到了同样的问题,想画正方形的热力图,能否给grid加个aspect ratio之类的功能。目前的解决方案是用css aspect-ratio让echarts容器的宽高相同

kingyue737 avatar May 06 '22 13:05 kingyue737

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] avatar May 05 '24 21:05 github-actions[bot]

bump

kingyue737 avatar May 06 '24 02:05 kingyue737