Update XYDataRange Tree
BOOL UpdateXYDataRangeTree( TreeNode & tr )
TRUE if successful, otherwise FALSE
EX1
void DataPlot_UpdateXYDataRangeTree_ex1() { Worksheet wks; wks.Create("origin"); Dataset ds1(wks,0); Dataset ds2(wks,1); ds1.Data(1,20,1); ds2.Normal(20); GraphPage gp; gp.Create("origin"); GraphLayer gl(gp.GetName(), 0); gl.AddPlot(wks); if(gl) { // Get the first data plot in the layer: DataPlot dp = gl.DataPlots(0); Tree tr; dp.UpdateXYDataRangeTree(tr); out_tree(tr); } }
origin.h