We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the size and color of scatter series?

Platform: WinRT |
Control: SfChart |
Published Date: February 11, 2015 |
Last Revised Date: June 27, 2019


Scatter series plots an ellipse for each data point with definite size and fill. You may have to entail the variance in its size and color, especially when you have more than one series. This article describes how to change the size and color of scatter series.


Chart provides the APIs to the ScatterHeight and ScatterWidth properties for customizing the height and width of the scatter series. These values are pixel values and the default value for both properties is 20d. Also the Interior property is used to fill the ellipse as like other series.

These properties are also open for FastScatterBitmapSeries that you can use for high performance requirement. Here ScatterSeries is used.


<chart:ScatterSeries ScatterWidth="25" ScatterHeight="25" Label="Normal" Interior="DarkRed" XBindingPath="Year" YBindingPath="StandardRoom" ItemsSource="{Binding}"/>     
<chart:ScatterSeries ScatterWidth="60" ScatterHeight="60" Label="Double" Interior="Red" XBindingPath="Year" YBindingPath="DoubleRoom" ItemsSource="{Binding}"/>        
<chart:ScatterSeries ScatterWidth="40" ScatterHeight="40" Label="Luxury"  Interior="Blue" XBindingPath="Year" YBindingPath="ExecutiveRoom" ItemsSource="{Binding}"/>


(this.scatterChart.Series[0] as ScatterSeries).ScatterWidth = 25;
(this.scatterChart.Series[0] as ScatterSeries).ScatterHeight = 25;
(this.scatterChart.Series[1] as ScatterSeries).ScatterWidth = 60;
(this.scatterChart.Series[1] as ScatterSeries).ScatterHeight = 60;
(this.scatterChart.Series[2] as ScatterSeries).ScatterWidth = 40;
(this.scatterChart.Series[2] as ScatterSeries).ScatterHeight = 40;

The following screenshot demonstrates the ScatterSeries in custom sizes.


Scatter Chart with customized scatter segments in WPF

Figure 1: ScatterSeries in custom sizes.

You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon