Can you point me somewhere that shows how it might be used. That link is not that helpful.
TBH, I'm not sure anyone's really used it since I implemented it.
It returns the histogram as a 0 based array of counts of the Y (luminance-ish) values of the viewport, along with the total number of pixels sampled so you can calculate what fraction is in a given range.
Note that depending on camera and settings, the live view may not reflect the used exposure outside of half press, and you may need to wait a bit after get_shooting() becomes true for the live view to be updated.
If you believe the CHDK division of Y values into 5 ev stops is valid (which appears roughly true using native exposure compensation), then bins of ~51 would be roughly one stop increments. But keep in mind digic 6 appears to use ~16 to 235 rather than the full 0-256 range seen on earlier cams, which would give bins of ~44.
Quick chdkptp example, on g7x
!h,c=con:execwait[[press'shoot_half' repeat sleep(10) until get_shooting() sleep(100) return get_live_histo()]]
!for i=16,192,44 do t=0 for j=0,43 do t=t+h[i+j] end printf('%d-%d:%d %0.2f\n',i,i+43,t,100*t/c) end
16-59:2573 17.87
60-103:4085 28.37
104-147:1161 8.06
148-191:6572 45.64
192-235:9 0.06
Repeat with ev shift +1
16-59:1247 8.66
60-103:3937 27.34
104-147:1587 11.02
148-191:1753 12.17
192-235:5876 40.81
Finally, given that your cam appears to have unresolved issues with the regular CHDK histogram, it's possible this one is broken too, although it uses different, simpler code, so it might not be.