x axis limiter for labels for line graph

This patch allows for limitation of x-labels on line and stacked line graphs, so if someone has a lot of data to show, x-axis doesn't get cluttered with too many values.