We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前的 Sort 只针对离散数据,通过对 scale.domain 去排序达到对数据排序的效果。同时应该增加对连续数据排序的能力。
scale.domain
import { Chart } from '@antv/g2'; import { sort } from 'd3-array'; const data = [/** */]; const chart = new Chart({ container: 'container', autoFit: true, }); chart .line() .data(data) .encode('x', (d) => d) .transform({ type: 'binX', y: 'count' }) .transform({ type: SortX }) chart.render(); // 简单的实现方式如下 function SortX() { return (I, mark) => { const { encode } = mark; const { x } = encode; const X = x.value; const sortedX = sort(I, (i) => X[i]); return [sortedX, mark]; }; }
The text was updated successfully, but these errors were encountered:
这个 RP #4395 已经解决这个问题
Sorry, something went wrong.
对于连续通道,我想问下,使用new date的的时候,如何将英文日期改为中文
@myface-wang 没有太理解,有例子吗?
对于连续通道,我想问下,使用新日期的时候,如何将英文日期改为中文 @myface-wang不太明白,有例子吗?
对于连续通道,我想问下,使用新日期的时候,如何将英文日期改为中文
@myface-wang不太明白,有例子吗?
当时间跨度没有达到年份的级别时,会显示月份,如何将月份汉化 @pearmini
@myface-wang
chart.axis('x', { labelFormatter: d => {} })
pearmini
No branches or pull requests
SortX
目前的 Sort 只针对离散数据,通过对
scale.domain
去排序达到对数据排序的效果。同时应该增加对连续数据排序的能力。The text was updated successfully, but these errors were encountered: