plotlyClick event doesnt work
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- angular, typescript
- 领域
- frontend
调研方向
从 issue 中所示的 Angular 模板和 angular.ts 处理程序开始,然后检查 angular-plotly.js 关于 plotlyClick 的事件绑定文档和示例。验证该处理程序是否接收到水平条形图的 click 事件,以及该事件是否包含被点击的 x 轴标签。
由索引模型根据 Issue 内容生成。
描述
Below is in my angular.ts file
<plotly-plot [data]="_traces" [config]="_config" [layout]="_layout"
(plotlyClick)="onClick($event)"
></plotly-plot>
TS Code :
onClick(event:any){
console.log(event)
}
Not sure why the above code doesn't work,
My end goal is to get the clicked x-axis label in a horizontal bar chart, I am trying with different approaches but didn't work, so just putting this simple code as I am not sure if its possible to implement this feature
- 主要语言
- TypeScript
- 星标
- 242
- 派生
- 81
- 平均合并
- 23 小时 52 分钟
- 30 天内合并 PR
- 5
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plotly/angular-plotly.js 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
plotly/angular-plotly.js#373 ·
维护者通常 1 天内回复
-
Feature request: please add migration guide可能已有人在做 @andrefarzat 于 21 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
plotly/angular-plotly.js#285 · 3 条评论 ·
维护者通常 1 天内回复
-
event handlers are not typed可能已有人在做 @andrefarzat 于 21 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 38/100
plotly/angular-plotly.js#283 ·
维护者通常 1 天内回复
-
Angular 20 standalone application可能已有人在做 @andrefarzat 于 21 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
plotly/angular-plotly.js#281 · 8 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 25/100
plotly/angular-plotly.js#278 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 plotly/angular-plotly.js 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 72/100
DSpace/dspace-angular#6511 ·
维护者通常 1 天内回复
-
area: frontend area:byok bug severity:low
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
Phone app shows Unknown for a remote machine whose key changed可能已有人在做 @janicduplessis 今天认领。 未关闭area: mobile priority: P3 type: bug
难度 1/5 1 小时以内 新手友好度 78/100
appandflow/stim#5006 · 1 条评论 ·
维护者通常 1 天内回复
-
Area - Local to Cloud Bug
难度 2/5 1-3 小时 新手友好度 66/100
microsoft/vscode-mssql#23209 ·
维护者通常 1 天内回复