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.

Heatmap - Get clicked element

See original GitHub issue

Hello,

I can’t find data about clicked element inside that amazing heatmap.

function (event, chartContext, config) {
   console.log('click', chartContext);
}

Happy new year 🎉

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
junedchhipacommented, Jan 8, 2019

v2.6.0 allows dataPointSelection event to be called on heatmap.

1reaction
junedchhipacommented, Jan 4, 2019
options: {
  chart: {
    events: {
      click: function (event, chartContext, config) {
        var el = event.target;
        var seriesIndex = parseInt(el.getAttribute("i"));
        var dataPointIndex = parseInt(el.getAttribute("j"));

        var seriesName = config.globals.seriesNames[seriesIndex]
      }
    }
  }
}

Similarly, you can get x and y from cx and cy

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is the Clicked Element Filter?
The clicked element filter refines your session data based on where users have clicked on your site, such as buttons or links, without...
Read more >
Clickmaps
In the top-right corner, click the Heatmap tab. From here, you can select the type of click map you would like to view...
Read more >
What is a Click Heatmap? How to Create One, Examples ...
A click heatmap is a visual representation using thermal imaging that tells you where visitors are clicking, and Crazy Egg's Scrollmap shows ...
Read more >
Click maps
Click Heatmap helps you understand the critical content on the page. ... Select any clicked element to view the number of clicks (%...
Read more >
Highcharts: click events for heatmaps
Because click event on chart, works in the plotArea, not on the serie. Heatmap serie overlap plotArea, so click event doesnt work.
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