on 12-28-2005 8:47 AM
Hi,
I have created a web dynpro application. Now i want to embed a pie chart in that. For that I have inserted a business graphics child in a view and set the chart type as <b>pie</b>. Now to view the chart atleast some dummy value needs to be set, which is done in the wdDoInit() method of the corresponding view. Can anybody help me to write the code in the wdDoInit() method which will populate the pie chart.
Regards,
SM
Hi Soumen,
Try out his sample code:
<b>IPrivate<ur view name>.I<ur node element> categoryElement;
for (int i = 0; i < 10; i++) {
categoryElement = wdContext.create<ur node element>();
categoryElement.setCategoryText("C" + i);//
categoryElement.setSeries1Value(i);//
categoryElement.setSeries2Value(10 - i);//
wdContext.node<name>().addElement(categoryElement);</b>
Check on to this Link for additional information :
In the link goto page 11 to c the sample coding.
Hope this solves ur problem,
Regards,
Nagarajan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Soemen
This link could help u out.
http://help.sap.com/saphelp_nw04s/helpdata/en/13/7d8741bf56040de10000000a1550b0/frameset.htm
Enjoy!!
Mitesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.