feat: dodgeX support different sort methods for different fields of the x-axis #5205
pepper-nice
started this conversation in
Ideas
Replies: 1 comment
-
这里有几点建议:
const o = {
type: 'dodgeX',
orderBy: {
2014: 'ascend',
2015: 'descend',
2016: (d) => ['Sales', 'Profit', 'Expenses'].indexOf(d.type),
},
reverse: {
2014: true,
2015: false,
},
}; |
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
-
背景
G2 4.0 的组内排序无法支持不同 x 轴字段使用不同的排序方式。这一需求在复杂数据分析场景十分需要。
API 设计
实现方法
Beta Was this translation helpful? Give feedback.
All reactions