Realtime chart functionality shows last N records

Undocumented as yet
Added height distribution example and tidied.