Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧐[问题] 文档上信息不全,这个是v5升级后还未更新好还是一直这样的情况? #2481

Open
panjunqiu opened this issue Mar 27, 2024 · 2 comments

Comments

@panjunqiu
Copy link

panjunqiu commented Mar 27, 2024

🧐 问题描述 [详细地描述问题,让大家都能理解]

用@antd-design/plots编写一个折线图组件,期望把图例部分图标改大一点,查看了文档
image

第一个问题:color和size这两个配置怎么用? 自己没理解,直接在legend下写配置测试了都无效
第二个问题:下载了源码才发现有itemMarkerSize 的配置,并且找到代码里是配置在color下,文档中没有
第三个问题:DisplayObject 这个具体是什么? 没找到,不知道怎么用?

请问这些文档后续还会完善吗? 还是使用antv就是需要对着代码用?

💻 示例代码 [如果有必要,展示代码,线上示例,或仓库]

{
legend: {
color: {
itemMarkerSize: 24,
labelFormatter: (a) => {
return a.split('')[0];
},
},
size: {},
},
}

🚑 其他信息 [如截图等其他信息可以贴在这里]

@SYZhenYuZhao
Copy link

所以 DisplayObject 是什么, 看了源码 试着传入 一个object ,但是并不支持,

@lxfu1
Copy link
Member

lxfu1 commented Apr 29, 2024

  1. color、size 是不同的映射通道,一般来说分类图例都用color
  2. 第二点求帮忙补充下文档
  3. DisplayObject 比较偏底层 了,缺失跳转链接

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants