Regarding Business Graphics : Type Pie Chart

Hello Experts,
I am using the business graphics of type Pie Chart. I get the data properly displayed in the form a pie chart pir ture. But only thing missing here is, i dont get to see what percentage or the number of each part of pie.
Example:
I have a scenario where i want show the number or percentage on the parts of pie chart. It can be like a mouse over display or a plan static disply on each part of pie.
Is this possible.. if yes .. kindly suggest.
Thanks,
Naresh

Hi,
Go through the following link.
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81]
It gives a step by step procedure for creating business graphics in WDA.
Hope it helps.
Thanks.

Similar Messages

  • Buisness graphics dynamic PIE chart event id

    HI all,
    I'm trying to create dynamic PIE chart :
    Link to sdn document *
    First I declared in the context node a table ( 0…n )
    PIE – 0…N  with attributes :
    Categorty – type string
    Series – type i
    Then I'm creating the business graphics :
    DATA:lr_graph TYPE REF TO cl_wd_business_graphics,
    lr_cat TYPE REF TO cl_wd_category,
    lr_series TYPE REF TO cl_wd_simple_series,
    lr_container TYPE REF TO cl_wd_uielement_container,
    lr_flow TYPE REF TO cl_wd_flow_data.
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_graph = cl_wd_business_graphics=>new_business_graphics(
    bind_series_source = 'NODE_DYN'
    chart_type = cl_wd_business_graphics=>e_chart_type-pie
    height = 340
    width = 750
    id = 'GRAPH' ).
    lr_flow = cl_wd_flow_data=>new_flow_data( element = lr_graph ).
    lr_container->add_child( lr_graph ) .
    wd_this->value_cs ?= lr_graph.
    wd_this->mr_view ?= view.
    Now I'm creating the category and series :
    wd_this->value_cs =? Lr_graph
    wd_this->mr_view ?= view.
    Series :
    DATA: lr_bgr_ss TYPE REF TO cl_wd_simple_series.
    lr_bgr_ss = cl_wd_simple_series=>new_simple_series(
    bind_value = ‘NODE_DYN.SERIES’
    label = ‘Series_1’
    event_id = ‘Series_1’
    id       = ‘Series_1’
    view = wd_this->mr_view ).
    Wd_this->value_cs->add_series( lr_bgr_ss ).
    Category :
    DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
    lr_bgr_cs = cl_wd_category=>new_category(
    view = wd_this->mr_view
    event_id = ‘Series_1’
    id       = ‘Series_1’
    bind_description = 'NODE_DYN.CATEGORY').
    wd_this->value_cs->set_category( lr_bgr_cs ).
    Now I'm binding the data :
    Data : ls_pie type wd_this->element_pie.
    Data : lt_pie type table of element_pie.
    ls_pie-category = 'test_category1'.
    ls_pie-series = '34'.
    Append ls_pie to lt_pie.
    ls_pie-category = 'test_category2'.
    ls_pie-series = '73'.
    Append ls_pie to lt_pie.
    Data : lo_nd_pie type ref to if_Wd_context_node.
    Data : lo_el_pie type ref to if_wd_context_element.
    Lo_nd_pie = wd_context->get_child_node(
    Name = wd_this-> wdctx_pie.
    The above is the only way that I succeeded to create 2 categories for the pie chart but I cant isolate the event id for every category.
    I tried also to create another series with the same id and other event id but still got the same problem.
    Please suggest a solution for creating dynamic pie chart with event id for every category or series .
    Regards,
    Arie.

    Hi Rama,
    Thank you for your reply ,
    I added the BIND_EVEND_ID = 'NODE_DYN.SERIES'  and it worked fine.
    I'm trying now to get rid of the static context element.
    I've declared the following :
    DATA : NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO ,
                  STRUCT_TYPE TYPE REF TO CL_ABAP_STRUCDESCR ,
                  TABLE_TYPE REF TO CL_ABAPDESCR=>COMPONENT_TABLE,
                 COMP LIKE LINE OF COMP_TAB.
    COMP-NAME = 'CATEGORY'.
    COMP_TYPE ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_NAME( 'STRING' ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'SERIES'.
    COMP_TYPE ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_NAME( 'I' ).
    APPEND COMP TO COMP_TAB.
    STRUCT_TYPE = CL_ABAP_STRUCTDESCR=>CREATE( COMP_TAB ).
    NODE_INFO = WD_CONTEXT->GET_NODE_INFO( ).
    NODE_INFO = NODE_INFO->ADD_NEW_CHILD_NODE (
    NAME = 'NODE_DYN'
    IS_MANDTORY = ABAP_FALSE
    IS_MULTIPLE = ABAP_TRUE
    STATIC_ELEMENT_RTTI = STRUCT_TYPE
    IS_STATIC = ABAP_FALSE) .
    FIELD-SYMBOLS  <TABLE> TYPE TABLE.
    FIELD-SYMBOLS  <WA> TYPE WA.
    DATA : TABLE TYPE REF TO DATA.
    DATA : WA TYPE REF TO DATA.
    CREATE DATA TABLE LIKE TABLE OF STRUCT_TYPE.
    ASSIGN TABLE->* TO TABLE.
    TODO ?? - Add data to FS <TABLE>
    *Binding :
    DATA : DYN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
    DYN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'NODE_DYN').
    DYN_NODE->BIND_TABLE( <TABLE> ).
    How do I append data to FS <table> with the relevant components ?
    Is there any  other efficient way to append the data and bind  ?
    Regards,
    Arie.

  • Regarding Business Graphics?

    Hi All,
    i want to creat a chart in WDA.i.e Business Graphics...
    Can u plz give me Sample tutorials if any .
    Regards,
    Ravi

    Hi,
    Go through the following link.
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81]
    It gives a step by step procedure for creating business graphics in WDA.
    Hope it helps.
    Thanks.

  • Business Graphics like Graph, charts.

    Hi,
    can you provide me with some materials or any video that can help me creating business graphs like charts, graphs, etc dynamically. i am working on analyticals, so you can try and understand the scope.
    Thanks
    Piyush Deora

    Hi,
    Use the following document to create Business Graphics in WDA.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81
    For further information, have a look at the WDP component WDR_TEST_EVENTS, views BG*.
    Also go through the Business Graphics UI elements in the Reference section of the WDP Documentation.
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    reward points if helpful.
    Edited by: Kranthi Gurram on May 20, 2008 9:51 AM

  • 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

  • Business Graphics:Create multiple Pie charts dynamically

    Hi Experts,
    I have a requirement to create 10 different pie chart in a view in a Grid layout.
    The charts will be created dynamically because the data will be known at runtime.
    Any type of help will be appreciated
    Regards.

    Hi,
    Here is a simple example:
    you must write this code in wdDoModfy() method, in if (firstTime){}
    in the layout there is already created one transperent container with id BG_CONTAINER
    //add a node
    IWDNodeInfo loDynNode = wdContext.getNodeInfo().addChild("DynNode", null, true, false, true, false, false, true, null, null, null);
    //add some attributes to it
              loDynNode.addAttribute("DynAttr1Str", "ddic:com.sap.dictionary.string");
              loDynNode.addAttribute("DynAttr2Int", "ddic:com.sap.dictionary.integer");
    //get the node
              IWDNode node = wdContext.getChildNode("DynNode", 0);
    //fill the node with some values
              for (int i = 0; i < 10; i ++){
                   IWDNodeElement element = node.createElement();
                   element.setAttributeValue("DynAttr1Str", "Str value " + i);
                   element.setAttributeValue("DynAttr2Int", new Integer(i));
                   // Add to the content
                   node.addElement(element);
    //get the attributes, we will use the attrinfo to bind them to the series
              IWDAttributeInfo loDynAttr1StrInfo = loDynNode.getAttribute("DynAttr1Str");
              IWDAttributeInfo loDynAttr2IntInfo = loDynNode.getAttribute("DynAttr2Int");
    //create the graphics
              IWDBusinessGraphics loGraphics = (IWDBusinessGraphics)view.createElement(IWDBusinessGraphics.class,"bg1");
    //set the type to pie
              loGraphics.setChartType(WDBusinessGraphicsType.PIE);
    //create a simple series and bind the integer attribute to it
              IWDSimpleSeries loSSeries = (IWDSimpleSeries)view.createElement(IWDSimpleSeries.class, "Series1");
              loSSeries.bindValue(loDynAttr2IntInfo);
    //create the  category and bind the string attribute to it
              IWDCategory loCategory = (IWDCategory)view.createElement(IWDCategory.class,"Category1");
              loCategory.bindDescription(loDynAttr1StrInfo);
    //add series and category
              loGraphics.addSeries(loSSeries);
              loGraphics.setCategory(loCategory);
    //I assume that there is a transperent container already created design time to put the graphics there
    //container with id BG_CONTAINER
              IWDTransparentContainer loContainer =  (IWDTransparentContainer)view.getElement("BG_CONTAINER");
    //add the graphics
              loContainer.addChild(loGraphics);
    If this is the type of graphics you need then you must simply do a for cycle and supply the graphics with the right node elements and you are ready.
    Best regards,
    Anton

  • Drill down in pie chart using Business Graphics?

    Hi,
    I have create a pie chart using business graphics UI element. is it possible to drill down when we click on a part of pie chart?
    Please let me know how can we achieve this. Thank you.
    Regards,
    Bharat.

    I got the solution. we can identify this by using the event id property.
    Regards,
    Bharat.

  • Business Graphics - Chart Type - Columns, and Simple Scatter Type

    Hi,
        I am interested to know more about Business Graphics Specially Chart types Columns and
    Scatter type ( and Time Scatter).  I am facing problem in producing X and Y Co-ordinate values for Charts. (Specially Date Values in X Axis.). I tried with Time Scatter type and need more documents.
    Expecting Good Documents and suggestions.
    Thanks, 
             Vinod V

    Hi
    Check this link
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/86/243f403f0a9354e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/0b/79553b066d9414e10000000a114084/frameset.htm
    https://help.sap.com/saphelp_nw04/helpdata/en/0c/95c83956852b51e10000000a114084/frameset.htm
    thanks

  • Action on category of splitt pie chart-- business graphics

    Hi all,
    I have a requirement for creating an action on click of a category of splitt pie chart type which will change the other catagory data corresponding to that portion of chart. Is this functionality possible or not. If yes plz guide me the steps.
    Regards,
    Madhavi

    Hi Shishir,
    Bad news for you... I think the only way to do it is by creating and adding the chart dynamically in the code.
    Regards,
    Mathieu.

  • Legend not appearing for Chart Type columns/bars in business graphics

    Hi Experts,
    I'm not able to make the legend appear in web dynpro screen.As such graphs is coming but the legends are not appearing at runtime. When i customize the graph using t-code 'BS_ANLY_CD'  or right-click on business graphics, the legends are appearing in customizing preview but not in runtime.
    Could anybody help me out in this issue?
    Below is the screenshot of the same.
    Thanks in advance.
    Regards,
    Bob.

    Its solved .Solution is below.
    You just need to add the label description for both the series then the legend will automatically come as shown below.

  • Business Graphics - Pie Chart

    Hi,
    How to display the value of each pie in a pie chart in the form of percentage?
    Regards,
    Nikita

    http://www.hostpix.de/file.php?dat=DvsJtq41.JPG
    I hope this has helped you
    Edited by: Bettina Spitzmüller on Jun 3, 2008 8:56 AM

  • Business Graphics: Time Scatter, Line Chart, Column Chart

    Hi all,
      I have a requirement of intermixing of Bar/Column-Chart and Line-Chart. How to do this? I also need to color the columns.. Any Documents or Ideas will be appreciated.
    Thanks,
        Vinod V

    Hi, Rohit & Neha
       I think, my question is not clear..
    My requirements are on Business Graphics (Not in IWDTable), where i need to represent my data in different columns (Levels). Each level will be Represented in different colors.
    Eg: Top level of my Graph will have RED,
          Middle by YELLOW and
          Bottom part would be with GREEN.
    My Second Question is on using Multiple Graph types in same graph...
    Where data will be represented in Column/Bar Chart and in the same graph i need a curve to display the max value pointed by Column Chart..
    How can i achieve this?
    Regards
       Vinod V

  • Business Graphics - Bar Chart - How to make the height extendable

    Hi Experts,
    I have created Business Graphics UI element for my WD application which fetches data from R/3. I am displaying
    1) Cost Element in Y-axis and Cost in X-axis.
    2) I have set ChartType = Bar, height = 300, width = 830
    When the no of cost elements is upto 7-8, the graph is getting displayed correctly.
    However when the no of cost elements increases to more than 12, the graph becomes un readable. The system displays lot of texts in Y-axis.
    I want to make sure that if no of cost elements increases, the Y-axis of graph should extend.
    How we can do so?
    Regards,
    Gary

    I could not got any solution of this issue. Finally I convinced the customer to display only top 10 records. Any way higher level managers won't have time to see the graphs of all data.
    One way of resolving the issue is like this - create say 3 Business Graphic UI element. The height of Business Graphic UI element can be set as 300, 600, 900 etc.
    For 10 records use Business Graphic UI element  of height 300.
    For 20 records use Business Graphic UI element  of height 600.
    For 30 records use Business Graphic UI element  of height 900.
    Use the 'Visibility' data type to hide / unhide the Business Graphic UI of different height.

  • Overlay a graphic on a Pie Chart, & Rotate text in a Pie Chart

    Is it possible to overlay a graphic on a pie chart?
    I've tried manipulating the Wrap Inspector, but regardless, when I paste a graphic on topic it drops below the pie chart and deletes one segment of the pie.
    In a related pie chart question, is it possible to rotate the text to face into the central axis, think spokes in wheel (vs. the default horizontal). I can rotate the pie chart in about 3 dif. inspectors, but no luck here...and my texts is just a little too long to fit nicely in the default (and too hard to read if I reduce the font size).
    Thanks

    I assume you want to have a graphic that sits over the chart, and that you see the values underneath? Something like a shine, worn texture or logo?
    If you are wondering what happened to your particular 'missing slice' open the Graph inspector and select that section. Chances are you have changed the tiled image which was assigned to that particular piece of the pie chart.
    To overlay a graphic, draw a circle shape. In the graphics inspector assign an image fill to that shape. Choose tiled or scale to fit as required (a png. file with transparencies will show the underlying values, as will setting the opacity of the circle)
    Turn the wrap off for the circle (It sounds like your pie chart may be set to 'moves with text' instead of 'locked to page') And then place it overtop of the pie chart. Resize to fit. Since this is now 'locked to page' and above the pie chart, any movement of the pie chart means you will have to reorient your overlay. To avoid this, set the pie chart to Locked to Page as well.
    At this point you can set the wrap for the pie chart so the text moves around it if you like. Your overlay and the pie chart will remain in sync if they are both fixed to page.
    Regarding your text question, no. You can't set that. What you can do is use a numerical, letter or symbolic value and include a legend manually to indicate the true names of the portions using a text box.
    (I've seen someone with a pie chart whose segments were labeled with seven words, the last two of which were the only ones that changed. I suggested using the unchanging portion as the graph title and the changing portion as the individual slices. Not sure if that would apply to your project.)

  • Unable to Customize a "Pie" Business Graphics

    I have created a WD Component and below the development details:
    View : BG_CATEGORY
    UI Element:
    Business Graphics: BG
    I selected chartType as "Pie" and now trying to customize the business graphics ui element. However, every time I start Chart Designer.
    By default, the chartType in Chart Designer is "Columns". I don't understand how to resolve the issue.
    XML file generated is: cd_bg_category_bg.xml ( I don't feel name is so long )
    I tried searching a lot on google and SCN. However, Couldn't find any material on the same.
    Any help/hint is appreciated.
    Thanks,
    Preetam

    Hi Rama,
    Thanks for your reply.
    I have already tried to remove the xml files from mime repository and importing manually from PC as well as I removed it and started the customization a fresh. Nothing seems to be working.
    I am attaching two screenshots:
    1. Chart Designer (http://oi60.tinypic.com/5js21t.jpg)
    2. Browser Display screenshot (http://oi62.tinypic.com/21kk03n.jpg)
    The changes are getting reflected in Chart Designer. However, Not reflected in Browser(Run-time).
    Looking forward to some input from you.

Maybe you are looking for

  • Error while creating a setup package .

    Hi ALL, We are trying to create a setup package (SP20 client)  for our application after assinging the device configurations their roles and conditions to the Hierarchy Group which we created It gives the following error while creation of the setup 

  • How do I create a title effect in CS3?

    Hey guys First post here I was just wondering how would I make the same title effect used in this video at 38 seconds where it says TERRY TATE http://www.youtube.com/watch?v=RzToNo7A-94 I'm a big Premiere Pro noob, so please make answers understandab

  • Program for a user to enter grades...having a problem

    I have a project I am doing for class...this is what i have to do. "Your instructor needs a program that will input the letter grades of students and perform the following calculations along with the corresponding output: 1.) compute and print a lett

  • How do I run sp_spaceused for all tables in a database?

    Hi, I am struggling to understand how to run the sp_spaceused sproc for all tables in a database. I know how to use it for one table but how would I replicate it automatically for each table in a given database? Regards, Ian.

  • Authorization Relevant Info Objects

    Hi Experts,   In my Business scenario,Profit center infoobject is authorization relevant for FI reports.In my FI reports,I have used profit center authorization variable.FI reports are working fine according to the authorizations. In sales Report,use