Never mind. I hacked it by using a global variable and getting the count of datapoints when it is parsing the CSV and using that to dynamically set the maximum axisX value.