Better display of charts on narrow displays

Show fewer ticks, shorten text when needed.