//setting bubble size through an array.
(serie.EnteredDirectlyBubbles = new object[]{1,1,1,1,1,1,1,1,1,1};
(OR)
//setting bubble size through range value.
serie.Bubbles = worksheet.Range["B2:B10"]; |
int[] bubbleSize = { 1, 1, 1, 1, 1, 1, 1, 1, 1};
object[] yValue = new object[bubbleSize.Length];
for(int i = 0; i < bubbleSize.Length; i++)
{
yValue[i] = bubbleSize[i];
}
serie.SerieType = ExcelChartType.Bubble;
serie.EnteredDirectlyBubbles = yValue; |