Setting series color in the Business Graphics UI element

Hi all,
I'm using the Business Graphics UI element in my Web Dynpro application.
I set the color for various properties using chart designer, then I add the generated XML in the doModifyView method: bg.setDirectCustomizing(xml file) and most of it works.
However, when I change the series' color, I don't see any change in the xml file (see snapshot).
http://img90.imageshack.us/my.php?image=graphjy1.jpg
My xml starts with <SAPChartCustomizing> and ends with </SAPChartCustomizing>.
How can I set the series' color using the custom xml file?
Thanks,
Omri

Hi,
as the connection between your data and the customizing settings works via IDs you have to make sure that you set exactly the same ID for a data series as defined in the chart designer.
In case that you use point customizing make sure that you do not set an ID for the points of your series. Instead set the series customizing ID for the series only! Keep in mind that point customizing always overwrites series customizing if both are defined.
Regards, Kai

Similar Messages

  • Refresh the Business Graphics Data on click of next page event of a table

    Hi Experts,
    We are using Business Graphics UI element in Web dynpro Java to display a table data.
    We are limiting the graphics data to 12 table entries at a time.
    Now, I just want to know how can we refresh the Business Graphics data when the user clicks on the Next Page option at the bottom of the table.
    This is applicable if we have more than 12 table entries and we've restricted the visible row count to 12.
    So, for more than 12 entries; when the user selects the next page, I want the next set of data to be displayed in the Business Graphics UI element.
    But I am not able to get the action for the Next Page event.
    Please note that we are on Netweaver 7.01.
    Kindly suggest as how can we achieve this functionality.
    Kind Regards,
    Anurag

    check this
    Web Dynpro Java Table Paging Unleashed: Optimizing Heavy Table Performance

  • Business Graphic show elements sorted

    Hi ,
    i use a business graphic UI Element to display some results.
    Categorie -String (Projectname)
    1 Serie -Integer (Changelists sum)
    How could i show these elements sorted on diagram? I have sorted the elements by using the function node.sort(Comparator), but the Business Graphic UI Element seems not to match it.
    my Comparator class:
    private static final  Comparator DEFAULT = new  Comparator(){
         public int compare(Object o1, Object o2) {
         if (o1 == null && o2 == null)
                                  return 0;
         if (o1 == null)
                                  return -1;
         if (o2 == null)
         return +1;
    IPrivateBusinessGraphics.ICategoriesPieChartElement     
    o1_new =(IPrivateBusinessGraphics.ICategoriesPieChartElement)o1;
    IPrivateBusinessGraphics.ICategoriesPieChartElement o2_new=(IPrivateBusinessGraphics.ICategoriesPieChartElement)o2;
    if(o1_new.getChangeListsSum()>o2_new.getChangeListsSum()){
    return 1;
    else if(o1_new.getChangeListsSum()<o2_new.getChangeListsSum()){
    return -1;
    else{
    return 0;
    Could you help please to solve this problem?
    Thank you in advance!
    Best Regards,
    Daria

    use the  following steps...
    1. open that chart editor using Edit Customizing Option.
    2. from the Overview select Series node. Right click on it and Add Series.
    3. Series1 will be added. now select Series1 and in the below section go to Area Properties node.
    4. expand it and choose the color you want for the first series.
    5. similarly add Series2 with teh desired color.
    6. then go to the view designer after saving the required changes.
    7. go to the properties of simpleseries1 and in customizingID field write 'Series1'.
    8. similarly fill other simpleseries also with the respective values.
    save it
    activate and its done.
    thanks
    sarbjeet singh
    Edited by: sarbjeet  singh on Apr 28, 2011 3:58 PM

  • How to use series in business graphic ui element

    Hi All,
    How to use the series in business graphic ui element? my requirement is i have to display the sales in selected months in graph(these values dont know at design time).
    Regards
    Srikanth

    Hi,
    Use the dynamic node  and bind this node to the BG source node and series nodes.
    Create a node and bind this node to the BG source and the value that you want to shown in series has to be bound to that attribute of the node and similarly with the category.
    Check out for the dynamic node creation and bind this node to the BG.
    Regards,
    Lekha.

  • When attempting to format region and set date and time the busy icon appears and seems to stay like this?

    when attempting to format region and set date and time the busy icon appears and seems to stay like this?

    Click on DU's Partition tab when you have the raw drive name selected, then set it to one partition, Mac OS Extended. If it crashes or freezes, it is finding a bad block and can't write.
    In any event, if you want to use the drive, and have not zeroed it before, you should now.
    Click on Erase -> Security Options -> Zero out data. Still with the full drive selected and not any partition(s).
    Then repartition the drive if needed.
    Boot from the DVD if that doesn't work. And no, TTPro has never mapped out bad blocks let alone create partitions.
    Disk Utility in 10.4.8 is quite good, excellent in fact. No need for an alternative.
    Your eMac drive may need to touch of Disk Utility itself. FSCK from the command line, clear the caches with Applejack along with check for corrupt plists. Between Disk Utilty and Applejack (free/shareware) never had to use TechTool Pro - or at least there weren't any errors after those two got done. But if you want a good 3rd party, pick up Disk Warrior 4.

  • Business Graphics UI element Column Width

    Hi Experts,
    I am using business graphics UI element in my Web Dynpro application to display the chart in columns .
    I am able to display the chart properly based on the node data.
    But the issue that I am facing is that when the node data is less, the column in the chart is getting expanded(column width is increased) as I am not able to set the width of the column dynamically based on the node size.
    The column width keeps on changing based on the node size.
    Is there any possible way to set the column width dynamically or fix the column width irrespective of the node size?
    Best Regards,
    Anurag

    Hi Guys,
    Is there any update on this?
    Best Regards,
    Anurag

  • Business Graphic UI Element - Major Ticks Property

    Dear All,
    We have a requirement to modify the existing Business Graphic UI element (Line Graph).
    We are not able to increase the major ticks property of Business Graphic UI element to 21.
    Are there any constraints on this property ?
    Thanks.

    Hi,
    Do you mean the properties of the ValueAxis-Line, Number = 21 and Major tick calculation = Manual ticks?
    I do not see a restriction. Everything works fine.
    Make sure to use the latest IGS!
    Regards, Kai

  • Business graphics ui element

    Hi,
    Please can you tell,
    How to work with Business Graphics UI Element with Brief steps
    Regards,
    Boots.

    Hi,
    Refer pdf at https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6
    http://help.sap.com/saphelp_nw04/helpdata/en/e5/08b6eb35637a44830b9e6df22987aa/frameset.htm (SAP Library)
    Kind Regards,
    Nitin
    Edited by: Nitin Jain on Feb 18, 2009 12:09 PM

  • Business Graphics UI element Time_Scatter

    Hi,
       Can anybody provide a example for implementing Business Graphics UI element of chart type time_Scatter.
    Regards,
    Vaibhav

    Hi VaiBhav,
    Please go through these links,
    http://help.sap.com/saphelp_nw04s/helpdata/en/ed/258841a79f1609e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/18/d4d43fb9490c65e10000000a114b1d/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/1cd93f5e0f9015e10000000a155106/frameset.htm
    /people/perumal.kanthan/blog/2005/04/07/business-graphics-real-time-scenariospart-ii
    Regards,
    Ramganesan K.

  • Set font color for the JTextField

    I'm using JTextField in my project. However, can anybody teach me how to set the font color for the font in the JTextField to other color. The default font color is black. Any idea about this?

    JTextField field = new JTextField(20);
    field.setForeground(Color.blue);
    Good luck ;)

  • Setting Row Color of the JTable

    Hi,
    I wanted to set the first row and first column of the JTable .
    Can anybody help me in this? I read CellRendering but didn't understood when getTableCellRendererComponent(...) method get called and how it works.
    I realy appreciate if anybody explains me.
    Thanks,
    Padmashree

    Hi,
    If my understading is correct, You are trying to set the color of the first column of the first row.
    "Renderer" returns the component used for drawing the cell. It applies for all the cell. Method called
    "GetTableCellRendererComponent" is used to configure the renderer appropriately before drawing.
    So the following parameters are provided to acheive it.
    table - the JTable that is asking the renderer to draw; can be null
    value - the value of the cell to be rendered.
    isSelected - true if the cell is to be rendered with the selection highlighted; otherwise false
    hasFocus - if true, render cell appropriately.
    row - the row index of the cell being drawn.
    column - the column index of the cell being drawn
    So to acheive your requrement, you have to do something like this.
    1 - apply the required color to first cell of the first row
    2 - configure in such a way that it works when the renderer reads first row and first column.
    For. e.g To set the background color as Blue,
         if(row == 0) && ( column == 0){
         this.setBackground(Color.Blue);                          }else {
              this.setBackground(defaultColor);
    Hope it gives a good picture.

  • Unable to set fontFamily property in Business Graphics UI Element?

    Dear All,
    I was trying to set the fontFamily property of BusinessGraphics(BG) UI Element. After setting the fontFamily property for BG UI Element, this property is not getting reflected in the chart in Portal but it is reflected under Chart designer. Is there something which is overwriting the user defined setting for fontFamily? and I am not using any URL for IGS.
    On the other other UI Element properties like ChartType and dimention are reflected in both Chart Designer and Portal.
    Please respond at ur earliest.
    Thanks in advance.
    Regards,
    Nittin
    Edited by: Nittin Garg on Jun 18, 2008 11:33 AM

    Dear Kai,
    Thanks a lot for your response.
    1. According to your suggestion (note 531668), it has been found that XMLCHART is already installed on our Integrated IGS server.
    2. According to note 1028690, it has been found that "IGS 6.40 with patch level 19 or higher" should be available, but in our case we have "IGS 6.40 with patch level 16". Now what I would like to inquire is that does upgradation have any side effects on server?
    For your information I would like to clear you that I want to use Vrinda font (its a standard font), but at present font shown in the chart is Arial.
    Do we need to install some other Interpreter (eg. GFWCHART)? or some thing else is required to show the desired standard font?
    Regards,
    Nittin

  • Customizing Property of Business Graphics UI Element

    Hello Web DynPro Developers,
    I'm trying to implement a dynamicly created Business Graphic. In order to set the properties for the "Series" (which will normaly be set through the Chart Designer) i try to deliver a XML Customizing File with the customizing properties.
    The API Documentation says that this property requieres a  URL which points to a valid XML file.
    After setting the Customizing property to a URL with an XML Configuration, the J2EE Engine does not try to retrieve the XML document (traffic watch).
    Is this a not implemented feature? How to set the configuration of Business Graphic dynamically?

    Dear Kai,
    Thanks a lot for your response.
    1. According to your suggestion (note 531668), it has been found that XMLCHART is already installed on our Integrated IGS server.
    2. According to note 1028690, it has been found that "IGS 6.40 with patch level 19 or higher" should be available, but in our case we have "IGS 6.40 with patch level 16". Now what I would like to inquire is that does upgradation have any side effects on server?
    For your information I would like to clear you that I want to use Vrinda font (its a standard font), but at present font shown in the chart is Arial.
    Do we need to install some other Interpreter (eg. GFWCHART)? or some thing else is required to show the desired standard font?
    Regards,
    Nittin

  • Change the Business Graphic Y-axis from decimal scale value to integer

    Hi,
    I am trying to get rid of the decimal points of the Y axis scale to integer.
    The scale value is currently showing like below:
    13.86
    10.395
    6.93
    3.465
    (This actual data set is currently fall between 3.xxxx to 12.xxxx)
    I want the scale label to display in integer, like this:
    15
    12
    9
    6
    3
    or
    13
    10
    6
    3
    This is determined dynamically as I have made the below settings.I am mapping the seriesSource of the Percentage BusinessGraphic to a node of attributes type of decimal.
    In the Chart Designer, I am setting the Y Value Axis configuration as below:
    Minimum  value: 0
    Minumum calculation: Automatic
    Maximum value: 100
    Maximum Calculation: Automatic
    Can you advise me how I can control the graph Y axis scale label to display in integer while I am mapping to a node of decimal data (for percentage values)?
    Thanks,
    KC

    Hi, Poojith.
    After making the below change:
    1. The "Scaling Type" in the "Value Axis" of the Chart Designer is Linear.
    2. I converted the type of the attribute bound to the SimpleSeries to new Decimal(double)
    I am still not able to achieve what I want. I am checking the value of the Value Axis --> Line --> Format.
    Based on the field description ("Specifies the format of the label output"), it seems like it is the value I should change. It is currently BLANK.
    Let me try it out. Please advise if you have any information on the Format string pattern I should use.
    Thanks,
    Kent

  • FF31: How can I set a color for the empty page opened by new tab ?

    Currently my new tabs open an empty, white colored page.
    Is it possible to give this page a color of my choosing, say sky blue ?
    If so, how ?

    Try:
    *Customize about:newtab: https://addons.mozilla.org/firefox/addon/customize-aboutnewtab/

Maybe you are looking for