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

基于 getInsights 生成图表非常不稳定 #792

Open
HJrookie opened this issue Nov 22, 2024 · 0 comments
Open

基于 getInsights 生成图表非常不稳定 #792

HJrookie opened this issue Nov 22, 2024 · 0 comments

Comments

@HJrookie
Copy link

  • Package Name:
  • Package Version: 3.4.1
  • Platform: windows
  • Mini Showcase(like screenshots):
  • CodePen Link:

对于如下所示这么一组简单的数据,ava的 getInsights 方法 返回的结果为 { insights: [] }, 我的疑问点在于

  1. 这些数据如此简单, 为什么它不能以柱状图的形式显示呢?
  2. 当通过各种算法无法从数据中识别到 最合适的展示方式时,能否提供一种fallback方案,例如 柱状图,
  3. 我能否通过配置 getInsights 的第二个参数中的 algorithmParameter 字段,来实现 未识别到 最合适的展示方式时,以柱状图的方式显示 ?假如可以的话,该怎么配置呢
const data =     [
        { NAME: "刘小庆", sign_in_count: 86 },
        { NAME: "段伟", sign_in_count: 177 },
        {  NAME: "李鹏", sign_in_count: 175 },
        {  NAME: "王印月", sign_in_count: 274 },
        { NAME: "高万虎", sign_in_count: 274 },
      ];

此外, 对于如下数据,ava的 getInsights 方法 返回的结果为 { insights: [] } , 我感觉很困惑,这些数据很简单,并且规律也很明显,为什么没有结果呢?

  const data = [
{ NAME: "刘小庆", sign_in_count: 1 },
      { NAME: "段伟", sign_in_count: 2 },
      {  NAME: "李鹏", sign_in_count: 3 },
      {  NAME: "王印月", sign_in_count: 4 },
      { NAME: "高万虎", sign_in_count: 5 },
]
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