I have a heat map question, with one region, and respondents can only click inside this region. When I export the data to csv, I get the x and y coordinates of where each respondent clicked. I assume (would like confirmation) that the values of these coordinates refer to the pixel locations in the full image. But is there any way to get the pixel values for the region? That is, I want to know the minimum and maximum possible values that the coordinates can take.
Heat map - what are the pixels corresponding to the edges of the a region?
Best answer by Tom_1842
Hi, I don't think there is an easy way to get to this information, but I think there are 2 approaches you could take. The first and easiest is to generate a bunch of Test Responses, download the data to Excel, add a filter for Region 1 = 1, then look at the min and max values in the x and y coordinate columns. When I used a test image on my end with 700 test responses and a square Region 1, I got x min = 316, x max = 463, y min = 172, y max = 319.
The the more precise but difficult to parse approach would be to inspect the browser when viewing the Heat Map in the Survey Builder. The Region 1 element can be navigated to and the element should look something like the below:
<path fill="none" stroke="#ffffff" d="M315.5,169.5C315.5,169.5,465.5,169.5,465.5,169.5C465.5,169.5,465.5,319.5,465.5,319.5C465.5,319.5,315.5,319.5,315.5,319.5C315.5,319.5,315.5,169.5,315.5,169.5" stroke-linejoin="round" stroke-linecap="round" stroke-width="4" opacity="0.2" transform="matrix(1,0,0,1,0,0)" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-linejoin: round; stroke-linecap: round; opacity: 0.2;"></path>I see values in there that I believe are related to the positioning of the Region within the Heat Map image. I think the values parse out to x min = 315.5, x max = 465.5, y min = 169.5, y max = 319.5.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
