Change the text labels

Top  Previous  Next

As you view the diagram, note that each crash has some text next to it.  The default label should resemble your case id field.  However, the labels may be configured to include any fields in the database.

 

Tutorial_CrashGraphic

 

Select the Diagram Settings tab again and note the section for "Label settings".  It includes options to set the color, content and size of the labels. Click the "..." button next to the content box.  This will open the Expression editor for crash labels.  The program is capable of producing labels that combine fields, are conditional on other fields, and may other complex content.  For now, locate the combo box in the top right corner of the form.  It contains categories of data and functions that can be used to populate the labels.

 

Select the category called "QueryFieldsLU". The LU stands for "looked up" meaning that the program will display English descriptions of the data rather than the codes in your database.  These fields should look familiar, as they come from your own database.  Scroll down the list and find the one that describes the weather in your database. Select it and press the "Insert function" button.  The text (something like "@Weather") will appear in the editor on the left.

 

Select the "Save and return" button.

 

While we're here, change the size of the labels to "25".

 

Now click the Diagram report tab to show the diagram with your new labels.

 

Note: you can use the zoom control in the upper left of the diagram, or your mouse while to zoom in and out.  You can also drag the diagram to pan up, down, right or left.

 

Select the Diagram Settings tab again and change the font back to "10". Also, click the "..." button to edit the labels.  This time, select the P_Default category and select _CASEID from the list of calculated fields. Clear anything that is in the editor, and click the "insert function" button.

(whew, that's a lot of steps at one time.  If you're not clear on one of them, they are the same as the initial steps you tried above, just different values and all combined into one)

 

Select the "Save and return" button.

 

Now click the Diagram report tab to show the diagram with your new labels.