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

[V5] slider 设置初始值时图表展示区域未随之变化 #5424

Closed
HoneyPecanPie opened this issue Aug 17, 2023 · 2 comments · Fixed by #6033
Closed

[V5] slider 设置初始值时图表展示区域未随之变化 #5424

HoneyPecanPie opened this issue Aug 17, 2023 · 2 comments · Fixed by #6033

Comments

@HoneyPecanPie
Copy link
Contributor

  • G2 Version: 5.0.18
  • Platform:
  • Mini Showcase(like screenshots):
  • CodePen Link:

预期是当设置 slider 初始范围后,图表对应的值域能变化,如:
image

但实际设置初始范围后,图表值域未变:
image
必须拖拽手柄以后值域才会更新。

复现方式:
官方案例:https://g2.antv.antgroup.com/zh/examples/interaction/interaction/#slider 内添加 values:[0,0.5] 即可

@hustcc hustcc self-assigned this Aug 22, 2023
@pearmini pearmini added the V5 label Aug 23, 2023
@pearmini
Copy link
Member

pearmini commented Aug 23, 2023

目前 slider 没有提供这个 api。只能通过 chart.emit 实现,参考这个文档

@hustcc
Copy link
Member

hustcc commented Sep 7, 2023

目前 slider 没有提供这个 api。只能通过 chart.emit 实现,参考这个文档

为啥这个不能和 scrollbar 一样,支持配置默认值。

@pearmini pearmini added this to G2 Sep 14, 2023
@pearmini pearmini moved this to Todo in G2 Sep 14, 2023
@pearmini pearmini added this to the 5.1.5 milestone Sep 21, 2023
@pearmini pearmini removed this from the 5.1.5 milestone Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

3 participants