How to scale bubble size in Apose.Slides bubble chart?
Hi
Liyao,
I need to scale the size of the bubbles on the chart not the whole chart. In the MS PowerPoint there's an option under Format DataSeries>>Scale bubble size to %. I was wondering if Fusion Charts allow to set the value for that option.
Thank you!
Hi Liyao,
//Instantiate PresentationEx class that represents PPTX filePresentationEx pres = new PresentationEx();//Access first slideSlideEx sld = pres.Slides[0];// Add chart with default dataChartEx chart = sld.Shapes.AddChart(ChartTypeEx.Bubble , 0, 0, 500, 500);//Getting the chart data worksheetChartDataCellFactory fact = chart.ChartData.ChartDataCellFactory;//Take first chart seriesChartSeriesEx series = chart.ChartData.Series[0];ChartCellCollection col = series.BubbleSize;int scale=1;foreach (ChartDataCell cell in col){cell.Value = scale*5;scale += 1;}pres.Write(“D:\Aspose Data\Charts.pptx”);
That solution does not solve the issue. It only changes the value for the bubble size but the bubbles on the chart still look the same. In the attached printscreen (img1.jpg) you can see original chart and on img2.jpg you can see the same chart with the same bubblesize values but the bubblesize scale (under Format Data Series) had been set to 30%. It was done in MS PowerPoint, I’m trying to get the same effect from Aspose.Slides.
Thank you!
Hi Liyao,
Hello,
In your example you are modifying the data for the bubblesize, so on mouse over for the bubblechart in PowerPoint it will be showing incorrect data.
Thank youv
There's a BubbleScale Property available for Aspose.Cells.Charts, but it seems to be not available for Aspose.Slides.
Thank you.
Hi,
Attached please find a project with our code. We also experiencing problem with datalabel.TextFrame.Text method. This method causes PowerPoint 2007 to crash.
Steps to reproduce the issue:
- Run the code
- Open created PowerPoint file and go to ‘Save As’
- When click ‘Save’ button PowerPoint will through ‘Microsoft Office PowerPoint has stopped working’.
Hi Liyao,
The issues you have found earlier (filed as SLIDESNET-33405) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.