Business Graphics negative values

Hi All,
I'm using business graphics graph. I bind a node with data to the category and to the series (the same node).
The problem starts if the series has negative values - instead of showing them as is on the graph it shows their absolute values and the graph is displayed incorrectly.
Is there any way to rectify this behavior?
Aviad

Hi Maksim Rashchynski,
Model Node --> History_Periods
    Model Attribute --> MonthYear (String)
    Model Attribute --> Quantity  (decimal)
The business graphics I am using is the graph with the attribute 'MonthYear' bound to a category and the attribute 'Quantity' bound to a SimpleSeries.
Thanks,
Aviad

Similar Messages

  • Business Graphics : Display values for simple series ?

    Hi ,
    I have a some 5 simple series per category.. I am using a column chart . I would like to display the numerical values on top of each of the columns, ? How can i do it ?
    And is there any proper documentation on Business Graphics UI element other than the help.sap and weblogs on the sametopic ?
    Thanks and Regards
    Bharathwaj

    Hi ,
    Thanks for the answer.. By trial and error I had figured out the values.. but am stuck in another problem..
    I have two points created in the chart designer.. each one has its own color.. Now am using this to change the color of a single series .. depending on some value.. point 1 or point 2 will be selected..
    In this scenario ,my legend still shows me the old ones i.e just an yellow icon..
    If i add more info and captions.. for points.. I get .. the proper legend.. But the default legend set also exists. Any ideas on how to remove this .. or
    to display the proper legend in some other way..
    Thanks and Regards
    Bharathwaj..

  • Dynamic Values in Business Graphics Tool Tip

    hi,
    I am using business graphics ui element in my webdynpro application.I am able to get the graghical output correctly.I want to have tool tip in my graph so when I place the cursor on a point, the tool tip should give the corresponding value.I have used the following code
    try
         String[] catLabels = {
                        "Team 1", "\1Tomoko Akino", "\1Hans Bosch", "\1Marvin Smith",
                        "Team 2", "\1Jose Vega", "\1Bao Yin", "Out of office" };
            String[][] pointCustomizing = {
                        { "approved", "cancelled", "approvedPartTime" },
                        { "approved" },
                        { "approved" },
                        { "sent", "approvedPartTime", "notsentPartTime", "notsent"},
                        { "approved", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries" },
                        { "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice" }
            String[][] pointLabels = {
                        { "1", "2", "2", "2", "4", "3", "3", "3", "1", "1", "2", "1",
                          "2", "1", "1" }
            String[][][] timeValues = {
                        { { "20020528", "20020606" }, { "20020606", "20020608" },
                          { "20020610", "20020611" } },
                        { { "20020531", "20020606" } },
                        { { "20020607", "20020613" } },
                        { { "20020527", "20020601" }, { "20020606", "20020607" },
                          { "20020612", "20020613" }, { "20020617", "20020619"} },
                        { { "20020531", "20020606" }, { "20020531", "20020601" },
                          { "20020601", "20020602" }, { "20020602", "20020603" },
                          { "20020603", "20020604" }, { "20020604", "20020605" },
                          { "20020605", "20020606" } },
                        { { "20020527", "20020528" }, { "20020528", "20020529" },
                          { "20020529", "20020530" }, { "20020530", "20020531" },
                          { "20020531", "20020601" }, { "20020603", "20020604" },
                          { "20020604", "20020605" }, { "20020605", "20020606" },
                          { "20020606", "20020607" }, { "20020607", "20020608" },
                          { "20020610", "20020611" }, { "20020611", "20020612" },
                          { "20020612", "20020613" }, { "20020617", "20020618" },
                          { "20020618", "20020619" }}
            String s[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","a14",};
            IPrivateSBusinessGraphicsSampleView.ICategoryNode catNode = wdContext.nodeCategory();
            for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
               IPrivateSBusinessGraphicsSampleView.ICategoryElement  catElement = catNode.createCategoryElement();
               catNode.addElement(catElement);
               catElement.setDescription(catLabels[catIndex]);
            // loop over series
            IPrivateSBusinessGraphicsSampleView.ISeriesNode seriesNode = wdContext.nodeSeries();
            for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
               IPrivateSBusinessGraphicsSampleView.ISeriesElement seriesElement = seriesNode.createSeriesElement();
               seriesNode.addElement(seriesElement);
               // set series attributes (...)
               IPrivateSBusinessGraphicsSampleView.IPointNode pointNode = seriesElement.nodePoint();
               // loop over points
               for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length; ++pointIndex)
                 IPrivateSBusinessGraphicsSampleView.IPointElement
                           pointElement = pointNode.createPointElement();
                 pointNode.addElement(pointElement); 
                 String ename = s[pointIndex];
                 wdComponentAPI.getMessageManager().reportSuccess("name:"+ename);
                 pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
                 pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
                 pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
                 pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);    
                 pointElement.setToolTip(ename );
         catch(Exception e)
                 wdComponentAPI.getMessageManager().reportSuccess("exc2:"+e);
    By the above code ,I am getting the tool tip with the value "a" in all locations.
    But I need to have different values in the tooltip corresponding to the location.
    Please Help....
    Thanks in advance,
    Shamila

    hi,
    Still  I did not get the dynamic tool tip..........
    In wdDoInit() I have written the following code
    try
         String[] catLabels = { "Team 1", "\1Tomoko Akino", "\1Hans Bosch", "\1Marvin Smith",
                   "Team 2", "\1Jose Vega", "\1Bao Yin", "Out of office" };
            String[][] pointCustomizing = {
                        { "approved", "cancelled", "approvedPartTime" },
                        { "approved" },
                        { "approved" },
                        { "sent", "approvedPartTime", "notsentPartTime", "notsent"},
                        { "approved", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries" },
                        { "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice" }  };
                    String[][] pointLabels = {{ " ", " ", " " },{ " " },{ " " },{ " ", " ", " ", " "},{ " ", " ", " ", " ", " ", " ", " " },
                                  { "1", "2", "2", "2", "4", "3", "3", "3", "1", "1", "2", "1", "2", "1", "1" } };
                  String[][][] timeValues = {{        { "20020528", "20020606" },
                          { "20020606", "20020608" },
                          { "20020610", "20020611" } },
                        {  { "20020531", "20020606" } },
                        {   { "20020607", "20020613" }  },
                        {   { "20020527", "20020601" },
                          { "20020606", "20020607" },
                          { "20020612", "20020613" },
                          { "20020617", "20020619"} },
                        { { "20020531", "20020606" }, { "20020531", "20020601" },
                          { "20020601", "20020602" }, { "20020602", "20020603" },
                          { "20020603", "20020604" }, { "20020604", "20020605" },
                          { "20020605", "20020606" } },
                        { { "20020527", "20020528" }, { "20020528", "20020529" },
                          { "20020529", "20020530" }, { "20020530", "20020531" },
                          { "20020531", "20020601" }, { "20020603", "20020604" },
                          { "20020604", "20020605" }, { "20020605", "20020606" },
                          { "20020606", "20020607" }, { "20020607", "20020608" },
                          { "20020610", "20020611" }, { "20020611", "20020612" },
                          { "20020612", "20020613" }, { "20020617", "20020618" },
                          { "20020618", "20020619" }}  };
            String s[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","a14",};
            IPrivateSBusinessGraphicsSampleView.ICategoryNode catNode = wdContext.nodeCategory();
            IPrivateSBusinessGraphicsSampleView.ICategoryElement  catElement;
            for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
                catElement = catNode.createCategoryElement();
               catNode.addElement(catElement);
               catElement.setDescription(catLabels[catIndex]);
             // loop over series
            IPrivateSBusinessGraphicsSampleView.ISeriesNode seriesNode = wdContext.nodeSeries();
            for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
               IPrivateSBusinessGraphicsSampleView.ISeriesElement seriesElement = seriesNode.createSeriesElement();
               seriesNode.addElement(seriesElement);
               // set series attributes (...)
               IPrivateSBusinessGraphicsSampleView.IPointNode pointNode = seriesElement.nodePoint();
               IPrivateSBusinessGraphicsSampleView.IPointElement  pointElement;
               // loop over points
               for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length; pointIndex++)
                 //IPrivateSBusinessGraphicsSampleView.IPointElement
                 pointElement = pointNode.createPointElement();
                 pointNode.addElement(pointElement); 
                 String ename = s[pointIndex];
                  wdComponentAPI.getMessageManager().reportSuccess("name:"+ename);
                 pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
                 pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
                 pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
                 pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);    
                  pointElement.setToolTip(ename );
    catch(Exception e){        wdComponentAPI.getMessageManager().reportSuccess("exc2:"+e);    }
    In wdDoModifyView() I have written the following code
    try
         IWDBusinessGraphics graph = (IWDBusinessGraphics)view.getElement("BusinessGraphics");
         IWDAbstractSeries allSeries[] = graph.getSeriesList();
         IWDSimpleSeries series;
         wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("length : "+allSeries.length+" value:"+allSeries[0]);
         for(int j=0;j<allSeries.length;j++)
           series = (IWDSimpleSeries)allSeries[j];
          for(int i=0;j<wdContext.nodeSeries().size();i++)
              wdContext.nodeSeries().setLeadSelection(i);
              series.setTooltip(series.getValue());
      catch(Exception e)
         wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("exc modify :"+e);
    The node structure is
    Root Node
    >Category>Description
    >Series>Point-->CuId
    >Series>Point-->endvalue
    >Series>Point -->Startvalue
    >Series>Point -->label
    >Series>Point --->Tooltip
    In BusinessGraphis seriesSource-Series node ,tooltip-Series.Point.ToolTip is mapped
    In Category description-Category.Description is mapped
    In Series pointsource-Series.Point, tooltip-series.point.tooltip is mapped
    In Point CustomisingId-eries.point.cuId.label-Series.label, tooltip-series.point.Tooltip,valuesource -series.point is mapped
    In Numericvalue value-series.point.startvalue is mapped
    In Numericvalue value-series.point.endvalue is mapped
    When I deploy my application I am getting <b>java.lang.ClassCastException</b> Exception at the line  <b>series = (IWDSimpleSeries)allSeries[j];</b>
    What is reaseon?.....
    Please help..............
    I want to get dynamic value in the tool tip of the graph.
    Thanks in advance,
    Shamila,

  • Business Graphics- tooltip with series values

    Hi all,
    I'm using the Business Graphics UI element.
    I have a simple series and I want to show the series' values in the tooltip of the series.
    However, the tooltip property is not bindable for simple series.
    I tried using Series (not simple series), the tooltip works but I get multiple values for each category.
    See attached snapshot (I want the graph to look like the left graph but with tooltips...)
    http://img70.imageshack.us/img70/2977/businessgraphicsop4.jpg
    Basically, I need to see the values in a tooltip on a category based chart.
    Is it possible to create category based chart by using Series and not SimpleSeries?
    How do I solve it?
    Thanks,
    Omri

    Hi,
    I've change the context a little and now it's looks like this:
    Context:
    Category (Node, singleton)
    --> Series (Node, non singleton)
    > value (Value attribute)
    -->Text (Value attribute)
    UI: (UI Element, property, propertyValue)
    Business Grpahics -- seriesSource -- Category
    --Category -- description -- Category.txt
    --Series -- label -- Category.txt
    --Series -- pointSource -- Category.Series
    SeriesPoint -- tooltip -- Category.Series.Value
    SeriesPoint -- valueSource -- Category
    NumericValue -- value -- Category.Series.Value
    Thanks,
    Omri

  • Business Graphics: Speedometer chart: Change Maximum value on runtime

    Hi Skilled,
    We faced a little problem in our project. We use Business Graphics component and Speedometer chart on the View and we should change maximum value of the graphics on runtime.
    I could easily change the maximum on design time in Chart Designer -> Axis -> Maximum Value, but I haven't found a way to change it on runtime.
    Are there any known ways to change the value on runtime?
    Best Regards, Dmitry

    Hi,
    by calling setDirectCustomizing you can provide customizing XML at runtime.
    Create your own customizing XML where you define the maximum value and call this method.
    You can also use the SAP Chart Designer from SDNs download area for creating the XML (just to get an idea how the XML has look like in your application).
    Regards, Kai

  • Business graphics/series:series/Point" Role "Values":A minimum 1 object(s)

    Hi All,
    I am getting an error:
    Webdynpro generation: metadata constraint of component component_name is violated: Point "// WebDynpro/View:com.domain.ProjectViewName/RootUIelementcontainer/...../ business graphics/series:series/Point" Role "Values":A minimum 1 object(s) is required.
    I am using pie chart for graphics.
    Thanks and regards,
    Hanif Kukkalli

    Hi ,
    When you create a series , you have to create a series -> series_point->point ->numerical or time value..
    Blogs by Marcin Galczynski
    /people/sap.user72/blog/2006/05/01/advanced-business-graphics--time-scatter
    Or you can use a simple series
    /people/sap.user72/blog/2005/03/23/business-graphics-in-webdynpro
    Regards
    Bharathwaj

  • Business graphic UI - display plotted value in tooltip

    Hi,
    In Business graphic UI element, there are few simple series. there are some values being plotted using those series.
    for example, sales for year 2001 is 89, sales for year 2002 is 91, sales for year 2003 is 78. I want to display the values 89, 91,78 in the tooltip when the mouse is hovered over these series.
    Regards
    seventyros
    http://learnsaponline.blogspot.com
    Edited by: seventyros on May 3, 2011 10:50 AM

    Hi,
    This is not true.
    Please refer the help  [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ed/258841a79f1609e10000000a155106/content.htm|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ed/258841a79f1609e10000000a155106/content.htm]
    tooltip binding attribute type is WDY_MD_TRANSLATABLE_TEXT.

  • 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.

  • Business Graphics and WebEnterprise

    I have a two part question.
    First, what is the best way to create business graphics such as line, bar,
    and point graphs? OLE to Excel, OCX, some third party commercial graphics
    library such as Brahma Software's Beacon?
    Second, once I have a business graphic what is the best way to display these
    graphics on a web page? A number of Forte field widgets such as ellipse,
    polyline, and point do not have a corresponding HTML element and therefore
    the Forte WebEnterprise WindowConverter class cannot convert these windows.
    Is there a way to save Forte images as BMP/JPG images?
    Thanks,
    Douglas Wheeler (mailto:[email protected])
    BORN Information Services, Inc. (http://www.born.com)
    Tel: 612.404.4379 Fax: 621.404.4441
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    exactly!
    many ways to do this
    1.U can use WDCopyService(Source ,Target)  here Source : return node of model data
                                                                               Target : Your temporary value node which bound to BG.
    Note : Each time when ever model data get updated(CRUD) u have to call this node.
    2. Use Mapping type node and bind it to BG ui element  exe : when we create any node It has 4 options one of them is Mapping select this and provide the model node
      (mapping of node with model node is replica of the content there in model node, here u don't have to worry about updated content since its replica and get changed eveytime when model operations is performed)
    Best Regards
    Satish Kumar

  • Problem with Business Graphics

    Hai,
    I am using Business graphics , I Used to display the simple series in a <b>coloumns</b> graph.
    I want to display the total amount of the graph in top of every coloumn..
    I want to display the value of the coloumn at the top of the coloumn.
    i need the above graph as
    3
    2
    1
       |----
    How to display the values in graph like this.....
    regards,
    Message was edited by: Naga Raju Meesala

    hai,
      my context structure is like this
        +ABC
           series2(double)
           series3(double)
           series4(double)
           series5(double)
           series6(double)
    My UIElement Structuer
         +BG1
            Category1
             SimpleSeries2
             SimpleSeries3
             SimpleSeries4
             SimpleSeries5
             SimpleSeries6
    code is like this..
    IPrivateFBGAppView.IAbcNode aNode = wdContext.nodeAbc();
         IPrivateBGAppView.IAbcElement elm;
    elm = wdContext.createAbcElement();
         elm.setCategoryText("Cat");
            elm.setSeries2(32);     
            elm.setSeries3(23);
            elm.setSeries4(45);
            elm.setSeries5(32);
         elm.setSeries6(18);
         al.add(elm);
    regards,
    Message was edited by: Naga Raju Meesala

  • Problem with Business Graphic:

    Hi Everybody!
    I am working with a UI control Business Graphic in WebDynpro Java,
    I need to change the text of the legend, and is taking an automatic value, what is the property in the Chart Designer where I can adjust this?
    Thanks in advance for your help.
    Edited by: Briger Palacios on Jul 6, 2011 11:16 PM

    Hi Briger,
    For Changing ur own legend , just write the label property of "SimpleSeries" ,which comes under  your "BusinessGraphics" .
    As many simple series will be there, that much no of legend is require, so just write your label of each simple series.
    if any doubt , plz let me knw.
    Regards
    Brajesh Kumar

  • Problem with Stacked Columns in Business Graphics

    Hi,
    Has anyone used the stacked columns chart type in business graphics?  Am facing a problem with this.
    I am using the SimpleGraphics example demo with 2 dataseries, the values ranging from 0-10.  It works fine if the chart type is Columns (this is default).  When I change the chart type to stacked_columns, the graph goes for a toss.  The y-axis range automatically changes to 0-1 (values as 0, 0.2, 0.4 ... 1.0) and it does not display stacked columns as expected.
    Is there any specific property(s) that need to be set for this chart type?
    Appreciate any quick response.
    cheers,
    Vittal

    Hi friend,
    See the link below it is having the solution of hiding the columns in smart forms
    Hide table columns in smart form?
    Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
    I think this will solve your issue if you still have queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Acquisition of an Asset with Negative value

    Hi Gurus,
    How to do acquisition of an asset with negative value?
    Please tell me the Tcode for doing this transaction.
    Please revert asap.
    Thank You

    Hi,
    The business scenario is.............
    We have to charge some interest on asset last year but we have not charged it.
    Now asset value is zero and if we charge interest on it, it will go to negative.
    That's we are thinking to create new asset with negative value.
    Hope this will help you understand.
    Please revert asap.
    Thank You

  • Credit note for invoice with item with negative value

    Hi,
    is it possible to create credit note for invoice, where in one line is negative value (its non stock item).
    There exists 2 possibilities:
    negative qty and positive price (its possible create only through SDK, not SBO)
    positive price and negative qty
    for example
    itemcode 123
    qty -1
    price 1000
    How to create credit note from this invoice?
    Thanks a lot for hints.
    Petr

    Hello Petr Verner,
    It's a standard functionality of Business one, that it is impossible to enter a negative amount in an independant credit note or in a credit note based on a invoice with negative amount.
    To solve this issue:
    1.  For the rows with the positive Row Total, create an "independent" Credit Memo (not based on an Invoice).
    2.  For the rows with the negative Row Total, create another Invoice with a positive Row Total opposite to the original negative Row, and reconcile between the two rows manually via Banking => Bank Statements and Reconciliations => Reconciliation.
    Hope the above helps.
    Wilma Wang
    SAP Business One Forums Team

  • Business Graphics, intermixing chart types

    Hi to all,
    Has anyone tried to intermix chart types?  Specifically, i'm trying to display a "column" type chart, but I would like to have a straight horizontal line through the chart indicating a key value or values.  Any help would be greatly appreciated.
    Thanks in advance

    Hi Michael,
    follow the following link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/web dynpro tutorial and sample applications.faq#q-20
    How to use Business Graphics in Web Dynpro applications?
    The following tutorial shows you step-by-step how to create a simple business graphic using Web Dynpro.
    A simple business graphic is a chart consisting of a category and one or more data series. Column charts, bar charts and pie charts are typical examples of simple business graphics.
    Simple business graphics differ from complex business graphics, such as scatter charts and portfolio charts.
    Requirements
    In order to use business graphics in your application, you must install the Internet Graphics Service (IGS) on your server environment. Furthermore, the IGS must be configured on the J2EE engine.
    Code Sample
    The ready-to-use project is available to download from SDN.
    Corresponding Tutorial
    Using Business Graphics
    Hope this helped you
    Regards,
    RK

Maybe you are looking for

  • Can anybody tell me the program behind Tcode S_ALR_87012078

    Hi, can anybody tell me the program behind Tcode S_ALR_87012078 The program I find is GP1M8IJ5LO18YK19QBZLF70R92P. when I copied to another report and executing it . I find a slight different input screen what I get from the standard Tcode. Regards M

  • I am not able to open a cd through my imac

    I have an imac with a folder for Windows.  I go back and forth and cannot remember how to get my cd to upload on my imac.

  • Sending INVOICE as attachment in PDF for  external Mail address

    HI!, We have made configuraiton for sendin mail while saving VF01 or VF02 from SAP R/3 to external id. Email is going to the partner Payer but the attachment of the invocie is going as OTF format and not in PDF. Where i am missing. I have gone thro t

  • .MOV files play audio but no video

    hi, does anyone know why that when i open a .MOV file from my digital camera in quicktime, the audio plays fine but the picture however is a fuzzy green and purple mess? i have tried re-installing quicktime and everything but it makes no difference.

  • Access Policy and Resources -11gR2

    Hi all, I have create an Access policy in 11gR2, its working fine and as per requirement the Resource is getting provisioned / revoked properly. In *11gR1* resources provisioned through the Access policy were used to be displayed / listed in the User