yAxis labels are being cut off in ngEchars (Echarts)
Asked Answered
K

3

8

I have user ngEcharts (angularjs plugin of Echarts). When i implement bar chart yaxis labels are cutting off.enter image description here

can anyone point me on the direction to how to prevent this or increase yAxis label area or decrease chart area?

Kneehigh answered 19/7, 2017 at 15:8 Comment(2)
Can you add code that recreates this problem? (A JSFiddle would be nice too.)Margit
You may set grid: echarts.baidu.com/option.html#gridBohol
K
6

After Ovilia's link i was able to remove cut off using it's grid property.

It has containLabel property.

Once i set containLabel it to true, i didn't need to set grid size. it worked!

Kneehigh answered 9/8, 2017 at 8:34 Comment(0)
P
1

If anyone still facing truncation issue after implementing above accepted answer.

Add left: 0; (or some positive integer value) to grid property along with containLabel: true;

i.e

grid: {containLabel: true, left: 0};
Pellet answered 8/9, 2023 at 8:1 Comment(0)
B
0

Add this to the chart init configuration object. It will fix the cut-off labels

grid: { containLabel: true },
Blazon answered 1/6, 2023 at 20:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.