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

柱状图如何多次进行分组 #6070

Closed
Lee94 opened this issue Jan 30, 2024 · 1 comment
Closed

柱状图如何多次进行分组 #6070

Lee94 opened this issue Jan 30, 2024 · 1 comment

Comments

@Lee94
Copy link

Lee94 commented Jan 30, 2024

问题描述

比如这样的数据结构
[
{ x: 'a', x1: 'a1', x2: 'c', y: 1 },
{ x: 'a', x1: 'a2', x2: 'd', y: 1 },
{ x: 'b', x1: 'a1', x2: 'c', y: 1 },
{ x: 'b', x1: 'a2', x2: 'd', y: 1 },
]
color通道为'x2', 能否先对根据 x 进行分组,得到a,b两组,再在各个分组内根据x1进行二次分组。最终柱子数目是x、x1、x2的笛卡尔积。另外x坐标轴能否支持多值轴?
类似下面这张图,分组下有多个子分组
20210627163036667

重现链接

No response

重现步骤

No response

预期行为

No response

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@hustcc
Copy link
Member

hustcc commented Jan 31, 2024

建议可以先处理数据,增加一个字段,他是两个字段叉乘出来的。

@hustcc hustcc closed this as completed Feb 2, 2024
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

2 participants