plotly / plotly/react-plotly.js
onClick event with choropleth
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 138
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 4
描述
Hello. I have set up a very simple choropleth chart that shows me information about the clicked city in my state. It works great! However, if I drag the map around, as soon as I release my mouse button the event will be fired as well. Is there any way to prevent an onClick event if the map is moved/dragged around? I want to fire onClick only when there's a click and an immediate release, ie no chart movement. Thanks in advance!
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定文件、测试或入口点。首先通过拖动并释放地图来复现分级设色图交互,然后将其与不移动的单击进行比较;只有在后一种情况下触发 onClick 才算完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- data-visualization, frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100