echarts icon indicating copy to clipboard operation
echarts copied to clipboard

X轴各数据项文字过长怎么办?

Open pkuzhg opened this issue 11 years ago • 2 comments

我在做一个柱图,但X轴每个数据项的文字都比较长,可能十来个字,这样做出来导致显示的图X坐标轴文字不全,这怎么办? x

pkuzhg avatar May 28 '15 09:05 pkuzhg

每个x坐标label用formatter格式化换行,2-4个字一行展示。不够的话,把x轴展示的interval设置成0。

wyzfzu avatar May 29 '15 03:05 wyzfzu

axisLabel : { formatter: function(value){ return value.substring(0,8)+"..."; } }

HuaJson avatar Jun 02 '15 15:06 HuaJson