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 2022/02/22 04:56:37 UTC
[GitHub] [echarts] MNHarshitha opened a new issue #16556: Series Tooltip[Bug]
MNHarshitha opened a new issue #16556:
URL: https://github.com/apache/echarts/issues/16556
### Version
5.3.0
### Link to Minimal Reproduction
https://codepen.io/Harshitha19/pen/podLqax
### Steps to Reproduce
var container = document.getElementById('main');
var chart = echarts.init(container);
chart.setOption({
xAxis: {
data: ['A', 'B', 'C']
},
yAxis: {
},
series: [{
type: 'bar',
data: [120, 200, 150],
tooltip:{
trigger:'item',
formatter:(params)=>{return 'hello'},
}
}]
});
### Current Behavior
Tooltip is not triggering when it is set at the series level
### Expected Behavior
Tooltip should be triggered when it is set at the series level.
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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] [echarts] plainheart commented on issue #16556: Series Tooltip[Bug]
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16556:
URL: https://github.com/apache/echarts/issues/16556#issuecomment-1047431529
You should first enable the tooltip globally, the `tooltip` option defined in series is only for customizing for specific series.
```js
option = {
// ...
tooltip: {},
series: [
// ...
]
};
```
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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