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

Slider 支持展示迷你图 #5668

Closed
1 task done
jinmmd opened this issue Oct 20, 2023 · 2 comments · Fixed by #5832
Closed
1 task done

Slider 支持展示迷你图 #5668

jinmmd opened this issue Oct 20, 2023 · 2 comments · Fixed by #5832
Assignees

Comments

@jinmmd
Copy link

jinmmd commented Oct 20, 2023

AntV Open Source Contribution Plan(可选)

  • 我同意将这个 Issue 参与 OSCP 计划

Issue 类型

中级任务

任务介绍

目前 Slider 只有在如下指定 sparklineData 的使用才显示迷你图,期待针对折线图和面图图默认展示迷你图。

image

chart
  .line()
  .data({
    type: 'fetch',
    value:
      'https://gw.alipayobjects.com/os/bmw-prod/551d80c6-a6be-4f3c-a82a-abd739e12977.csv',
  })
  .encode('x', 'date')
  .encode('y', 'close')
  .slider('x', {
    sparklineData: [
      [10, 2, 3, 4, 15, 10, 5, 0, 3, 1],
    ],
  });
@pearmini
Copy link
Member

目前 sparklineData 没有和图表联系起来,感兴趣贡献一下吗?

@pearmini pearmini added the V5 label Nov 6, 2023
@pearmini pearmini changed the title [V5] slider 组件文档缺少 sparklineData 属性,导致无法展示迷你图 Slider 支持展示迷你图 Nov 16, 2023
@deletenothing
Copy link
Contributor

【deletenothing 认领】

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants