# Candlestick Stock Chart

A **Candlestick** chart shows data for the movement of the price of a financial unit. It consists of a bar (the candle), representing the open and close values, and vertical lines, the candlesticks, which illustrate the highest and lowest values.

> caption Candlestick series in a stock chart.

This article assumes you are familiar with the [stock chart basics](https://www.telerik.com/blazor-ui/documentation/components/stockchart/overview) and [data binding](https://www.telerik.com/blazor-ui/documentation/components/stockchart/data-bind).

To add a `Candlestick` chart to a stock chart component::

1. set the `DateField` property of the `TelerikStockChart` to the corresponding field in the model that carry the value.
2. add a `StockChartSeries` to the `StockChartSeriesItems` collection.
3. set its `Type` property to `StockChartSeriesType.Candlestick`.
4. provide a data model collection to its `Data` property.
5. set the `OpenField`, `ClosedField`, `HighField` and `LowField` properties to the corresponding fields in the model that carry the values.

> caption Candlestick chart that shows the deviation of stock prices.

<demo metaUrl="client/stockchart/types/candlestick/example-1/" height="520"></demo>

## Candlestick Specific Appearance Settings

### DownColor

Set the color - a valid CSS, RGB, RGBA color - of the series when the `OpenField` is greater than the `CloseField` by setting the `DownColor` property of the `StockChartSeries`. This can be passed through the data model and bound to the `DownColorField`.

### Color Field

Column, OHLC and Candlestick charts can take the color of the series item from the `ColorField` of the data source. You can pass a valid CSS color (for example, `#abcdef`, `#f00`, or `blue`).

### Gap and Spacing

You can control the distance between the categories that cluster a data point from each series. To do this, use the `Gap` property of the series. It is the distance between categories expressed as a percentage of the bar width.

To set the distance between the bars of different series in the same category, use the `Spacing` property. It is the space between the series items in one series category as a proportion of the width of a single series item.

To create overlap, set negative values.

You can configure the values of `Gap` and `Spacing` for the whole chart in the first series and they are applied for all categories and series items.

### Customize Chart Elements - Nested Tags Settings

When configuring nested properties and child elements in your chart, the inner tags will contain their parent tag name and add specifics to its end. In general the structure of such nested tags will be `<StockChart*Category**Specifics*>` where the Category can be one of the following:

* CategoryAxis
* ChartArea
* Legend
* Navigator
* PlotArea
* SeriesItems
* Title
* Tooltip
* ValueAxis
* and others

> tip To customize the chart, look for nested tags and their properties - the inner tags will contain their parent tag name and add specifics to its end. For example, the `StockChartSeries` tag has a `StockChartSeriesTooltip` tag that exposes configuration options and more child tags.

You can customize all aspects of the stock chart by using the settings provided by the nested tags.

For example:

`StockChartCategoryAxes` > `StockChartCategoryAxis` > `StockChartCategoryAxisLabels` tags

This approach can be used with all tags that are applicable for the Chart type.
