cancel
Showing results for 
Search instead for 
Did you mean: 

BusinessGraphics problem

Former Member
0 Kudos

Hi all

I've created a businessgraphics in my web dynpro view.

Everything is ok but range.

When I put a value like 80, the graphics show the minimum is 79 and maximum is 81.

I want to make minimum is 0, and maximum is 100.

In the wdDoInit() of view Controller,my code is like this


categoryElement = wdContext.createCategoriesElement();
categoryElement.setCategoryText("AOI");
categoryElement.setSeries1Value(new BigDecimal(100*0.8));

Does anyone know how to do this? thanks.

Allen.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Allen,

i think this setting is available in the Chart Designer for the "Value axis" entry. There you can set the Minimum/Maximum calculation at UserDefined and then you can set the minimum value at 0 and maximum value at 100.

Alternative you can create a XML Description of the BusinessGraphics dynamicaly and set this XML with function BusinessGraphics.setDirectCustomizing(xmlsource) in wdDoModifyView.

Regards,

Markus

Former Member
0 Kudos

Thanks Markus.

That is exactly what I want.

Allen.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

1.create a node name called bg under that u create one attribute name is simple series((Datatype -->Double)

2. insert the Business grphics UI

3.insert categary and simple series

4. map the corresponding value

5. paste the following code in Doinit() method

try

{

IPrivateUWLTestView.IBgNode aNode = wdContext.nodeBg();

IPrivateUWLTestView.IBgElement elm;

elm = wdContext.createBgElement();

elm.setCategary("AOI");

elm.setSimpleseries(100*0.8);

aNode.addElement(elm);

}

catch(Exception e)

{

e.toString();

}

its working fine

Regards,

P.Manivannan

Former Member
0 Kudos

Hi,

i am not mentioned in the code previous one

verify

IPrivate<put it in your view name>.IBgNode aNode = wdContext.nodeBg();

IPrivate<put it in your view name>.IBgElement elm;

Regards,

P.Manivannan

Former Member
0 Kudos

Hi,

if you using series?

try to using simpleSeries instead of series....

Regards,

P.Manivannan

Former Member
0 Kudos

I did use simpleseries.

And I just can't find where to define the two value.