CarterLi opened a new pull request #13284:
URL: https://github.com/apache/incubator-echarts/pull/13284
<!-- Please fill in the following information to help us review your PR more
efficiently. -->
## Brief Information
This pull request is in the type of:
- [ ] bug fixing
- [x] new feature
- [ ] others
### What does this PR do?
<!-- USE ONCE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
Provide a way to set the customized tooltip renderer
### Fixed issues
N/A
## Details
### Before: What was the problem?
The tooltip renderer is hardcoded in repo and no way to override. For people
using web worker ( or WX小程序 maybe? ) they have to use `TooltipRichContent`
which has limitations compared to the default html renderer.
### After: How is it fixed in this PR?
The PR provides a new option `renderer` for `tooltip`, and use it if set.
## Usage
### Are there any API changes?
- [x] The API has been changed.
<!-- LIST THE API CHANGES HERE -->
```
tooltip: {
renderer: Constructor
}
```
### Related test cases or examples to use the new APIs
NA.
## 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]