Adding Plot to Layer with Bubble Chart Issue

Version: 2022

Type: Features

Category: Programming

Subcategory: Origin C

Jira: ORG-24428

For example:

Make a Bubble plot and run following code to add scatter plot.

void addp(string strBk = "GAData")
	WorksheetPage wp = Project.WorksheetPages(strBk);
	Worksheet wks = wp.Layers();
	if(wks) {
		DataRange dr;
		dr.Add(wks, 0, "X");
		dr.Add(wks, 1, "Y");
		GraphLayer gl = Project.ActiveLayer();
		gl.AddPlot(dr, IDM_PLOT_SCATTER,0);