How to Use the Line Chart


  1. In the filters panel, click and hold down the left mouse button on the filter representing the column that you want to color by.

    Comment: Coloring is also available in the Visualization Properties dialog. The color of marked items is changed under Edit > Document Properties.

  2. Drag the filter to the center of the visualization.

    Response: Drop targets appear in the middle of the visualization.

  3. Release the mouse button on the Color target.

    Response: The lines are colored with one color for each category in the selected column. If the lines have not been previously split by adding a Line By column, the lines will be split according to the color categories.

    Comment: To learn more about coloring in Spotfire, see Coloring Overview.

  1. Click and drag with the mouse around the part of the line you want to mark.

    Response: If one node in the line is included when you drag, that node will be marked. If two or more adjacent nodes are included, the line between the nodes will also be marked, but if there are nodes in between which are not included, only the separate nodes will be marked.

    Comment: You can select several nodes in different parts of the line by pressing Ctrl and click and drag with the mouse.

  1. Click once anywhere on the line.
    OR

  2. Press Shift and click and drag with the mouse over the line.

This is an example of how to use two columns on the Y-axis. Each column will be represented by a colored line.

  1. Click on the arrow next to the plus sign on the axis of your choice.

  2. Select a new column from the menu.
    Comment: A column can also be dragged and dropped from the filters panel.

  3. Select (Column Names) in the Color By drop down list.
    Response: The lines are colored with one color for each column.
    Comment: For more information on (Column Names), see the Non-Column Selections page.

  1. In the filters panel, click and hold down the left mouse button on the filter representing the column that you want to split by.

    Comment: The Line By setting is also available in the Properties dialog.

  2. Drag the filter to the center of the visualization.

    Response: Drop targets appear in the middle of the visualization.

  3. Release the mouse button on the Line By target.

    Response: The lines are split into one line for each category in the selected column, unless coloring has already split the lines in a more granular way.
    Comment: It is also possible to combine a Line By action with a Color By, so that the lines are split by one category and colored by another.

  1. Right-click on the visualization to display the pop-up menu.

  2. Select Properties.

  3. Go to the Lines & Curves page.

  4. Select the check box for any of the default lines or click on Add to define a new horizontal or vertical line.

    Comment: You can only add lines to the X-axis when it is in continuous mode. Right-click on the scale labels and select Continuous Scale from the pop-up menu.

  1. Right-click on the Y-axis and select Multiple Scales from the pop-up menu.

    Comment: By default, you will get one scale for each color that is defined under Color By.

  2. You can also go to the Y-axis page in the Visualization Properties dialog and click the Multiple scales radio button. This is also where you change the settings for the different scales and determine whether a certain scale should be located on the left or the right Y-axis.

    Comment: If you are using values from different columns on the various scales, you can also use drag and drop to move columns from one side to another.

  1. Right-click on the visualization to display the pop-up menu.

  2. Select Properties.

  3. Go to the Lines & Curves page.

  4. Click on Add and select a suitable curve fit from the drop-down menu..

    Comment: You can select from a number of predefined curve fits, or define your own curve using Curve Draw. See Curve Fit Models for more information about the different options.

  5. Once the curve has been created, you can change its settings on the Lines & Curves page. Some of the curve settings are also available from the pop-up menu in the visualization.

  1. Right-click in the visualization to display the pop-up menu.

  2. Select Properties.

  3. Go to the Error Bars page.

  4. In the Visible error bars list, select the column or measure to use, and select the check box next to it.

    Response: The settings for the selected column or measure will be displayed in the lower part of the dialog.

    Comment: Only columns and measures with numerical values are listed.

  5. To define an upper error, choose a column or measure in the Upper error column selector. To define a lower error, choose a column or measure in the Lower error column selector.

    Response: The defined error bars appear in the visualization.

    Comment: Error bars can only be used on numerical values.

    Note: Error bars cannot be added to line charts with percentage scaling. Therefore, line charts using individual scaling for each line cannot be combined with error bars.

  1. Click on the New Line Chart button on the toolbar, line_new_line_chart_button.png.

    Comment: You can also select Insert > New Visualization > Line Chart from the menu.

    Response: A first attempt to set up a suitable line chart is made by the application.

  2. Adjust the line chart to display the categories and measures of your choice.

    Comment: For more information about how to change what to show on the two axes, see Column Selectors.

See also:

What is a Line Chart?

Line Chart Properties