> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/navigate.md).

# Read and navigate a trend

Read values with the time cursors, get statistics between two times, zoom and scroll, keep a plot live, choose how much data loads, and add notes.

Use the time cursors to read values and compare two times, zoom and scroll through the data, keep a plot live, and add notes to mark events.

{% hint style="info" %}
**Applies to:** DATRAN Trending V5.x. A second time cursor and plot notes were added in V5.00.
{% endhint %}

## Read a value

* **Hover** your mouse over the trend and a yellow tool tip will appear showing the pen number, point name, value and date time. In **Point Graph** view (**Current Plot > Point Graph**), where each actual data point is logged there is a square. With the time cursor not displayed, move your mouse over the square to see the actual value appear in the pen legend.
* **Left click** the graph to put the time cursor where the cursor is. A line appears vertically through the graph and a time and date value appears at the bottom of the line. When the time cursor is active the value of where the time cursor crosses the line is displayed under the name of the point in each pen's legend. The unit of measurement for the analogue point is shown in the legend area.

| Pen                           | Value shown at the time cursor                                                                             |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------- |
| Analogue, straight-line style | The interpolated value, using the points on either side of where the Time Cursor crosses the pen data line |
| Analogue, step-line style     | The closest actual plotted data to the left of where the Time Cursor line crosses the pen data line        |
| Alarm (digital)               | ALM or RTN                                                                                                 |
| Event (digital)               | ON or OFF                                                                                                  |

If the pen value you are viewing is a digital (alarm or event) point or analogue point and no line is shown on the graph the last known value will be displayed in the pen legend. When the time cursor is active and no values are found for the data load amount specified the text "NO DATA" is displayed under the name of the point. "Retrieving Data..." is displayed if the data is still being loaded from the DATRAN database.

When the Time Cursor is displayed it can be moved around by holding down the Shift key and moving the mouse. The time format follows the long time format of the Windows regional settings.

## Compare two times

Place a second time cursor to find out the following data summaries between the two time cursors:

* Analogue: average, difference, maximum, minimum and total value
* Digital: average, maximum, minimum and total ON (or ALM) time, and the same for OFF (or RTN)
* Sample count

![Two time cursors on a plot, with Analogue average selected](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FGx6Vo7ePqoLTlainvnte%2Ftrending-dual-time-cursors.png?alt=media)

You can make the time cursor/s stationary by clicking on the pin/s. This is useful when used together with auto scroll.

**Current Plot > View Pens Statistics** allows you to view the minimum, average, maximum, standard deviation, etc of the pen data. Only active and enabled pens i.e. those that have points assigned to them, will be listed. Select **File > Save As...** to save the statistics to a comma delimited file (\*.CSV file). Click on the header of a column to sort the statistics according to that particular column.

## Zoom

| To                     | Do this                                                                                                                                                                                                                                                                                                                                                                     |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Zoom in or out on time | The zoom buttons increase and decrease the time span of the graph by 50%. If the Time Line is visible the zoom buttons will zoom in and out on the Time Line. Otherwise it will zoom on the middle of the viewed plot. You can also zoom in by pressing the Ctrl key and right clicking on the graph, and zoom out by pressing the Ctrl key and left clicking on the graph. |
| Zoom to an area        | For a faster zoom, left click and drag the cursor down towards the bottom right corner to create a rectangle around the area you are interested in. To undo the fast zoom, press the Alt key and right click anywhere on the plot.                                                                                                                                          |
| Zoom the Y axis        | The Y zoom buttons increase and decrease the y-axis span of the graph by 20 screen pixels.                                                                                                                                                                                                                                                                                  |
| Undo zooming           | **Revert the plot to the original scaling** undoes Y zooming, drag zooming and mouse-wheel zooming.                                                                                                                                                                                                                                                                         |

The minimum span allowed is around 6 minutes and the zoom in button will become disabled when it reaches this. The maximum span is set in the Plot Properties. When you are zooming in or out this way and find that zooming in or out does not work anymore, it could be that you are clicking on the time cursor instead of the graph behind it. Move the cursor a little to the left or to the right of the time cursor and continue.

## Move through time

| To                    | Do this                                                                                                                                                                                                                                                                          |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Move a whole screen   | The scroll screen left and right buttons move the start date a full time span (current width of the x-axis) to the left or the right.                                                                                                                                            |
| Move 20% of a screen  | The 20% buttons move the span 20% to the left or right. Alternatively right click on the plot and drag the plot left or right to move the span.                                                                                                                                  |
| Jump to a date        | Change the Start Date/Time or Stop Date/Time and the plot changes to that date and time automatically. The date control displays a calendar. Changing the start date and time preserves the span of the plot; changing the stop date and time changes the time span of the plot. |
| Show a set period     | The default plot time span combo box lets you quickly navigate to today 24 hours, yesterday 24 hours, this week, last week, etc. Any change made will be remembered by saving to the DATRAN database immediately.                                                                |
| Go to the next change | The previous and next point buttons move the time cursor one point/event to the left or right respectively, depending on which pen has the following change in value.                                                                                                            |

## Keep a plot live

* **Update plot from DATRAN database** updates the data that is displayed on the screen with what is currently stored in the database. If you are trying to view what is happening currently use this button to view the newly logged data.
* **Start or stop automatic scrolling** turns on automatic scrolling, which will set the plot to automatically get the latest data at the set interval and scroll so that the right of the plot is today's current time. Be wary of setting an interval that is too frequent as this will affect the performance of your computer.
* In **Options > General Settings**, if the **Always Load on Today** check box is ticked, each time a plot is loaded it will open with today's date being close to the right most part of the screen.

## General settings

To access the General Settings dialogue, select **Options** from the main menu and then select **General Settings**.

![The General Settings window](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FpBwPTiFy1zIsjMCYUnHJ%2Ftrending-general-settings.png?alt=media)

| Setting                                    | What it does                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Data Load Amount                           | How much data the application will load from the database each time a plot is displayed. If this is set to unlimited it may take quite a few seconds to display a graph. To specify your own, click Custom and click OK, then use the years, months and days spin edit boxes. The first time DATRAN Trending is installed it is set to load two weeks worth of data. The more data selected the slower the start time will be. If you are using cellular/low speed network connections we suggest 1 day/1 week as a starting point. The area of the plot before the loaded data is shaded and the screen left buttons are disabled to stop any scrolling to an area of the plot which will contain no data. |
| Always Load on Today                       | If ticked, **Start Time Changes** gets set to Global and each time a plot is loaded it will open with today's date being close to the right most part of the screen.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Start Time Changes                         | Allows you to decide if the Start Date and Time will be **Global** (across all plots) or if each plot will have their own default start time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Time line width and colours                | Allows you to change the width of the time lines (time cursors). The default width is 4 pixels. You can also change the colour of time line 1 and time line 2. You usually change this when you encounter a plot where its background colour is too close to the colour of the time line.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Default Pen Settings                       | Change the default settings of a newly added pen. Specify the default analogue pen style (stepped line or straight line), width and also number of decimal places in an analogue pen. The "Turn on pen tool tips/pop ups" check box turns the pen tool tips on or off.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Automatically start SQL Server on start-up | Automatically start SQL Server if on local machine. The default is unchecked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

## Make more room for the graph

* Hide the legend: hiding the legend increases the width of the plot. Go to the main menu's **Current Plot** menu and select **Hide Legend**.
* Reduce the size of the legend: you can resize the legend by clicking and dragging the right side of the legend area to the required size.
* Maximize the plot: click the maximize button in the right hand corner of the plot window.
* Hide the y-axis: the y-axis takes up about 1 cm of the width of the plot. By ensuring these are not displayed you can see more of the plot.
* Printing: if you want the maximum viewable area whilst printing and want to show the point names without having the legend take up valuable space, select **Current Plot > Hide Legend**, then **File > Print Plot...** and select the **Display point names** option.

## Add a note to a plot

Plot notes ("sticky notes") outline key events, particularly useful for non compliant, DWS events such as instrument calibration.

1. To add a plot note to a plot, right click on the graph area and select **Add Note** from the pop up menu.
2. Change the date and time if you want the position of the dot to be more specific.
3. Select a pen to be associated with the plot note. This is not compulsory.
4. Select the font and background colour of the plot note.
5. Determine if you want the plot note to be transparent.
6. Click **OK**, once you are satisfied with the plot note.

![The Editing Note window](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fe3LWkIkuX32LaSiRSzZS%2Ftrending-plot-note.png?alt=media)

Right click on a plot note and select from the pop up menu the options to edit, hide or delete the plot note. Also, right clicking on the graph area gives these options: **Show All Notes** reveals all plot notes that are available in the plot, and **Hide All Notes** hides all plot notes that are available in the plot. Hover over the plot note dot to get a tool tip. Notes are saved with the plot in the DATRAN database.
