[diagrams] Fix scaling and positioning of histograms