Use of HTMLB:chart displayObjectValues

Hi,
I need a little help with the attribute displayObjectValues of the HTMLB:Chart extension.
I have the following code
      <htmlb:chart id                  = "myChart1"
                   data                = "<%= data %>"
                   displayObjectValues = "True"
                   chartType           = "COLS"
                   colorOrder          = "DEFAULT"
                   title               = "Test Chart"
                   titleCategories     = "Statuses"
                   titleValues         = "Percentages"
                   visible             = "X"
                   width               = "500" />
but still cannot seem to get the values to display and the end of the columns.  Any ideas what I am doing wrong?
Regards
Paul.

Concerning the HTMLB:Chart for 3D Bars, with IGS PH_IGS_RFC_DEST, you can specify colors for the 3D Bars and the legend also appears in the colors you specify.  But according to previous messages and posts, numeric values must appear in European notation and displayObjectValues does not work.
Conversely with GFW_ITS_RFC_DEST, you can specify colors for the 3D bars but the legend always displays automatic colors so that the chart and the legend can be out of sync.  But I can get U.S. numeric notation and displayObjectValues works.
Does SAP supply an IGS that will let me display numbers with U.S. notation, supports the displayObjectValues labels, and allows me to specify colors for a 3D Bar chart that will also be reflected in the chart legend?
Thanks
Janice Ishee

Similar Messages

  • Htmlb chart control is not working

    Hi All
    I created chart using htmlb chart control as per documents  given in pdk. but it is not displaying any thing on the browser,I am attaching code ,Please tell me where will the wrong
    Thanks in advance
    Gopal
    Java:
    create a new JCO table
            JCO.Table table = new JCO.Table("DAX");
    //       add the info/header to the table. The header is defined by the column name,
    //       data type and length (see JCO table API for details).
            table.addInfo("GROUPID", JCO.TYPE_CHAR, 50);
            table.addInfo("X", JCO.TYPE_CHAR, 50);
            table.addInfo("Y", JCO.TYPE_CHAR, 50);
            table.addInfo("Z", JCO.TYPE_CHAR, 50);
            table.addInfo("COLOR", JCO.TYPE_CHAR, 50);
            table.addInfo("EXTENSION", JCO.TYPE_CHAR, 150);
    //       append a record to the table. setValue sets the value as string. The second
    //       parameter is the column. The numbers are according to the sequence of the
    //       definition of the header (see above).
            table.appendRow();
            table.setValue("07.2001",0);
            table.setValue("SAP",1);
            table.setValue("158",2);
            table.setValue("20",3);
            table.setValue("10",4);
            table.setValue("href=\"http://www.sap-ag.de/\"",5);
    //       create a JCOChartModel and set the JCO table
           IChartModel model = new JCOChartModel();
            ((JCOChartModel) model).setDataSrc(table);
    myBean.setModel(model1);
    JSP:
    <jsp:useBean id="myBean" scope="session" class="com.sap.barchart.ModelBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
         <hbj:chart
               id="myChart1"
               model="myBean.model"
               visible="true"
               displayObjectValues="true"
               titleCategories="Company"
               titleValues="Turnover"
               title="Washers by Companies!"
               chartType="BARS_3D"
               colorOrder="DEFAULT"
               height="200"
         />
         </hbj:form>
      </hbj:page>
    </hbj:content>

    HI,
    Check if the bean is null.
    Try displaying it using classlib in the dynpage itself .
    Regards
    Bharathwaj

  • HTMLB Chart (JSPDynPage)

    Hi,
    I'm trying to set-up a HTMLB Chart but not having any luck.  Has anyone done this before?.  Thanks
    Here is my code:
    Java:
    package za.co.pciza.jsppage;
    import za.co.pciza.jsppage.GraphJSPBean;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    import com.sap.mw.jco.*;
    public class GraphJSPPage extends PageProcessorComponent {
      public DynPage getPage(){
        return new GraphJSPPageDynPage();
      public static class GraphJSPPageDynPage extends JSPDynPage{
        public void doInitialization(){
              IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
              IPortalComponentContext myContext = request.getComponentContext();
              IPortalComponentProfile myProfile = myContext.getProfile();
              GraphElement theBean = new GraphElement();
              theBean.setTitle("Graph Title");
              Chart chartBean = new Chart();          
              JCO.Table table = new JCO.Table("DAX");
    //             add the info/header to the table. The header is defined by the column name,
    //             data type and length (see JCO table API for details).
              table.addInfo("GROUPID", JCO.TYPE_CHAR, 50);
              table.addInfo("X", JCO.TYPE_CHAR, 50);
              table.addInfo("Y", JCO.TYPE_CHAR, 50);
              table.addInfo("Z", JCO.TYPE_CHAR, 50);
              table.addInfo("COLOR", JCO.TYPE_CHAR, 50);
              table.addInfo("EXTENSION", JCO.TYPE_CHAR, 150);
    //             append a record to the table. setValue sets the value as string. The second
    //             parameter is the column. The numbers are according to the sequence of the
    //             definition of the header (see above).
              table.appendRow();
              table.setValue("07.2001",0);
              table.setValue("SAP",1);
              table.setValue("158",2);
              table.setValue("20",3);
              table.setValue("10",4);
              table.setValue("href=\"http://www.sap-ag.de/\"",5);
    //             create a JCOChartModel and set the JCO table
              IChartModel model = new JCOChartModel();
              ((JCOChartModel) model).setDataSrc(table);
              chartBean.setModel(model);
              myProfile.putValue("infoBean", theBean);
              myProfile.putValue("graphBean", chartBean);
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          //GraphJSPBean graphJSPBean = new GraphJSPBean();
          //((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("graphJSPBean", graphJSPBean);
          // fill your bean with data here...
          this.setJspName("graphjsppage.jsp");
    JSP:
    <%-- jspoverviewpage.jsp --%>
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <%@ page import="java.util.*"%>
    <%@ page import="za.co.pciza.jsppage.GraphElement" %>
    <%@ page import="za.co.pciza.jsppage.GraphJSPPage" %>
    <%@ page import = "com.sapportals.htmlb.enum.EventTrigger" %>
    <%@ page import = "com.sapportals.htmlb.*" %>
    <%@ page import = "com.sap.barchart.ModelBean" %>
    <hbj:content id="myContext" >
         <hbj:page title="PageTitle">
              <hbj:form id="myFormId" >
              <jsp:useBean
                   id="infoBean"
                   scope="application"
                   class="za.co.pciza.jsppage.GraphElement" />
                             <hbj:textView
                                  encode="false"
                                  text="<%= infoBean.getTitle() %>"
                                  wrapping="true"
                             />
                             <br><br>
              <jsp:useBean
                   id="graphBean"
                   scope="application"
                   class="com.sap.barchart.ModelBean" />
                        <hbj:chart
                             id="myChart1"
                             model="graphBean.model"
                             visible="true"
                             displayObjectValues="true"
                             titleCategories="Company"
                             titleValues="Turnover"
                             title="Washers by Companies!"
                             chartType="BARS_3D"
                             colorOrder="DEFAULT"
                             height="200"
                        />
              </hbj:form>
         </hbj:page>
    </hbj:content>

    Hi,
    If you do not get any error message and if you cannot see the chart, check IE(settings)->internet options->advanced tab->select use java for applet.
    In the portalapp.xml change the PrivateSharingReference to
    SharingReference
    <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
    If this does not solve your problem, please post the error from the trace file.

  • Problem with htmlb:chart after upgrade

    We just upgraded from BW 3.0, WAS 6.20 to BW 3.5, WAS 6.40.   Testing revealed that my htmlb:chart would no longer work.  I just got a white screen whether using Internet Explorer or Netscape.  After much digging, I found that the values for charttype changed with this upgrade.  Any value before that was COLS* now is COLUMNS*
    This is just a "for your information" in case you run into this.
    Janice

    Thanks for the info!

  • Color in htmlb:chart

    hi all,
    kindly help me in htmlb:chart. M using it and wanna give a blue color but dnt know
    the number for that. I tried near about all the numbers. plz tell me the number of it.
    thanks in advance
    ons bs

    Hi,
    line-color = 25 (or) 26 (or) 27 these all are for Blue color.
    Hope this will solve your problem,Reward if it helpful.
    Thanks&regds,
    Sree.

  • Htmlb chart numeric values format

    Hi, does anyone know how to display a big value such as 100000 as 100,000 on a column chart
    (y axis)? Would be easier to read... Thanks,
    Mireille Lachance

    Hi, thanks for the answer. I believe you are refering to a different type of chart / technology... I am using htmlb chart and there is not tag for format. We're still running Web As 6.20 so I might be missing some options included in a later version.
    Mireille

  • Help!! how to use ms office chart in jsp

    I want to use ms office chart in jsp for getting real time statistical chart.
    but I don't know how to satart.
    give me an example please,(including the code is better)
    thanks

    Do you need MS Office? Try Cewolf, a tag library for JFreeChart:
    http://cewolf.sourceforge.net/
    Regards,
    Dave Gilbert
    JFreeChart Project Leader

  • How to change the area of cells used as pie chart legend?

    In Numbers '13 I cannot drag the legend area separately (as I could do in Number '09). The same on iPad.
    Did I miss something?

    re:  ChartLegend
    The line "chtChart.SeriesCollection.NewSeries" does nothing.
    After legend entries have been deleted, the only way to restore them is to remove and recreate the legend that contained them by setting the HasLegend property for the chart to False and then back to True...
      chtChart.HasLegend = False
      chtChart.HasLegend = True
    (the font in the new legend may need adusting)
    It has been a very long time since I have created charts with VBA.
    My Excel help file says to change the values used by a Chart Series you have to specify a range or provide an array of values (not both)
    So this seems to work...
    Dim X as Variant
    X = chtChart.SeriesCollection(3).Values
    chtChart.SeriesCollection(1).Values = X
    Jim Cone
    Portland, Oregon USA
    free & commercial excel programs (n/a xl2013)
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • I have a question about japan new depriciation engine using non-japanese chart of deprication

    Hi, all
    I have a question about link between new depriciation engine and chart of depriciation.
    My client want to use US chart of depriciation as standard chart of depriciation becuase it has already standard setting like IAS deprication keys.
    it means I have to create Japanese chart of depriciation by copying from US chart of depriciation(non-japanese sample(0JP))
    I have a little doubt about it. In my previous project, I copyed chart of depriciation by copy from Japan sample Chart of depriciation(0JP) stored in SAP.
    Is it possible to copy from non-japan sample charg of depriciation to using Japanese new depriciation engine? I worried some errors will occrues if I do not use sample chart of depriciation(0JP) .
    If I need to use sample Japanese chart of depriciation, please give me the idea why I need to use Japanese sample chart of depriciation. I want to know the examples of non-Japanese asset accouting consultants who have working experience in the area.
    Thank you.

    Hi, Narasimhulu
    Thank you for your support.
    My client use one COA to all over the world. And not only Japan, other country aslo use the COD which is copied from that of US. Basic reporting line is for USGAP. I will customize 2 depriciation ares, one for US GAP and another is JGAP. No need to create TAX realted customize.  It means it enought only adding Japanese new depriciation keys to Current US COD. No need to add more Japanese local requirements.
    In this case, I want to know follwoing point.
    I know COD controll depriciation keys, but I want to know more detail about COD, what kinds of controls COD do. What is Japanese local requirements. Why better to use COPY of JP COD.
    Thank you.

  • Problem with htmlb:chart

    Hi to all,
    how can I solve this Problem:
    <b>--- code ---</b>
    data: line type igs_data.
      line-groupid = 'user 1'.
      line-x = '11.03.2004'.
      line-y = 12.
      append line to data.
      line-x = '12.03.2004'.
      line-y = 14.
      append line to data.
      line-groupid = 'user 2'.
      line-x = '10.03.2004'.
      line-y = 10.
      append line to data.
      line-x = '11.03.2004'.
      line-y = 12.
      append line to data.
      line-x = '12.03.2004'.
      line-y = 21.
      append line to data.
    <b>--- end ---</b>
    <b>Result:</b>
    12.03.2004 | <b>*****user 2*****</b> 21
    11.03.2004 | <b>***user 1***</b> 14
    _________ | <b>***user 2**</b> 12
    10.03.2004 | <b>***user 1**</b> 12
    _________ | <b>**user 2**</b> 10
    How can I get the right result for 'user 1' ?
    Thanks in advance

    I just tried the same program and I think it works correctly. You have not defined, what correct solution is. You have just stated end result. I am not sure why you get value 12 for user 1 on day 10.03.2004, but I get value 0 for the same. I think I am missing something here. Not sure.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="test " >
        <htmlb:form>
          <%
            data: line type igs_data.
            data: graph_data type igs_data_tab.
            line-groupid = 'user 1'.
            line-x = '11.03.2004'.
            line-y = 12.
            append line to graph_data.
            line-x = '12.03.2004'.
            line-y = 14.
            append line to graph_data.
            line-groupid = 'user 2'.
            line-x = '10.03.2004'.
            line-y = 10.
            append line to graph_data.
            line-x = '11.03.2004'.
            line-y = 12.
            append line to graph_data.
            line-x = '12.03.2004'.
            line-y = 21.
            append line to graph_data.
          %>
          <htmlb:chart data="<%=graph_data%>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • Source for Same GL Account(SKA1) used in multiple Chart Of Accounts(T004)

    If Same GL Account is used in multiple Chart Of Accounts. Does SAP Source it from a single GL Account source or it creates a completely new records for the GL Accounts in all the Chart Of Accounts independently. Lets take for an example Accounts Receivable GL Account if this is used for many Chart Of Accounts does the GL Account for Accounts Receivable has the master record and all the Chart Of Accounts use the same GL Account master record for that Accounts Receivable Account.

    1) So Inorder to find one GLAccount I need to know the Chart Of Accounts of that GL account I am looking for as same GL Account number with same name can exist in different Chart Of Accounts.
    2) You referrred GL Code. Is that synonym for GL Account Number.
       I am little stuck with the name
       what is the difference between General Ledger(Is that nothing but a Chart Of Accounts) and General Ledger Account.
       GL Account in SKA1 as it seems like  "GL Account for Chart Of Accounts" instead of "GL Account" as every GL Account   has to be accompanied by Chart Of Accounts.
    Example: If I say "Accounts Receivable "  as GL Account I dont know whether that is in Chart Of Accounts1 or Chart Of Accounts2

  • Using dates in charts

    Hi,
    I want to know how I could make dates quantitative in charts.
    What I mean is this: I want to plot date (e.g. 09/12/09) v.s. activity (in hours).
    But when I plot a graph, it shows the dates (in the x-axis) with the SAME gap length. E.g. the same gap length between dates that are 1 day apart, and those that are 20 days apart. I want the dates also to be QUANTITATIVE.
    I hope it makes sense, please help.
    Thanks,
    Edam
    Message was edited by: blah888

    Edam,
    I'm sorry that I don't have Numbers 08 at my present location to check this out throughly. I do recall though that an easy workaround is to set a base day and assign days since the base to the X-axis, rather than true dates. Then you can use the Scatter Chart and get proper spacing. All the other chart types are Category Charts which plot each piece of data with equal spacing. In Numbers 09 we can use true dates for the X-axis in a Scatter Chart, but I don't think that was the case in Numbers 08.
    Jerry

  • Having problem while using Stacked Column Chart.

    Hi,
    my result set is as below
    STAGE OPERATION
    TOTAL PCS
    1 SIDE SEAM
    6714
    2 BIND BOTTOM
    4522
    2 SLEEVE ATTACH
    6105
    3 BIND TOP(E/N)
    3781
    5 SLEEVE HEM
    3277
    6 BIND TACK-2
    1173
    6 TACK-2
    1277
    6 TACK-4
    268
    I need to display it on the screen by using stacked column chart. I mean XAxis as "STAGE" YAxis as "TOTAL PCS" and "OPERATION" as series. I used DataBIndCrossTable as 
    chProd.DataBindCrossTable(dtView, "OPERATION", "STAGE", "TOTAL PCS", "Label=TOTAL PCS");
    But, the results in the chart is displaying it in the first STAGE it self. I mean xaxis value 1 has all the yaxis value.
    Can anyone please help me to get the results as first image?
    I'm anable to attach the related images here.
    Thanks in advance.
    Regrds,
    Rajesh.

    Got the answer.
    Just added 
    chProd.AlignDataPointsByAxisLabel();
    Regards,
    Rajesh

  • Use of makit chart for multiple values against month

    Hi all,
    here is my test data:
    var testDate = { mycollection : [ {Consumption : 200, Consumption1 : 170, ReadingDateTime: February},
                                     {Consumption : 300, Consumption1 : 170, ReadingDateTime: March},
                                     {Consumption : 200, Consumption1 : 130, ReadingDateTime: April},
                                     {Consumption : 200, Consumption1 : 230, ReadingDateTime: May},
                                     {Consumption : 200, Consumption1 : 270, ReadingDateTime: June},
                                     {Consumption : 200, Consumption1 : 200, ReadingDateTime: July},
    In this consumption is for present year and consumption 1 is for previous year.
    I want to implement both the values against the month using makit column charts:
    var oChartj = new sap.makit.Chart({
         height: "80%",
         width: "100%",
         showRangeSelector :false,
         primaryColorPalette:["#18458D"],
         category : new sap.makit.Category({ column : "month" }),
         values : [new sap.makit.Value({ expression : "consumption"})]
         var jsonModel = new sap.ui.model.json.JSONModel();
          jsonModel.setData(testData);
           oChartj.addColumn(new sap.makit.Column({name:"month", value:"{ReadingDateTime}"}));
          oChartj.addColumn(new sap.makit.Column({name:"consumption", value:"{Consumption}"}));
         oChartj.setModel(jsonModel);
           oChartj.bindRows("/mycollection");
    in this way i am able to print the data as consumption against month, I need to add consumption1 also.
    How to do this?
    Regards,
    Arun

    Hi All,
    I was able to do the same with the help of series property in makit charts.
    series : new sap.makit.Series({ column : "year" }),
    In our test data we need to create the data's based on this value, for example if we are plotting consumption against month then the year should be a differentiating quantity within the test data.
    So that the graph will iterate for that and plot two values for the same month.
    Regards,
    Arun

  • Using graph and chart

    hello,
    i want to use graph and chart work in my application.please tell me any links,where i have to search for FREE sourse.
    regards,
    j.mouli

    I am developing a free chart library called JFreeChart:
    http://www.jrefinery.com/jfreechart/index.html
    On the JFreeChart web page you will find links to some of the other free chart libraries also. Evaluate a few, and use whichever works best for you.
    Regards,
    Dave Gilbert.

Maybe you are looking for