How to calculate the weight of xpene y-axis coordinates clicked by users in a web page

there is a table used to record the position of the user"s click on the web page and the screen resolution width,height
now the thermal map is used to show the area clicked by the user, but the weight parameter is needed when displaying the thermal map. May I ask how to calculate the weight (the weight of this coordinate relative to the position in the screen area, assuming a specified screen width 1200px) how to calculate the
table structure is as follows:
clipboard.png

.

weight represents the click frequency of your region. You can count the highest and lowest times, and then compare them with the number of times in each position.


feels that there is something wrong with your statistics. Because it involves scrolling:
Click area height = get the current user's height from the top-scrolling distance + current browser workspace height
click area width = current browser width
then come down according to the two parameters of cx/ click area width and cy/ click area height (exact number of bits)
and then you count the number of times. Including finally getting the content of this area is more convenient

Menu