# Styling

Sparklines for WinForms allows you to customize the appearance of the control, such as color of axis, color of data points, color of the series and more.

## Content

We can customize the appearance of the Sparkline control, such as the color of the axis, color of the data points and color of the series, by using the Styles property provided by the C1Sparkline class, which returns an object of the SparklineTheme class. To customize the color of the horizontal axis and the series, use the [AxisColor](/componentone/docs/win/online-sparklines/) and [SeriesColor](/componentone/docs/win/online-sparklines/) properties provided by the <span data-popup-content="This class is available in \u003ca href=\u0022C1.Win.Sparkline.6~C1.Win.Sparkline.SparklineTheme.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/docs/win/online-sparklines/\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="SparklineTheme" data-popup-theme="ui-tooltip-green qtip-green">SparklineTheme</span> class.

Additionally, you can change the distance between two bars of a column/winloss sparkline with the help of the [BarDistance](/componentone/docs/win/online-sparklines/) property. The [LineWeight](/componentone/docs/win/online-sparklines/) property can be used to change the thickness of the sparkline lines in a line sparkline by specifying the desired line weight in points.

The following image shows how Sparkline appears after applying styles.

![Colored sparkline](https://cdn.mescius.io/document-site-files/images/adac4adb-2280-4c58-a35f-c4af030999c6/images/sparkline-styles.png)

The following code example shows how you can apply styles to the Sparkline control.

```vbnet
c1Sparkline1.Styles.AxisColor = Color.Orange
    c1Sparkline1.Styles.BarDistance = 30
    c1Sparkline1.Styles.SeriesColor = Color.LightPink
    c1Sparkline1.Styles.LineWeight = 2
    c1Sparkline1.Styles.FirstMarkerColor = Color.Yellow
```

```csharp
//Sets the color of the axis
c1Sparkline1.Styles.AxisColor = Color.Orange;
//Sets the distance between two bars of a bar sparkline
c1Sparkline1.Styles.BarDistance = 30;
//Sets the color of the sparkline
c1Sparkline1.Styles.SeriesColor = Color.LightPink;
//Sets the line weight
c1Sparkline1.Styles.LineWeight = 2;
//Sets the color of the first data point
c1Sparkline1.Styles.FirstMarkerColor = Color.Yellow;
```