fix for graphs not showing for some stations

Where stations have less than 11 datapoints, the graph is unable to draw. This is fixed by setting the min / max index to graph based on the number of data points