add ratio and style of histogram