echarts [Feature] config grid.containLabel in each direction

tf7tbtn2  于 2022-10-20  发布在  Echarts
关注(0)|答案(2)|浏览(211)

What problem does this feature solve?

In some cases, containLable is only expected to work on one of xAxis or YAxis.

grid.containLabel could be more flexiable to be configurated for xAxis and yAxis separately.

What does the proposed API look like?

grid.containLabel : boolean | { top: boolean; right: boolean; bottom: boolean; left: boolean }

grid: {
  containLabel: {
      top: true,
      right: true,
      // bottom: false as default
      // left: false as default
  }
}
am46iovg

am46iovg1#

This issue is labeled with difficulty: easy .
@zhiyuc123 Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

mv1qrgav

mv1qrgav2#

I'm interested in fixing this issue.

相关问题