Skip to Content

BSP Graph using HTMLB Extension's Chart element

We are on EP 6.0 SP2 with WAS 6.2. I wrote a simple BSP to chart some values using the HTMLB extension's Chart element. It works great and is easy to use. However, I can not figure out how to make the values appear for each bar in the bar chart. In other words, there are axis values that show 500, 600, et cetera. But, I want the value (e.g., 512) to show on the bar on the chart. Any suggestions would be appreciated.

David Broughton

Oak Ridge National Lab

Add comment
10|10000 characters needed characters exceeded

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2004 at 10:31 PM

    We are having the same problem. We are actually trying to create a pie chart using <htmlb:chart>. We can create the pie chart, but there is nothing on the pie chart which gives the exact percentage. On mouseover, it only displays a blank tooltip (it looks like one space). We have even tried sending in values in the data table (data-datalabel field), but these values are never shown on the chart. We have also tried different values for attribute displayObjectValues, but it doesn't make a difference.

    We would also like to know the answer to this question. Is there any way to show the exact values on the chart? And why is there a blank tooltip that is shown when you place your cursor over a section of the pie chart? This seems like a bug.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      After going back and forth in OSS, the answer is that OSS note 454042 #3 is a little misleading. It should say: (and also add IGS_RFC_DEST if your on 6.10 or later). We had only the IGS_RFC_DEST entry which caused our pie charts not to show correctly. So add GFW_ITS_RFC_DEST & IGS_RFC_DEST and it should work as designed. We also noticed the GFW entry added a new bug where a pie chart won't display at all if one section of the pie chart has 100% of the count. Meaning if Sect 1 has 5, Sect 2 has 0, and Sect 3 has 0, you will get no graphic but you should see a pie chart all in one color.



  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2004 at 02:21 PM

    The <HTMLB:Chart> control has a parameter 'displayObjectValues' which has the possible values 'TRUE' and 'FALSE'.

    To make the values appear for each element in the chart set the parameter 'displayObjectValues' to 'TRUE'.

    If your graph looks very cluttered due to the amounts of the information on the screen then consider increasing the size of your chart by modifying the 'width' and 'height' properties.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2004 at 02:31 PM

    In response to Shannon Hardin's query about the HTMLB pie-chart showing an empty tool-tip.

    I use an HTMLB pie-chart that has no problem in outputting whatever tool-tip I want to display on mouser-over.

    I can think of two possible reasons for the problem you are facing:

    (1) Your JCO table (with data that is being supplied to the chart) has not be configured properly.

    (2) Your mapping between the JCO table fields is not in synch with the HTMLB chart's model's attributes.

    Add comment
    10|10000 characters needed characters exceeded

    • > It's a pity that nobody speaks Russian here:-( ;-).

      Rest assure, we have a fair number of Russian speaking experts in this forum. But we try to stick to English, so that our American colleagues can also follow 😊.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 30, 2004 at 08:58 PM

    I am using the HTMLB Chart element for bar graphs. When I am charting an employee's hourly pay rate, I get the European decimal notation on the Y axis. Is there a way to control this, to get a period instead of a comma? My SAP settings are for U.S. notation.


    Janice Ishee

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I assume you are using the applet for displaying the chart. Please use the IGS for rendering the charts. The IGS displays the value according to your locale.


      Thanks for the info with the pie chart. The bug is fixed with the latest IGS patch (IGS 6.40 patch 3).


  • Posted on Aug 17, 2004 at 07:39 PM

    Thank you for the many responses. My original problem was getting values to appear for each bar in a bar graph (i.e., over the bar or on a mouse-over).

    During our process of working on this BSP application, our charts stopped appearing altogether. We verified that the sample programs also no longer produced graphs. It turns out that IGS 6.4 patch 2 was installed by our basis team. During IGS install, the Basis folks (doing a “custom installation”) took the “GFW Chart” default. However OSS Note 653249 indicates to uncheck “CFW Chart” and check “MIS Chart” for our version of BW 3.0B. I think this actually has something to do with the DLL that is loaded behind the scenes. In any case, the Basis team reinstalled IGS with “MIS Chart” and all of our charts started appearing again (i.e., we were back where we started).

    Vik replied that we should set ‘displayObjectValues’ to True. However, we had already done that and the object values were not still displaying. Michael’s response suggested configuring GFW_ITS_RFC_DEST (in addition to IGS_RFC_DEST). We had already configured it. But in our BSP we were pointing to PH_IGS_RFC_DEST with this command: CL_GFW=>ITS_RFC_DEST = 'PH_IGS_RFC_DEST'. After changing the literal to GFW_ITS_RFC_DEST, the numbers in the bar chart started appearing! Doing this also fixed the problem that Janice mentioned regarding European decimal notation.

    The respondent identified as “Person Bueno” raised the question on how to fill the “data” table. As for getting the mouse-over to display something (other than a blank), it turns out that the EXTENSION field in GRAPH_DATA_LINE table could be set to display a URL. Clicking the graph also takes us to the URL displayed.


    'href="" alt = "SAP AG"'.

    We are currently trying to figure out how to get values other than URLÂ’s to display here.

    In a separate Internet Graphics Server, Brian indicated that the Basis SP level should be at least 41 to get rid of many (e.g., table view) bugs we were experiencing at SP 36. We are currently installing SPÂ’s up to 42.


    Message was edited by: Brian McKellar

    Excellent summary!

    Add comment
    10|10000 characters needed characters exceeded