Search code examples
angularjschartsbar-chartchart.js

yAxis labels are being cut off in ngEchars (Echarts)


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?


Solution

  • 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!