Replies: 1 comment 1 reply
-
不可以. 你可以自定义单元格, 先把 "200(87.26%)" split 成 ['200', '(87.26%)'], 先绘制 200, 然后获取到文本坐标, 在 S2/packages/s2-core/src/cell/base-cell.ts Lines 272 to 279 in 1ac36e8 这样才能控制不同的颜色, 请自行查阅相关文档 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
antv s2 v1版本透视表 tree结构,一个单元格内的数据是 200(87.26%),我想设置200 和 87.26的文本颜色不一致,目前能想到的是单元格内可以插入div加入样式,写入html的方法试了很多没有成功的,不知道有没有其他方法可以实现?
Beta Was this translation helpful? Give feedback.
All reactions