How to add image as marker symbol in scatter chart

hi,

How to add image as marker symbol in scatter chart .I try but not getting any solution. i am using aspose slides 16.8.0 license <span style=“color: rgb(26, 26, 26); font-family: “Segoe UI”; font-size: 10pt; background-color: rgb(255, 255, 255);”>version. please help me

Hi Pravin,

I have observed your requirements and suggest you to please try using following sample code to add a scatter chart with series marker filled with image.

public static void TestScatter()
{
var location = System.Reflection.Assembly.GetExecutingAssembly().Location;

//Open a presentation
Presentation pres = new Presentation();
IChart chart=pres.Slides[0].Shapes.AddChart(ChartType.ScatterWithMarkers, 10, 10, 400, 400);
//populating cycle
var serie = chart.ChartData.Series[0];
var wbk = chart.ChartData.ChartDataWorkbook;

serie.Marker.Format.Fill.FillType = FillType.Picture;
serie.Marker.Size = 20;
// Set the picture
System.Drawing.Image img = (System.Drawing.Image)new Bitmap(@“C:\Users\Public\Pictures\Sample Pictures\Tulips.jpg”);
IPPImage imgx = pres.Images.AddImage(img);
serie.Marker.Format.Fill.PictureFillFormat.Picture.Image = imgx;
pres.Save(Path.Combine(Path.GetDirectoryName(location), “Result2.pptx”), SaveFormat.Pptx);

}

Many Thanks,