Adding configurable max ticks for x-axis

Added a config value that will set a maximum number of ticks to display on the x-axis