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