clarity
clarity copied to clipboard
heatmap visualize
Is it possible to provide heatmap data structure generation logic? for use clarity-visualize -> clickmap and scrollmap params how to product thank so muck ! @ @
Please take a look here: https://github.com/microsoft/clarity/blob/master/packages/clarity-visualize/types/visualize.d.ts#L85
The generation logic is that for every element (represented by hash and selector computed #here) we group all clicks by X, Y, SUM() in corresponding arrays. Here X & Y are normalized to the scale of 2^15 - 1 to not lose precision (see here). Hope this helps.