Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tooltip): click to show line tooltip #6330

Merged
merged 1 commit into from
Jun 28, 2024
Merged

feat(tooltip): click to show line tooltip #6330

merged 1 commit into from
Jun 28, 2024

Conversation

pearmini
Copy link
Member

支持可以通过点击展示 tooltip,主要的使用方式如下:

chart.on('plot:click', ({ offsetX, offsetY, target }) => {
  chart.emit('tooltip:show', { offsetX, offsetY: 20, target });
});
  • code
  • tests
  • docs
  • example

@coveralls
Copy link

coveralls commented Jun 28, 2024

Pull Request Test Coverage Report for Build 9709369272

Details

  • 9 of 9 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.008%) to 86.388%

Totals Coverage Status
Change from base Build 9708207158: -0.008%
Covered Lines: 10414
Relevant Lines: 11674

💛 - Coveralls

@hustcc hustcc merged commit 08c66db into v5 Jun 28, 2024
2 checks passed
@hustcc hustcc deleted the click-line-tooltip branch June 28, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants