--- title: "Change Time Span and Plot Linear Fit" slug: "change-time-span-and-plot-linear-fit" updated: 2024-02-06T11:08:40Z published: 2024-02-06T11:08:40Z canonical: "kb.dataparc.com/change-time-span-and-plot-linear-fit" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.dataparc.com/llms.txt > Use this file to discover all available pages before exploring further. # Change Time Span and Plot Linear Fit **Purpose:** Learn to change the timespan of an X/Y Chart and do a linear fit to the data. **Task:** Open the X/Y chart created in the [previous tutorial](/v1/docs/create-an-xy-chart) or create a new display. Change its timespan to the previous 3 days and toggle on Linear Curve fit. Note the line’s formula and the calculated R-Squared value. **Steps:** 1. Open or create an X/Y chart. 2. On the left side, in the Run Browser area, make sure **Absolute Time Run** tab is selected. 3. Next to “Time Span” click on the radio button to select it and choose **3D** in the list ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image008_025.jpg) 4. Click the **Plot** button. 5. Above the X/Y plot area, open the **Curve Fit** menu and choose **Linear**. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image010_026.jpg) 6. Note the Formula and R-Squared value on the right side of the X/Y chart at the bottom of the legend. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image012_026.jpg)