Made histogram x-axis labels dynamic