Dear all , how are you ,
I need to show my coordinate as a HeatMap !
i did found a script doing Just what i need , but it has some performance problem i need you to help me to edit on this file since i am not that php expert , but i can understand how things works !
The problem :
I note that the performance of the script is base on how many Images that it Generate base on the y-axis coordinate.
Let say we have screen res. 1280x800 width and height , and up to 100K coordinates .
but all of these coordinates located between 0 and 800 Y.
The result will be 1 image , generated in less than 2 sec. which is very good .
The problem is when we have coordinate grater than 800 on Y. in this case the script will loop and generate the next images.
This will slow down the speed ,
Say i have some clicks on the Y 5000. and the rest of the clicks on the top , 800 Y , the script will generate all Y. which is very slow .
My idea is to generate the images on demand . by pissing the Y range or Image Number. so i pass number 2 the script will not work with the image number 0ne and just work with number 2
Eg : i want to show the 1st image "the top of my web site" , via ajax we pass generate Image :: 1.
The script will generate just one image.
if user scroll down he will see a BIG button to generate the HeatMap for the current place , let say it is the image 2.
In this way we will speed up the proses .
PS: please do not send what is your company did , and what the things you did , just send my if you can do it or not.
i did attach the script :
Please run the script form : http://127.0.0.1/script/examples/[url removed, login to view]
What thing you need to work on :
- Generate the Image On demand. by passing the Image Number of the y-axis coordinate.
- improve speed rendering using virtual squares (avoid looking at empty zones)
- correct truncated dots in heatmaps (between 2 images of the heatmap)