Added horizontal option for histogram.

Change-Id: Ie3172682fa865a59b8117c5372644cd2ccecc76a