Hi,guys
I'm writing a script that can automatically generate bar charts or another chart。When I use the following code to create a processor state pie chart, the state table will not be created on time and will be linked to the state pie chart,. How do I need to modify the code?
- Object dashview=views().find("active>Documents/Dashboard/1+/~");
- Object chartview=views().find("viewslibrary/Dashboard/State/StatePie");
- treenode chart=function_s(dashview,"createGraphWindow",chartview,1);
- Group group = getvarnode(chart,"replacements").subnodes["Objects"].value;
- Object pro = Model.find("Processor1");
- group.addMember(pro);