This article explains how to create a histogram chart in Excel using XlsIO.
What is a histogram chart?
Histogram shows the frequencies within a distribution. Each column of the chart is called a bin, which can be changed further to analyze the data.
Histogram chart created using XlsIO
To create a histogram chart in Excel using XlsIO, you need to do the following steps.
Steps to create histogram chart
Create a chart object by calling the worksheet.Charts.Add method and specify the chart type to ExcelChartType.Histogram enum value.
Set a range of data from the worksheet to chart’s DataRange property. To plot the series values in column and categories in row, set chart’s IsSeriesInRows property to false.
Add the basic elements like chart title, data labels and legend with the below list of properties.
Applicable properties of histogram chart
Below is the list of other properties that is applicable for a histogram chart.
The following C#/ VB.NET complete code snippet shows the creation of histogram chart using XlsIO.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|