plotly / plotly/plotly.js

Range Slider with multi category repositions if dragging on the gray area

未关闭
#6,838 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug P3
主要语言
JavaScript
星标
18.3k
派生
2k
平均合并
2 天 12 小时
30 天内合并 PR
28

描述

I've searched in https://github.com/plotly/angular-plotly.js if there was any issues about the range slider jumping randomly but there was not much but plotlys main repo had a few that were somewhat related but not exactly.

I've been wanting to use angular-plotly for my application since it had range slider and multi category axis with an easy api but i've noticed that when the user were to slide on the gray area to the far left or far right, the range slider would reposition to the top suddenly and would cause the x-axis to disappear.
Sometimes simply dragging in the gray area would cause the repositioning and a jumpy range change.
I thought maybe this was just the angular-plotly since the range slider example i copied from was https://plotly.com/javascript/range-slider/ , where there was no range slider reposition when sliding,
but it appears that this jumping also happens in the vanilla js.

Reproducible Ex:
https://stackblitz.com/edit/js-7ietfq?file=index.js%2Cpackage.json

start sliding in the gray area (left or right):

image

ends up after sliding:

image

my quick and toplevel guess is that the quickest temporary fix would be if somehow the library just disabled/prevent any interaction on the gray area and restrict only to using the handle bars until there is a fix?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从链接的 StackBlitz 复现开始,重点查看 index.js 和 package.json,并在具有多类别轴的灰色区域上复现拖动 range-slider 的操作。跟踪该示例中的 range-slider 交互,并确认从任一边缘拖动时不再使 slider 向上移动、隐藏 x-axis 或导致范围发生跳跃式变化。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。