[]
Gets or sets the number of points in each range.
Use this property to read the current range size configured for a histogram chart group.
double BinWidthValue { get; set; }
Property BinWidthValue As Double
worksheet.Range["A1:A6"].Value = new object[,] {
{"Score"},
{10},
{12},
{15},
{18},
{22}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.Histogram, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:A6"]);
IChartGroup chartGroup = chart.ChartGroups[0];
chartGroup.BinsType = BinsType.BinsTypeBinSize;
chartGroup.BinWidthValue = 3.0;
double binWidth = chartGroup.BinWidthValue;