Line chart

Display quantitative values over a continuous interval or time period by creating a line chart.

Details

Create a line chart by selecting a continuous interval or time period variable (x) along with a continuous variable (y). Add a categorical grouping value which will split and colour the lines accordingly. Customise your plot further by selecting the line type, alpha (opacity) and whether the data points should be visible.

Output

The example line chart below shows the mean January and June air temperatures for Sao Paolo between 1950 and 1960.

line_chart.gif

Parameters

Variable nameRequiredConstraintsDescription
xYesColumn Input. Integer, DecimalThe categories in this column will form the x-axis of the plot and a bar will be created for each category.
yYesColumn Input. Integer, DecimalThe values in this column will form the y-axis of the plot and a bar will be created for each value, corresponding to the respective x-axis parameter.
groupNoColumn Input. Text, Integer, Boolean, Date, DateTimeThe categories of this column will be used to group and colour the lines.
alphaYesDecimal between 0 and 1Dictate the transparency of the lines with 0 being completely transparent and 1 being completely opaque.
linetypeYesSelect valueSpecify the style of line for your line chart, defaulting to solid line. Choose from: twodash, longdash, dotted, dotdash and dashed.
pointsYesBooleanToggle the line chart data points on and off.

See Also

Updated on October 19, 2022

Was this article helpful?