You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/12/10 10:34:05 UTC
[GitHub] [incubator-echarts] zhangiser opened a new issue #13791: 普通地图可以获取正确的params,但矢量场图不行,里面没有data
zhangiser opened a new issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791
### Version
5.0.0
### Steps to reproduce
echats普通的地图,添加点击事件后,
```js
myChart.on('click', function (params) {
console.log(params);
});
```
可以获取到正确的params,其中包含一个data选项,详见 [https://echarts.apache.org/examples/zh/editor.html?c=lines-bmap](url)
```js
{componentType: "series", componentSubType: "lines", componentIndex: 0, seriesType: "lines", seriesIndex: 0, …}
$vars: (3) ["seriesName", "name", "value"]
borderColor: undefined
color: "purple"
componentIndex: 0
componentSubType: "lines"
componentType: "series"
data: {coords: Array(290)}
dataIndex: 23
dataType: undefined
dimensionNames: ["value"]
encode: {value: Array(1)}
event: {type: "click", event: MouseEvent, target: t, topTarget: t, cancelBubble: false, …}
marker: "<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:purple;"></span>"
name: ""
seriesId: "series00"
seriesIndex: 0
seriesName: "series0"
seriesType: "lines"
type: "click"
value: undefined
__proto__: Object
```
但是矢量场图,比如风场图,就不行,点击事件可以生效,但是params对象里没有data选项,详见
[https://echarts.apache.org/examples/zh/editor.html?c=global-wind-visualization&gl=1](url)
```js
{type: "click", event: MouseEvent, target: undefined, topTarget: undefined, cancelBubble: false, …}
cancelBubble: false
event: MouseEvent {isTrusted: true, zrX: 221, zrY: 187, zrDelta: -0.3333333333333333, screenX: 623, …}
gestureEvent: undefined
offsetX: 221
offsetY: 187
pinchScale: undefined
pinchX: undefined
pinchY: undefined
stop: ƒ Jt()
target: undefined
topTarget: undefined
type: "click"
wheelDelta: -0.3333333333333333
which: 1
zrByTouch: undefined
__proto__: Object
```
### What is expected?
拿到正确的params,里面包含data
### What is actually happening?
拿到错误的params,里面不包含data
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] zhangiser closed issue #13791: 矢量场图点击事件无法获取正确的params,里面没有data,且无法触发mouseover事件
Posted by GitBox <gi...@apache.org>.
zhangiser closed issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] pissang commented on issue #13791: 矢量场图点击事件无法获取正确的params,里面没有data,且无法触发mouseover事件
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791#issuecomment-742941728
矢量场流图无法获取每个数据的具体信息。如果要获取的话可以考虑这个例子
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13791: 普通地图可以获取正确的params,但矢量场图不行,里面没有data
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791#issuecomment-742434641
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
Have a nice day! 🍵
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] zhangiser removed a comment on issue #13791: 矢量场图点击事件无法获取正确的params,里面没有data,且无法触发mouseover事件
Posted by GitBox <gi...@apache.org>.
zhangiser removed a comment on issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791#issuecomment-743012113
> 矢量场流图无法获取每个数据的具体信息。如果要获取的话可以考虑使用这个例子
> https://echarts.apache.org/examples/zh/editor.html?c=custom-wind
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] zhangiser commented on issue #13791: 矢量场图点击事件无法获取正确的params,里面没有data,且无法触发mouseover事件
Posted by GitBox <gi...@apache.org>.
zhangiser commented on issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791#issuecomment-743015639
> 矢量场流图无法获取每个数据的具体信息。如果要获取的话可以考虑使用这个例子
> https://echarts.apache.org/examples/zh/editor.html?c=custom-wind
@pissang 这个例子里好像没有方向,您的意思是把这两种demo整合一下?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] zhangiser commented on issue #13791: 矢量场图点击事件无法获取正确的params,里面没有data,且无法触发mouseover事件
Posted by GitBox <gi...@apache.org>.
zhangiser commented on issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791#issuecomment-743012113
> 矢量场流图无法获取每个数据的具体信息。如果要获取的话可以考虑使用这个例子
> https://echarts.apache.org/examples/zh/editor.html?c=custom-wind
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] pissang commented on issue #13791: 矢量场图点击事件无法获取正确的params,里面没有data,且无法触发mouseover事件
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791#issuecomment-743713047
@zhangiser 方向可以在自定义图形里加上箭头
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] pissang edited a comment on issue #13791: 矢量场图点击事件无法获取正确的params,里面没有data,且无法触发mouseover事件
Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #13791:
URL: https://github.com/apache/incubator-echarts/issues/13791#issuecomment-742941728
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org