[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartGroup.BinsCountValue

BinsCountValue Property

BinsCountValue

Gets or sets the number of bins in the histogram chart.

Use this property to read the current bin count configured for a histogram chart group.

Declaration
long BinsCountValue { get; set; }
Property BinsCountValue As Long
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.BinsTypeBinCount;
chartGroup.BinsCountValue = 4;
long binsCount = chartGroup.BinsCountValue;