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
Syncfusion Feedback


Overview

Blazor Stock Chart or Candlestick chart is mostly used in the stock market to represent the high, low, open, and close values of the stock. Supports interactive trackball, crosshair feature to track information on data.


Hollow and filled Candlestick Chart

A filled candlestick is drawn when the stock closes lower than the opening price, representing the open price at the top and close price at the bottom.


Multi series

Use multi-series Candlestick to represent two or more data set, each data set representing high, low, open, and close values.


Combination for Candlestick with another chart

Use line and column charts along with candle chart to show the close and volume of the data.


Multiple pane

Allows you to render the stock price in different panes of the chart. Visualize the candle values in one pane and the volume in a different pane.


Candle chart with range selector

The range selector along with the financial chart can be used filter and navigate through a large number of data points.

Blazor Candle Chart with Range selector


Bull and bear

Customizable bull and bear colors.


Blazor Stock Chart Code Example

Easily get started with Blazor Stock Chart using a few simple lines of C# code, as demonstrated below. Also explore our Blazor Stock Chart Example that shows you how to render and configure the chart.

@using Syncfusion.Blazor.Charts

<SfStockChart Title="AAPL Historical">
    <StockChartSeriesCollection>
        <StockChartSeries DataSource="@StockDetails" Type="ChartSeriesType.Candle" XName="Date" High="High" Low="Low" Open="Open" Close="Close" Volume="Volume"></StockChartSeries>
    </StockChartSeriesCollection>
</SfStockChart>
@code {

    public class ChartData
    {
        public DateTime Date;
        public Double Open;
        public Double Low;
        public Double Close;
        public Double High;
        public Double Volume;
    }

    public List<ChartData> StockDetails = new List<ChartData>
{
        new ChartData { Date = new DateTime(2012, 04, 02), Open= 85.9757, High = 90.6657,Low = 85.7685, Close = 90.5257,Volume = 660187068},
        new ChartData { Date = new DateTime(2012, 04, 09), Open= 89.4471, High = 92,Low = 86.2157, Close = 86.4614,Volume = 912634864},
        new ChartData { Date = new DateTime(2012, 04, 16), Open= 87.1514, High = 88.6071,Low = 81.4885, Close = 81.8543,Volume = 1221746066},
        new ChartData { Date = new DateTime(2012, 04, 23), Open= 81.5157, High = 88.2857,Low = 79.2857, Close = 86.1428,Volume = 965935749},
        new ChartData { Date = new DateTime(2012, 04, 30), Open= 85.4, High =  85.4857,Low = 80.7385, Close = 80.75,Volume = 615249365},
        new ChartData { Date = new DateTime(2012, 05, 07), Open= 80.2143, High = 82.2685,Low = 79.8185, Close = 80.9585,Volume = 541742692},
        new ChartData { Date = new DateTime(2012, 05, 14), Open= 80.3671, High = 81.0728,Low = 74.5971, Close = 75.7685,Volume = 708126233},
        new ChartData { Date = new DateTime(2012, 05, 21), Open= 76.3571, High = 82.3571,Low = 76.2928, Close = 80.3271,Volume = 682076215},
        new ChartData { Date = new DateTime(2012, 05, 28), Open= 81.5571, High = 83.0714,Low = 80.0743, Close = 80.1414,Volume = 480059584}
   };
}

Not sure how to create your first Blazor Stock chart? Our documentation can help.


Blazor Components – 85+ UI and DataViz Components

Scroll up icon