New to Kendo UI for Vue? Start a free 30-day trial


Line charts and Vertical Line charts are categorical charts which display continuous data as lines that pass through points defined by the values of their items.

Line charts are useful for rendering trends over time or at equal time intervals, and for comparing sets of similar data.

Vertical Line charts are functionally equivalent to Line charts, but transpose the axesthe category axis is vertical and the value axis is horizontal.

Basic Usage

The following example demonstrates the Line chart in action.

View Source
Change Theme:

Vertical Line Chart

The following example demonstrates the Vertical Line Chart in action.

View Source
Change Theme:

Choosing Line over Scatter Line Charts

Line charts and Scatter Line charts look visually the same because the data points in the plot area are connected with lines. However, they significantly differ in the way each series type plots the data it presents in the plot area.

In Line charts, the vertical axis is a value axis and the horizontal axis is a category axis. This means that the category axis displays groupings of data and not numerical values. That is why the data points of the Line charts are distributed as evenly-spaced coordinates.

The fundamental differences between the two series types make each a more suitable solution in particular scenarios. Line charts are better to use when your project requires you to:

  • Use text labels along the horizontal axis.
  • Use a few numerical labels along the horizontal axis.
  • Use time scales along the horizontal axis.

Line Style

Line charts enable you to render the lines between the points in different styles. To set the appearance of the lines, use the style option which provides the following available styles:

  • NormalThe default style which produces a straight line between data points.
  • StepThe style renders the connection between the data points through vertical and horizontal lines. It is suitable for indicating that the value is constant between the changes.
  • SmoothThe style causes the Line chart to display a fitted curve through data points. It is suitable displaying data with a curve and for connecting the points with smooth instead of straight lines.

The following example demonstrates how to use the different types of lines.

View Source
Change Theme: