integral support for histogram panel
(cherry picked from commit f35dd00ad451b6a354b972fefbb88d09f99a7cf4)