on 02-19-2006 7:05 PM
Hello all,
I'm displaying an IGS Pie graph in a Web-Dynpro application.
Since in a pie graph the different parts of the pie are of the same series in different elements,
I couldn't find a way to set different colors to them using the chart designer.
When choosing a specific color, all the parts appear in the same color.
When choosing an automatic color, they appear in different color,
but then I don't have control over the color.
Is there a way to define the pie so that every part is of a different series?
Otherwise, Is there a way (by using the chart designer or by code)
To achieve an IGS pie graph with the colors of my choice?
Thanks ahead for any help,
Yoav.
Hi Yoav,
Are you using Series or SimpeSeries?
Lets say you have following context structure:
<i>
+ Categories
CategoryText
CategoryID
Value
</i>
Under Pie chart you have one category whichs description is bound to Categories.CategoryText. One series (pointSource bound to Categories), one Point (valueSource bound to Categories AND customizingID bound Categories.CategoryText) and one value (value bound to Categories.Series1Value).
After that in wdDoModifyView put something like:
if (firstTime) {
final IWDBusinessGraphics gfx = (IWDBusinessGraphics) view.getElement("BusinessGraphic");
final StringBuffer cuString = new StringBuffer(1024);
cuString.append("<?xml version="1.0" encoding="ascii"?>");
cuString.append("<SAPChartCustomizing>");
cuString.append("<Values>");
IPrivateSimpleGraphicsView.ICategoriesNode nodeCategories = wdContext.nodeCategories();
int size = nodeCategories.size();
for (int aIndex = 0; aIndex < size; ++aIndex) {
IPrivateSimpleGraphicsView.ICategoriesElement catElement = nodeCategories.getCategoriesElementAt(aIndex);
cuString.append("<Point id="");
cuString.append( catElement.getCategoryText() );
cuString.append("">");
cuString.append("<Color>");
cuString.append(COLORS[aIndex%4]);
cuString.append("</Color>");
cuString.append("</Point>");
}
cuString.append("</Values>");
cuString.append("</SAPChartCustomizing>");
gfx.setDirectCustomizing( cuString.toString() );
}
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Yoav,
here's the link to documentation about editing with the Chart Designer (WDA):
http://help.sap.com/saphelp_nw04s/helpdata/en/42/e52ff3e8733ee4e10000000a1553f7/frameset.htm
BusinessGraphics (WDA):
http://help.sap.com/saphelp_nw04s/helpdata/en/ed/258841a79f1609e10000000a155106/frameset.htm
BusinessGraphics (WDJ):
http://help.sap.com/saphelp_nw2004s/helpdata/en/3e/c450c4cf2f6d418204afeea17655d3/frameset.htm
Regards, Heidi
Hi Yoav,
I have only XSD file for this. Seems like even in SAP there is no such documentation (checked on http://graphics:1080/2004/ce.htm ).
Mail me to rastchinskym AT mail.ru and I can send you XSD file if necessary.
Best regards, Maksim Rashchynski.
Anyone?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
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.