# Line Charts

Line Charts are suitable for displaying quantitative data by using continuous lines passing through points defined by the values of their items.

* [Demo page for the Line Chart](https://demos.telerik.com/kendo-ui/line-charts/index)

## Getting Started

You can use the Line Chart to render a trend over time and compare sets of similar data.

To create a Line series, use `line` in the `series` configuration.

* [Setting the orientation](https://www.telerik.com/kendo-jquery-ui/documentation/controls/charts/chart-types/line-charts#setting-the-orientation)
* [Configuring the line styles](https://www.telerik.com/kendo-jquery-ui/documentation/controls/charts/chart-types/line-charts#configuring-the-line-styles)
* [Setting the line type](https://www.telerik.com/kendo-jquery-ui/documentation/controls/charts/chart-types/line-charts#setting-the-line-type)

## Setting the Orientation

You can change the orientation of the Line Chart by setting the series type to `verticalLine`.

```
$("#chart").kendoChart({
    title: {
        text: "Internet Users"
    },
    legend: {
        position: "bottom"
    },
    seriesDefaults: {
        type: "line"
    },
    series: [{
        name: "World",
        data: [15.7, 16.7, 20, 23.5, 26.6]
    }, {
        name: "United States",
        data: [67.96, 68.93, 75, 74, 78]
    }],
    valueAxis: {
        labels: {
            format: "{0}%"
        }
    },
    categoryAxis: {
        categories: [2005, 2006, 2007, 2008, 2009]
    }
});
```

![Kendo UI for jQuery Line Chart Overview](https://www.telerik.com/kendo-jquery-ui/documentation/assets/a295f869dbb26158a4b3174a88f8a12c/chart-line-overview.png)

## Configuring the Line Styles

You can render the lines between the points by setting different styles through the [`style`](https://www.telerik.com/kendo-jquery-ui/documentation/api/dataviz/chart#configuration-series.style) option.

The supported line styles are:

* Normal—This is the default style. It produces a straight line between data points.
* Step—This style renders the connection between data points through vertical and horizontal lines. It is suitable for indicating that the value is constant between the changes.
* Smooth—This style causes the Line Chart to display a fitted curve through data points. It is suitable when the data requires to be displayed with a curve, or when you wish to connect the points with smooth instead of straight lines.

  ![Kendo UI for jQuery Step-line Line Chart example](https://www.telerik.com/kendo-jquery-ui/documentation/assets/dbf1ab7a0f0c1d8b323b2d4089d35238/chart-step-line.png)

The following image displays a smooth-line Line Chart.

![Kendo UI for jQuery Smooth-line Line Chart example](https://www.telerik.com/kendo-jquery-ui/documentation/assets/b6f326c86f4eb75c58680ac31cbf6d6a/chart-smooth-line.png)

## Setting the Line Type

The default line type of a Line Chart is solid. You can implement the dash line styles by using the `dashType` option.

series: \[{
name: "World",
data: \[15.7, 16.7, 20, 23.5, 26.6],
dashType: "dot"
}]

![Kendo UI for jQuery Line Chart with a dash type of line](https://www.telerik.com/kendo-jquery-ui/documentation/assets/7e671f9dcd596bd405d0f7c1835ca988/chart-dash-types.png)

## See Also

* [Basic Usage of the Line Chart (Demo)](https://demos.telerik.com/kendo-ui/line-charts/index)
* [JavaScript API Reference of the Chart](https://www.telerik.com/kendo-jquery-ui/documentation/api/dataviz/ui/chart)
