We are adding this general support, so you need our next beta or wait for 2021b release. Our next beta is likely to be available by the end of this week and it is called Beta9.
Here is the code and the worksheet
void size_and fill_from_col()
{
Worksheet wks = Project.ActiveLayer(); // get worksheet with group.dat data
DataRange dr;
dr.Add(wks, 0, "X");
dr.Add(wks, 1, "Y");
GraphPage gp;
gp.Create("scatter"); // create scatter graph
GraphLayer gl = gp.Layers(0);
int nPlot = gl.AddPlot(dr, IDM_PLOT_SCATTER); // add plot to layer
gl.Rescale();
DataPlot dp = gl.DataPlots(nPlot);
dp.SetProp("symbol.kind", 2);//circle
//from 1 col on the right of Y, col(C)
double vv;LT_evaluate("modifier(1)",&vv);
int nModi = (int)vv;
dp.SetProp("symbol.size", nModi);//size
dp.SetProp("symbol.SizeFactor", 30);
//from 2 col on the right of Y, col(D)
LT_evaluate("modifier(2)",&vv);
nModi = (int)vv;
dp.SetProp("symbol.interior", nModi);//1=close, 2=open
}
To find the LT property for data plot, from script window:
layer.plot.=;
layer.plot.symbol.=
CP