question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Programmatically select data-point and change the tooltip position

See original GitHub issue

Using javascript, is it possible to “highlight” a X position on the chart? So that it behaves just as if the cursor was on that X position, showing the tooltip and all. Something like this:

<button>Go to position 3</button>
<script>
document.querySelector('button').addEventListener('click', function(){
chart.highlightPosition(3);
});
</script>

Hope my question is clear 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
nhhcommented, Dec 14, 2020

Any updates on this? We are currently missing this feature? Are there workarounds?

4reactions
StarryFirecommented, Jun 7, 2021

Are there any plans to work on this feature?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Move tooltip further from data point for Chart.js? - Stack Overflow
I have something close, tooltips can accept a position which is an alias for a function stored in Chart.Tooltip.positioners .
Read more >
Controlling plot data-tips - Undocumented Matlab
You place data tips only by clicking data objects on graphs. You cannot place them programmatically (by executing code to position a data...
Read more >
Keyboard shortcut to move DataCursor tooltip to previous/next ...
Once I select a data point in my plot using the Data Cursor tool, it would be very useful to be able to...
Read more >
Tooltip - Chart.js
# Position Modes ... Possible modes are: ... 'average' mode will place the tooltip at the average position of the items displayed in...
Read more >
Tooltips | Charts - Google Developers
In the absence of any custom content, the tooltip content is automatically generated based on the underlying data. You can see the tooltip...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found