Blazor HiLo Chart is similar to OHLC, but shows the high and low values of the stock over the given period of time.
Allows you to plot multiple series in a single chart to compare different data sets. Enabling legend and tooltip gives more information about the individual series.
Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.
Use multiple axes to plot different data sets that widely vary from one other.
Customize the color and thickness of the Blazor HiLo Chart using built-in APIs.
Easily get started with Blazor HiLo Chart using a few simple lines of C# code, as demonstrated below. Also explore our Blazor HiLo Chart example that shows you how to render and configure the chart.
@using Syncfusion.Blazor.Charts
<SfChart>
<ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.Category"/>
<ChartSeriesCollection>
<ChartSeries DataSource="@StockDetails" XName="X" High="High" Low="Low" Type="ChartSeriesType.Hilo">
</ChartSeries>
</ChartSeriesCollection>
</SfChart>
@code{
public class Data
{
public string X { get; set; }
public double Y { get; set; }
public double High { get; set; }
public double Low { get; set; }
}
public List<Data> StockDetails = new List<Data> {
new Data{ X= "Jan", Low= 87, High= 200 },
new Data{ X= "Feb", Low= 45, High= 135 },
new Data{ X= "Mar", Low= 19, High= 85 },
new Data{ X= "Apr", Low= 31, High= 108 },
new Data{ X= "May", Low= 27, High= 80 },
new Data{ X= "June",Low= 84, High= 130 },
new Data{ X= "Jul", Low= 77, High=150 },
new Data{ X= "Aug", Low= 54, High= 125 },
new Data{ X= "Sep", Low= 60, High= 155 },
new Data{ X= "Oct", Low= 60, High= 180 },
new Data{ X= "Nov", Low= 88, High= 180 },
new Data{ X= "Dec", Low= 84, High= 230 }
};
}