Business Graphics UI adding series at runtime.

Hi all,
I want to add the series at runtime as number of series's are dependent on the data which I am getting, so is it possible to add series at runtime and is possible how can we do that.
Thanks

Hi,
Refer the following thread
https://forums.sdn.sap.com/watches!add.jspa?forumID=249&threadID=953906
Regards,
Manivannan P

Similar Messages

  • 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

  • Help with Capturing Business Graphics data point

    Hi,
    I created a BusinessGraphics UI element with SimpleSeries and assigned eventId for the categories and data points. I am able to get the series that is clicked through the event but I would like to know which point (value) is clicked as well.
    The steps I followed are
    1. Created BG UI element, category and SimpleSeries
    2. Assigned eventIDs
    3. Created an action class and mapped it to the UI element
    4. Code in wdDoModifyView is
         if (firstTime)
           IWDBusinessGraphics chart = (IWDBusinessGraphics) view.getElement("bgCSB");
           chart.mappingOfOnAction().addSourceMapping("id", "pointID");
    5. Implemented action class with one parameter (pointID) and able to get the value.
    Can someone help me to get the data point values from the user click.
    Appreciate your help.
    Thanks,
    Kalyan

    You have done everything right, except I don't think you can do this with simple series.
    Create something like this:
    in the context:
    series-> (this node can be with 1..1 cardinality and 1..1 selection)
       points->
           label (string)
           value (int)
           pointId (string)
    in the business graphics:
    create one series (not simple one) and add to it one point of numeric type.
    in the properties of business graphics bind seriesSource to series context.
    Series: bined poitSource to series.points
    Series_points: bind eventId to series.points.pointId
                            bind label to series.points.label
                            bind valueSource to series.points
    Values (these are the numeric values): bind value to series.points.value
    in wdDoModify method do the same thing as you have done already.
    Now, when you click on a point you will receive in your event in pointId variable the pointId context attribute value.
    Best regards,
    Anton

  • 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 : Set label for a Simple Series

    I need to set label to simple series of Business graphics object. Since the Label property is not bindable; i am looking for the alternative way to achieve this. (Any attempt to pass the context would give error msg: Method bindLabel( String) is undefined for the type IWDSimpleSeries)
    I want to have a string value in each points in graph (Line Graph), not i legend.
    tips will be highly appreciated.
    Thanks,
         Vinod V

    Hi Vinod,
    The label property for IWDPoint should solve your purpose.
    IWDPoint API 'label' property - This property is used to specify an optional text to be displayed for a point in a business graphic.
    Refer SAP NetWeaver Library http://help.sap.com/saphelp_nw04s/helpdata/en/1f/20ef3d5e10af5ee10000000a114084/frameset.htm
    Kind Regards,
    Nitin
    Edited by: Nitin Jain on Apr 8, 2009 4:40 PM

  • Business Graphics Tool - Series

    Hello All,
    I have developed a Graph using the Business Graphics charting tool. The application is a Web Dynpro application.
    My graph has to display two lines (or range of values). In order to do that, I have created two Data Series, to which I pass values at run time. The Graph is appearing correctly.
    How ever some of the values in both the series are the same. Hence the two lines criss-cross each other. At this point the values displayed on the graph becomes jumbled up.
    I also saw an option for creating 'Series' objects. Here we can set whether the labels should appear on the left side of the line, its format etc. etc. But I am not finding a way to interlink the Series object, with the Data Series object. The setting would be like:-
    Data Series 1 would be using Series Object 1 (in which the value labels would appear on the left side of the line)
    Data Series 2 would be using Series Object 2 (in which the value labels would appear on the right side of the line)
    Any help is appreciated. TIA
    PKS.

    Hi,
    the connection between your customizing settings and the data is done using a customizing ID, i.e. tell WD the ID of each series and use exactly the same ID in the chart designer when creating the customizing settings (please note that you can easily rename the default names as desired).
    Regards, Kai

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

  • Business Graphics - Series Label

    Hi,
    I have 1 Category and 4 series in a Business Graphics. I want to display the Series Labels dynamically, and i have to map to the Context Variables for the Labels. But, i am not seeing any option to map the Label property to the Context Variable.
    Any Ideas? Please let me know.
    Thanks

    Hi,
    I assume you are currently using the SimpleSeries in your application. Try to use Series with Points und Values. It is more complicated, but gives you more possibilities such as binding labels etc.
    Hope that helps
    Jens

  • 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

  • How to add series to Business Graphics control dynamically?

    Hi Experts,
    How to add series to Business Graphics control dynamically?
    I tried the method add_series( ) but could not use it properly.
    If you have any clues of using it, let me know.
    I need it urgently.
    Best Regards,
    Arti.

    I'm not sure what ADD_SERIES method you are refering to. The only programable API for the Business Graphics that I found was this one:
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/e61cd068dc3ee4e10000000a1553f7/frameset.htm
    I've not ever tried it, but you not just add the series UI element like any other dynamic UI manipulation during the WDDOMODIFYVIEW?
    http://help.sap.com/saphelp_nw70/helpdata/EN/11/ba74412cba127de10000000a155106/frameset.htm

  • 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

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

  • Dynamic Tooltip Text over Business Graphics

    Hello,
    I would like to know if there is a possibility to display dynamically point coordinates (or other tooltip text) in a Business Graphics when the mouse is going over the gragh or when clicking ?
    Thanks a lot
    Marc

    Hello Marc,
    WebDynpro Point, Series and SimpleSeries elements have a tooltip property that you can define whether in design time or runtime.
    Please see the details here http://help.sap.com/saphelp_nw04/helpdata/en/dd/65d79bb3b2e34e8b68f59129e7d811/frameset.htm
    Best regards,
    Dmitry

  • Business Graphics: Link between SeriesList and Categories

    Hello everyone,
    I have a Business Graphics with a Category Subelement and a SeriesList with a Value inserted.
    The Series List is linked to a node, so my series are dinamically created during runtime. My problem is that the number of categories i have are allways different from the number of series, and categories is a discret set of values known at design time. How do i link each category to a set of values from the SeriesList ?
                        Thank you in advance,
                                  Nuno Santos

    Hi Nuno,
    Check this link you will get the code.
    http://help.sap.com/saphelp_nw04/helpdata/en/e5/08b6eb35637a44830b9e6df22987aa/frameset.htm
    IPrivateGanttTestView.ICategoryNode catNode = wdContext.nodeCategory();
        for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
          IPrivateGanttTestView.ICategoryElement
                  catElement = catNode.createCategoryElement();
          catNode.addElement(catElement);
          catElement.setDescription(catLabels[catIndex]);
        // loop over series
        IPrivateGanttTestView.ISeriesNode seriesNode = wdContext.nodeSeries();
        for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
          IPrivateGanttTestView.ISeriesElement
                  seriesElement = seriesNode.createSeriesElement();
          seriesNode.addElement(seriesElement);
          // set series attributes (...)
          IPrivateGanttTestView.IPointNode pointNode = seriesElement.nodePoint();
          // loop over points
          for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length;
               ++pointIndex)
            IPrivateGanttTestView.IPointElement
                    pointElement = pointNode.createPointElement();
            pointNode.addElement(pointElement); 
            pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
            pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
            pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
            pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);    
    Regards,
    Mithu

Maybe you are looking for