Adding a line or a curve to a visualization
Some of the visualization types can include additional information in reference lines or several different types of curves. Lines and curves can be added in the visualization properties for each applicable visualization.
About this task
Before you begin
Procedure
Results

Note that most curves can only be completely configured using the installed client.

Click Duplicate layer to create a duplicate of the curve. This can be particularly useful if you want to add one static curve that is calculated on the whole data set (select the Update manually check box in the curve configuration settings) and another one that is changed upon filtering (default).
On the Appearance tab, you can change the appearance of the selected line or curve. You can change the color, style, width, and transparency of lines and curves, as well as the color, style, size, and transparency of points, and select whether to place the line, curve or point in the foreground or background of the visualization. You can also determine the Transparency of the selected line, curve or point, that is, the degree to which the markers can be seen through it. The transparency is strongly connected to the color.
Labels and tooltips can be handled on a separate card in the Configuration tab of the visualization properties panel.
In the visualization properties dialog, you instead select the curve in the Lines & Curves page and click Edit to edit the curve configuration:

Select a curve and click More, and then select Duplicate to duplicate the curve.
Click More and select Export curve fit result to export the curve fit result for the selected curve to a text file.
Under Settings, you can change the appearance of the selected line or curve.

For Line from data table and Curve from data table you can make columns from the additional data table available here while setting up the line or curve using the Columns for label and tooltip field in the configuration dialog for the line or curve.
The Include in axis range setting sets the automatic zooming so that the line, curve or point is always shown, even if it lies far from the currently filtered values.
Horizontal/Vertical line
Lines can currently be shown in the bar chart, line chart, combination chart, scatter plot and box plot visualizations.
Procedure
Curve draw
This option is used to draw a curve based on a mathematical expression.
Procedure
Curve from data table
This option is used to specify a custom curve expression which makes use of parameters available in a specified data table.
Procedure
Line from column values
Use this alternative to show lines based on X and Y coordinates that already exist in two columns of your analysis. For example, coordinate values could be calculated from the input data using a statistical calculation in a data function and the output result could be presented as coordinate values for a curve.
About this task

Procedure
- In the Line from column values dialog, select the data table with the coordinate values.
- Under X-values column, select the column in the data table that holds the X-axis coordinate values. (In a bar chart, this refers to the category axis coordinate values.)
- Under Y-values column, select the column in the data table that holds the Y-axis coordinate values. (In a bar chart, this refers to the value axis coordinate values.)
- Optionally, under Sorted by column, select a column to sort the values by. If none is selected, the line is drawn in the order of appearance of all values.
- Under Empty values, select whether to Ignore (skip) empty values and continue the line using the next coordinate pair, or to Split curve at empty values and split the curve whenever an empty value is encountered.
Line from data table
Use this alternative if you want to add lines to a visualization based on an existing data table in your analysis.
About this task
A simple example is if you have a data table with number of sales for two different products on different dates, you can also have a data table with the minimum acceptable number of sales on any given day for the different products. If the data with number of sales is set as a visualization, you can add lines from the minimum number of sales data table. This gives you an easy way of seeing whether any products have fewer sales than you expect.
Procedure
- In the Line from data table dialog, select the data table with the line positions.
- Select the Column in the data table from which you want to create your reference line.
- Optionally, under Columns for label and tooltip, you can select columns from the data table selected above that also should be used in the label and/or tooltip for the curve.