cancel
Showing results for 
Search instead for 
Did you mean: 

IGS, Business Graphics , LineGraphic, Properties, Color

Former Member
0 Kudos

I have a question regarding the configuration of BusinessGraphics from my Java WebDynpo View.

How can I set the line color programmatically? What I have found is that the Chart Designer provides me a choice for the "Color palette" but I would like to set the line colors individually (depending on the values).

Any ideas?

Thanks in advance,

Peter

Accepted Solutions (0)

Answers (1)

Answers (1)

kai_gutenkunst
Active Contributor
0 Kudos

Hi,

you can use Series customizing to define the color for a series. Just go to the Chart Designer, right-click on the Series node and create a new entry. After selecting this new Series customizing change the color as you like and use this customizing for your data series.

Regards, Kai

Former Member
0 Kudos

Thanks Kai, that helps a lot already.

But what about setting it from the coding? I want to give lines different colors depending on the values ( ok, critical, ...). Can I apply the series customizingID dynamically or ist there another way?

Do you have an idea regarding this too?

Regards,

Peter

Former Member
0 Kudos

It´s quite easy:

IWDBusinessGraphics myBG = (IWDBusinessGraphics) view.getElement("BusinessGraphic");

((IWDSimpleSeries) myBG.getSeries(<your Series>)).setCustomizingID(<Your Customize ID>);

this in the wdDoModifyView Method it works.

Former Member
0 Kudos

Hey Sebastian,

one question to you.. in definition of customizingId it is said that "An ID is assigned to this property, and the ID stores information about the representation of the data series under the Customizing XML file of the BusinessGraphics UI element.".. now what are the possible values of this field? I mean if I call setCustomizingID() what should I pass as the value of it? Can you give me some examples?

Thanks

Shubhadip

Former Member
0 Kudos

you start the chart Designer.

Select Series right click "add Series"

customize your series and rename it. example s1Test.

This name is your Id.

((IWDSimpleSeries) myBG1.getSeries(0)).setCustomizingID("s1Test");

So you can choose which CustomizingSeries you want to set to your series dependent on your algorithm