[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartGroup.BinWidthValue

BinWidthValue Property

BinWidthValue

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.

Declaration
double BinWidthValue { get; set; }
Property BinWidthValue As Double
Examples
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;