# ScatterLineSeries

This series is visualized on the screen as a straight line connecting all data points. As all scatter series, this one also requires the RadCartesianChart to define two LinearAxis as vertical and horizontal axis.

* [Declaratively Defined Series](https://www.telerik.com/products/wpf/documentation/controls/radchartview/series/cartesianchart-series/line-series/scatterlineseries#declaratively-defined-series)
* [Properties](https://www.telerik.com/products/wpf/documentation/controls/radchartview/series/cartesianchart-series/line-series/scatterlineseries#properties)
* [Data Binding](https://www.telerik.com/products/wpf/documentation/controls/radchartview/series/cartesianchart-series/line-series/scatterlineseries#data-binding)
* [Styling the Series](https://www.telerik.com/products/wpf/documentation/controls/radchartview/series/cartesianchart-series/line-series/scatterlineseries#styling-the-series)

## Declaratively defined series

You can use the following definition to display a simple ScatterLineSeries

**Example 1: Declaring a ScatterLineSeries in XAML**

```XAML
<telerik:RadCartesianChart Palette="Windows8">
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:LinearAxis/>
    </telerik:RadCartesianChart.HorizontalAxis>
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis />
    </telerik:RadCartesianChart.VerticalAxis>
    <telerik:RadCartesianChart.Series>
        <telerik:ScatterLineSeries>
            
        </telerik:ScatterLineSeries>
    </telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
```

> caption ScatterLineSeries visual appearance

![Telerik UI for WPF RadChartView ScatterLineSeries visual appearance](https://www.telerik.com/products/wpf/documentation/assets/e7564fea1c96569ec124ea01fcfaae11/radchartview-series-scatterlineseries.png)

## Properties

* **YValueBinding**: A property of type **DataPointBinding** that gets or sets the property path that determines the Y value of the data point.
* **XValueBinding**: A property of type **DataPointBinding** that gets or sets the property path that determines the X value of the data point.
* **DashArray**: A property of type **DoubleCollection** that gets or sets the dash pattern applied to the scatter line series itself.
* **Stroke**: A property of type **Brush** that gets or sets the stroke of the scatter line series.
* **StrokeShapeStyle**: A property of type **Style** that gets or sets the style of the stroke of the scatter line series. The property accepts a style that targets an object of type Path.

## Data Binding

You can use the **YValueBinding** and **XValueBinding** properties of the ScatterLineSeries to bind the DataPoints’ properties to the properties from your view models.

**Example 2: Defining the view model**

```C#
public class PlotInfo
{
    public double XValue { get; set; }
    public double YValue { get; set; }
}

void SetDataContext()
{
    //.......
    this.DataContext = new ObservableCollection<PlotInfo>
    {
        new PlotInfo() { XValue = 0, YValue = 2},
    	//....
    };
}
```

**Example 3: Specify a ScatterLineSeries in XAML**

```XAML
<telerik:ScatterLineSeries ItemsSource="{Binding}" YValueBinding="YValue" XValueBinding="XValue"/>
```

> See the [Create Data-Bound Chart](https://www.telerik.com/products/wpf/documentation/controls/radchartview/populating-with-data/series-databinding) for more information on data binding in the RadChartView suite.

## Styling the Series

You can see how to style the scatter line series using different properties in the [ScatterLineSeries section](https://www.telerik.com/products/wpf/documentation/controls/radchartview/styles-and-templates/customizing-cartesianchart-series) of the Customizing CartesianChart Series help article.

Additionally, you can use the Palette property of the chart to change the colors of the ScatterLineSeries on a global scale. You can find more information about this feature in the [Palettes](https://www.telerik.com/products/wpf/documentation/controls/radchartview/features/palettes/introduction) section in our help documentation.

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/introduction)
* [Chart Series Overview](https://www.telerik.com/products/wpf/documentation/controls/radchartview/series/chartseries)
* [Create Data-Bound Chart](https://www.telerik.com/products/wpf/documentation/controls/radchartview/populating-with-data/series-databinding)
