Is there a way to automatically adjust the range of an axis on a chart to fit given data? I am creating a template to automatically create several charts when text data is imported.

For example, charts have time plotted on the x-axis, but some of the data files might only have 3 hours of data, and others might have 10 days of data. I would like the range of the time axis to start at the initial time value and end at the final time, and adjust accordingly when new data is loaded into the template.

Thanks for your help.