Open rabbit-tian opened 1 year ago
复现:https://codesandbox.io/s/lucid-mayer-j27wiy?file=/index.ts
数据:[ { x: "办公用品", trace: "男", y: 8, colorField: "橡皮擦" }, { x: "办公用品", trace: "男", y: 10, colorField: "书架" }, { x: "办公用品", trace: "男", y: 20, colorField: "砚台" }, { x: "办公用品", trace: "女", y: 13, colorField: "砚台" }, { x: "办公用品", trace: "女", y: 21, colorField: "橡皮擦" }, { x: "办公用品", trace: "女", y: 21, colorField: "书架" }, { x: "家电家具", trace: "男", y: 13, colorField: "洗衣机" }, { x: "家电家具", trace: "女", y: 2, colorField: "洗衣机" }, { x: "家电家具", trace: "男", y: 5, colorField: "微波炉" }, { x: "家电家具", trace: "男", y: 14, colorField: "电磁炉" }, { x: "家电家具", trace: "女", y: 23, colorField: "微波炉" }, { x: "家电家具", trace: "女", y: 23, colorField: "电磁炉" }, { x: "电子产品", trace: "男", y: 33, colorField: "电脑" }, { x: "电子产品", trace: "女", y: 4, colorField: "电脑" }, { x: "电子产品", trace: "女", y: 23, colorField: "switch" }, { x: "电子产品", trace: "男", y: 20.9, colorField: "switch" }, { x: "电子产品", trace: "男", y: 5.9, colorField: "鼠标" }, { x: "电子产品", trace: "女", y: 5.9, colorField: "鼠标" } ]
@visiky 求优化
复现:https://codesandbox.io/s/lucid-mayer-j27wiy?file=/index.ts
数据:[ { x: "办公用品", trace: "男", y: 8, colorField: "橡皮擦" }, { x: "办公用品", trace: "男", y: 10, colorField: "书架" }, { x: "办公用品", trace: "男", y: 20, colorField: "砚台" }, { x: "办公用品", trace: "女", y: 13, colorField: "砚台" }, { x: "办公用品", trace: "女", y: 21, colorField: "橡皮擦" }, { x: "办公用品", trace: "女", y: 21, colorField: "书架" }, { x: "家电家具", trace: "男", y: 13, colorField: "洗衣机" }, { x: "家电家具", trace: "女", y: 2, colorField: "洗衣机" }, { x: "家电家具", trace: "男", y: 5, colorField: "微波炉" }, { x: "家电家具", trace: "男", y: 14, colorField: "电磁炉" }, { x: "家电家具", trace: "女", y: 23, colorField: "微波炉" }, { x: "家电家具", trace: "女", y: 23, colorField: "电磁炉" }, { x: "电子产品", trace: "男", y: 33, colorField: "电脑" }, { x: "电子产品", trace: "女", y: 4, colorField: "电脑" }, { x: "电子产品", trace: "女", y: 23, colorField: "switch" }, { x: "电子产品", trace: "男", y: 20.9, colorField: "switch" }, { x: "电子产品", trace: "男", y: 5.9, colorField: "鼠标" }, { x: "电子产品", trace: "女", y: 5.9, colorField: "鼠标" } ]