antvis/G2

条形图 坐标上的标签 可以这么实现吗 #6394

wangxingkang posted onGitHub

问题描述

<img width="796" alt="image" src="https://github.com/user-attachments/assets/8e24fa35-e48b-4b95-9927-3476f31725ab">

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


可以通过 dx dy 去调整。

posted by hustcc 9 months ago

好的,我试一试

posted by wangxingkang 9 months ago
axis: {
  x: {
    size: 0,
    label: false,
    grid: false,
  },
},
label: {
  text: 'name',
  position: 'left',
  dy: -15,
},
posted by wangxingkang 9 months ago

@hustcc 大体效果实现了,要不要写个 demo 放在官网上

posted by wangxingkang 9 months ago

@hustcc 大体效果实现了,要不要写个 demo 放在官网上

来吧,欢迎来一个 PR 👍🏻

posted by hustcc 9 months ago

好的 我这两天实现下

posted by wangxingkang 9 months ago

Fund this Issue

$0.00
Funded

Pull requests