cancel
Showing results for 
Search instead for 
Did you mean: 

graphs using business graphics

Former Member
0 Kudos

Hi,

I have generated graphs using business graphics. Now, I need to genrate multiple graphs say 11 at a time and that too dynamically...

Please help me in solving how to generate graphs dynamically and should be able to generate multiple graphs at a time....

Thanks,

Gaurav Bhardwaj

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197348
Active Contributor
0 Kudos

Hi Gaurav,

To create business graphics dynamically, you can do like this

[if(firstTime){
//Create as many as you want    	
IWDBusinessGraphics bg1 = (IWDBusinessGraphics) view.createElement(IWDBusinessGraphics.class,"bg1");	
// set type and other properties
bg1.setChartType(WDBusinessGraphicsType.BARS);
    }

But this is for first time when you open the view. If you want to change the number of graphs displayed at runtime. Access the graphs runtime and set visibility

//access them again 
IWDBusinessGraphics bg1_mdfy =(IWDBusinessGraphics) view.getElement("bg1"); 
//if you want to hide
bg1_mdfy.setVisible(WDVisibility.NONE);

regards,

Siva