Replies: 1 comment
-
在当前的 antvis/S2 版本中,直接将嵌套结构中的字段(例如 可能的解决方案:
关于功能计划:目前没有明确的信息显示 antvis/S2 会在近期支持直接处理嵌套结构的数据。不过,你可以在 GitHub 上关注项目的更新,或者提出功能请求以供开发团队参考。 如果你有进一步的问题或需要帮助,请随时告诉我。 🪧 TipsFor further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
部分配置
假如
data
中的city
是一个嵌套结构,比如city:{"v1": "杭州市", id: 100}
,那么"rows": ["province", "city" ],
中,能否配置为嵌套结构中的city.id
,然后在meta
配置的formatter
回调里 自定义设置展示的中文名称?目前测试:
无法拿到 city 的配置数据。
测试二:
通过自定义RowCell ,在RowCell实例上也是无法拿到 配置数据。
我的问题起源于,通过api获取cell时的id,都是维度的中文名字拼起来的,比如
const rowNode = s2.facet.getRowNodeById('root[&]四川省[&]成都市');
,我想把这个id
定义为我的维度数据里对应的id。所以经过了上述尝试。所以想问一下,有没有是实现的方案,或者后续有没有计划增加此功能呢?
Beta Was this translation helpful? Give feedback.
All reactions