Groups dataplots in layer.
BOOL GroupPlots( int nIndexStart, int nIndexEnd = -1 )
TRUE for success, otherwise FALSE.
EX1
//Draw two dataplot, group them and update the legend. void GraphLayer_GroupPlots_ex1() { Worksheet wks1; wks1.Create("origin"); Dataset ds1(wks1,0); Dataset ds2(wks1,1); ds1.Data(1,20,1); ds2.Normal(20); GraphPage gp; gp.Create("origin"); GraphLayer gl(gp.GetName(), 0); gl.AddPlot(wks1); Worksheet wks2; wks2.Create("origin"); Dataset ds3(wks2,0); Dataset ds4(wks2,1); ds3.Data(1,20,1); ds4.Data(2,40,2); gl.AddPlot(wks2); gl.GroupPlots(0); legend_update(gl, ALM_CUSTOM, true, true, "@D"); gp.SetShow(); }
origin.h