wf123537200 opened a new pull request #12504:
URL: https://github.com/apache/incubator-echarts/pull/12504
## Brief Information
add config as follow to control tooltip.formatter function trigger only once
or not
```
tooltip: {
triggerOnce: true, // 如果配置为true,formatter函数只触发一次
...
},
```
This pull request is in the type of:
- [ ] bug fixing
- [x] new feature
- [ ] others
### What does this PR do?
Control whether the tooltip.formatter function is triggered only once
through configuration items, used to reduce the number of high-cost function
executions
### Fixed issues
#12338
## Details
### Before: What was the problem?
the formatter function trigger many times

### After: How is it fixed in this PR?
when set triggerOnce: true, each formatter function trigger only once

## Usage
### Are there any API changes?
- [x] The API has been changed.
```
tooltip: {
triggerOnce: true, // 如果配置为true,formatter函数只触发一次
...
},
```
### Related test cases or examples to use the new APIs
/test/tooltip-formatter-triggerOnce.html
## Others
### Merging options
- [ ] Please squash the commits into a single one when merge.
### Other information
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]