Skip to Content
avatar image
Former Member

Chart Designer option in CE 7.1

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 29, 2009 at 09:29 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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 29, 2009 at 07:28 AM

    hi,

    look this thread

    IGS Pie Graph - colors issue

    how-to-change-the-charttype-and-dimension-on-runti

    compare the code with u rs

    bvr

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 10:21 AM

    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

    Add comment
    10|10000 characters needed characters exceeded