on 04-29-2009 6:34 AM
HI
i have written this code to have different color for each series in the pie chart ,
and iam working on CE 7.1 , when i have created Business Graphic UI element ,
on right click of the UI element there is no Start Chart Designer option available ,
there are import custimizing and export customizing , option
can any one please help in coding the application in CE 7.1 version .
Context Node
categorydesc1
series1
series2
final String[] color = {"RGB(0,0,0)", "RGB(0,255,0)", "RGB(0,0,255)",
"RGB(0,255,255)","RGB(255,0,0)", "RGB(255,0,255)",
"RGB(255,255,0)","RGB(255,255,255)"};
final IWDBusinessGraphics gfx = (IWDBusinessGraphics) view.getElement("BusinessGraphic");
final StringBuffer cuString = new StringBuffer(1024);
cuString.append("<?xml version=\"1.0\" encoding=\"ascii\"?>");
// cuString.append("<C:\"Documents and Settings\"muraredd\"My Documents\"Test1.xml>");
//
// cuString.append("<10>");
// cuString.append("<50>");
// cuString.append("<70>");
cuString.append("<SAPChartCustomizing>");
cuString.append("<Values>");
IPrivateDemoProCompView.ITestCategoryElement categoryElement1 = null;
for (int i = 0; i < 3; i++) {
categoryElement1 = wdContext.nodeTestCategory().createTestCategoryElement();
cuString.append("<Point id=");
cuString.append(categoryElement1.getCategoryDesc1());
cuString.append(">");
cuString.append("<Color>");
cuString.append(color[i%4]);
cuString.append("</Color>");
cuString.append("</Point>");
}
// cuString.append("<10>");
// cuString.append("<50>");
// cuString.append("<70>");
// cuString.append("<C:\"Documents and Settings\"muraredd\"My Documents\"Test1.xml>");
cuString.append("</Values>");
cuString.append("</SAPChartCustomizing>");
gfx.setDirectCustomizing(cuString.toString());
its throwing null pointer on the above line .
any one can help me onthis
Edited by: murali krishna reddy on Apr 29, 2009 8:32 AM
Hi Murali,
In NWDS 7.1, for Business Graphics UI Element, there is a context menu option Edit to open the Chart Designer.
Kind Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
i have created 1 categories and 3 simple series for Business Graphics and using Pie chart in NWDS 7.1
when i try to customize the series colors inside the pie chart , whole pie chart is getting reflected
with the same color , but i need 3 different colors for 3 different series , i tries this using
chart designer but this is not helping out .
Can any one help me ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.