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

请教如何实现csv表格数据自动统计? #17

Open
sherjf opened this issue Aug 7, 2021 · 1 comment
Open

请教如何实现csv表格数据自动统计? #17

sherjf opened this issue Aug 7, 2021 · 1 comment

Comments

@sherjf
Copy link

sherjf commented Aug 7, 2021

在将csv表格文件转为图形展示过程中,遇到数据无法自动统计问题,请教如何解决。如下csv文件,要实现color的分类统计,想不到其它办法,加了value字段,但label标签仍无法自动统计数量展示。
test.csv

type: Column
data: test.csv

options:
  xField: color
  yField: value
  seriesField: color
  isStack: true
  label: {}

问题1:同类型的stack如何自动合并统?即上例中的label能显示种颜色的总数。
问题2:不同类型的stack如何自动合并统计?
问题3:如何不用增加value字段实现color的分类统计?

@sherjf
Copy link
Author

sherjf commented Oct 17, 2021

在eachView函数内通过自定义函数,已实现数据统计功能,如能支持全局函数即可解决本问题。

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

1 participant