The chart depicts trends, seasonal patterns, dynamics, and relationships between multiple measures at a the same point in time.
Multiple measures can be drawn using different lines on the same chart. For example, the basic sales targets, optimistic sales targets, and actual sales can be represented as a dotted, dashed, and solid line, respectively.
Dimension. You can specify only one field here. This dimension is usually a date. If this is the case, make sure to specify the Date data type for this field in the dataset. This is required for correct sorting and signature display. For better visualization, you can group dates into weeks, months, and years. For more information, see Field settings.
Y
Measure. You can specify multiple measures. If you add more than one measure to a section, the Colors section will contain a dimension named Measure Names.
Y2
Measure. Use it to add a second Y axis to a chart. You can specify multiple measures. If you add more than one measure to a section, the Colors section will contain a dimension named Measure Names.
Colors
Measure Names dimension or field. Affects the color of lines. To delete Measure Names, click the cross icon or remove measures from the Y axis.
Forms
Measure Names dimension or field. Affects the shape and size of lines. You can select the line shape from presets. You can select the line size from the list, or enter manually: from 1 to 12 pixels.
Sorting
Dimension or measure. Affects the sorting of the X axis. Sorting only applies to dimensions used when building a chart. The sorting direction is marked with an icon next to the field: for ascending or for descending. To change the sorting direction, click the icon.
Labels
Measure. Displays measure values on the chart. If multiple measures are added to the Y or Y2 section, drag Measure Values to this section. Markup functions are supported. For String type fields, you can configure using basic Markdown in DataLens On-premises syntax: click the icon before the field name and enable Markdown.
Split
Dimension. Splits a chart horizontally by the selected dimension's values. The maximum number of splits per chart is 25.
Open the workbook, click Create in the top-right corner, and select the object you need.
Follow the guide from step 4.
Go to the DataLens home page.
In the left-hand panel, select Charts.
Click Create chart → Chart.
At the top left, click Select dataset and specify the dataset to visualize. If you do not have a dataset, create one.
Select Line chart as your chart type.
Drag a dimension from the dataset to the X section. The values will appear in the lower part of the chart on the X axis.
Drag one or more measures from the dataset to the Y section. The values will be displayed as a chart on the Y axis.
Drag one or more measures from the dataset to the Y2 section. The values will be displayed as a chart on the second Y axis.
Drag a dimension to the Color section. The measure value will be divided by color depending on the dimension you select.
Drag the Measure Names dimension or field to the Forms section. The measure value will be divided by line shape and width depending on the dimension you select. Set up line sizes and shapes.
Drag a dimension or measure from the dataset to the Filters section. The field can be empty. In this case, no filters are applied.
Scale. The line chart data perception depends on its proportions.
The lines may look steeper (rising or falling sharply) if the chart is compressed over a small segment. If the chart covers a longer segment, the lines appear smoother because the chart is stretched out.
Example
Steep
Smoother
For a closer look at the chart, make the axis longer.
Labels. Use labels to display measure values on the chart. To display values on the chart, drag a measure from the dataset to the Labels section.
Chart example
If multiple measures are added to the Y or Y2 section, drag Measure Values to this section.
Chart example
You can also sign only the last value on the chart by adding a calculated field with the MAX function.
Labels. If the category values are too verbose, make them shorter so that the chart labels look neater.
You can use string functions in calculated fields or the CASE conditional statements.
Colors. For multiple measures, choose distinguishable and contrasting colors. Using more than 3-5 colors can make the chart harder to read.
To highlight one measure, select the brightest color for it.
Disable the Sum in tooltips option in the chart settings if the chart lines represent different entities. For example, the sales amount and the number of customers.
Splitting. You can split a chart by dimension into several small, easy-to-compare charts. To do this, drag a dimension from the dataset to the Split section.
Chart example
For better visualization, use formatting in the dimension and measure setup window.
Check the data type for correct sorting and comparison of values. Specify additional parameters.
For example, the format and units for numeric data and the number of decimal places for fractions.