feat(line): show single symbol when pre and next data is null
Brief Information
This pull request is in the type of:
- [ ] bug fixing
- [x] new feature
- [ ] others
What does this PR do?
when showSymbol is 'single', add symbol when pre data and next data is null
Fixed issues
- fix #17708
Details
Before: What was the problem?
when showSymbol is false, when pre and next is null, the data between would not show
normal
hover:
After: How does it behave after the fixing?
will show single symbol when pre and next data is null, unless connectNulls is true
Document Info
One of the following should be checked.
- [ ] This PR doesn't relate to document changes
- [x] The document should be updated later
- [ ] The document changes have been made in apache/echarts-doc#xxx
Misc
ZRender Changes
- [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
- [ ] Please squash the commits into a single one when merging.
Other information
Thanks for your contribution! The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-18815@047e0a8
not working for xAxis (type:time) demo : demo
Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the PR: awaiting doc label.
this would be helpful @Ovilia