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

Similar Messages

  • 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 graphics Customizing chart not found; contact administrator in MSS

    Hi All,
    We are getting error Business graphics Customizing chart not found; contact administrator in MSS-->Home Service only for one user but for remaining users it is working fine. Please find the below screenshot.
    Please provide your inputs......
    Regards,
    Rahul.

    go to t -code st01 and switch on the trace on top and tick the buttons in that and after that ....check for working  manager user id  first and do it  with this user which is not working u can know  any authorisations are missing assign them for this user ..ur issue will be solved

  • 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 UI SimpleSeries Changing Label Dynamically

    Hi guys, I am using the business graphic UI element in one of my WD4A component. My BG has 2 simple series and one category. As I can see, using simple series, the label property cannot be bound against a context node attribute. I have to find a way to set this property dynamically.
    According to this link: click after on the simple series
    [http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/frameset.htm]
    It seems we can change the label property dynamically, maybe using the API but how?
    I found the interface IF_WD_BUSIN_GRAPHICS_MTD_HNDL, but I don't know how to use it!
    thanks
    Alex

    Hi Alexandre,
    have a look at the Web Dynpro component WDR_TEST_EVENTS, view BG_SIMPLE_IN_MPANE, method WDDOMODIFYVIEW.
    Here is a snippet for setting additional customizing or data for a business graphics view-element. Call this from method WDDOMODIFYVIEW.
    DATA lr_bg TYPE REF TO cl_wd_business_graphics.
    DATA lr_bg_method_handler TYPE REF TO if_wd_busin_graphics_mtd_hndl.
    DATA lr_add_cust_xml TYPE REF TO if_ixml_document.
    lr_bg ?= ir_view->get_element(  <your viewid of business graphic>  ).
    lr_bg_method_handler ?= lr_bg->_method_handler.
    lr_add_cust_xml =  get_<your additional customizing/data>.
    lr_bg_method_handler->add_direct_customizing(
    i_customizing = lr_add_cust_xml
    Kind regards,
    Silke

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

  • (Webdynpro Java)Business Graphics -  Speedometer Color settings

    Hi All,
    I want to implement Speedometer for a Webdynpro(Java) application which should show one value dial(Arrow) and one limit dial.  Limit dial Arrow should be in red color and the Speedometer area after the limit dial area should be in red.    I don't know how to configure this.  Can somebody help me.  
    Thanks in advance.
    Regards
    Lakshmi
    Edited by: lakshminarayanan  j on Sep 22, 2008 7:24 PM

    When you right click on the graphics element and select edit, it should open the properties editor.
    Where in you can set most of the properties.
    I guess you can accomplish your task there.
    If it doesn't satisfy your requirement, then there is a way of setting the xml file which is more tidious.
    If option 1 doesn't work, lemme know, I'll tell you how to set the xml.
    -Aarthi

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

  • Reg : Customizing Business Graphics.

    Hi All,
    I am trying to customize Business Graphics, (i.e) changing the font, background and etc.., I modified the design by using "Edit Customizing" option of the Business Graphics UI. But whatever the modification i did in the design time was not replicated in the run time. Is anything more to do...?
    Thanks,
    Mugu

    Hi,
    Apart from making cutomizing settings in Chart Designer, you can also write the following code
    in domodifyview method to bind the settings at run time.
    ** Build the XML string to set the GRAPH title*
      *DATA: l_ixml            TYPE REF TO if_ixml,*
             *l_document        TYPE REF TO if_ixml_document.*
      *DATA: l_element_SAPChartCustomizing TYPE REF TO if_ixml_element,*
            *l_element_Elements TYPE REF TO if_ixml_element,*
            *l_element_ChartElements  TYPE REF TO if_ixml_element,*
            *l_element_Title    TYPE REF TO if_ixml_element,*
            *l_element_Caption      TYPE REF TO if_ixml_element,*
            *l_element_ChartAxes   TYPE REF TO if_ixml_element,*
            *l_element_CategoryAxis   TYPE REF TO if_ixml_element,*
            *l_element_ValueAxis   TYPE REF TO if_ixml_element,*
            *l_value           TYPE string.*
    **       Creating a ixml factory*
      *l_ixml = cl_ixml=>create( ).*
    **       Creating the dom object model*
      *l_document = l_ixml->create_document( ).*
    **       Fill root node with value SAPChartCustomizing*
      *l_element_SAPChartCustomizing  = l_document->create_simple_element(*
                  *name = 'SAPChartCustomizing'*
                  *parent = l_document ).*
    **       Create element 'Elements' as child of 'flights'*
      *l_element_Elements  = l_document->create_simple_element(*
                  *name = 'Elements'*
                  *parent = l_element_SAPChartCustomizing  ).*
    **       Create element 'ChartElements' as child of 'flights'*
      *l_element_ChartElements  = l_document->create_simple_element(*
                  *name = 'ChartElements'*
                  *parent = l_element_Elements  ).*
    **       Create element 'Title' as child of 'flights'*
      *l_element_Title  = l_document->create_simple_element(*
                  *name = 'Title'*
                  *parent = l_element_ChartElements  ).*
    **       Create element 'Caption' as child of 'flights'*
      *l_value = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '052' ).*
      *l_element_Caption  = l_document->create_simple_element(*
                  *name = 'Caption'*
                  *value = l_value*
                  *parent = l_element_Title  ).*
    **       Create element 'ChartAxes' as child of 'flights'*
      *l_element_ChartAxes  = l_document->create_simple_element(*
                  *name = 'ChartAxes'*
                  *parent = l_element_Elements  ).*
    **       Create element 'CategoryAxis' as child of 'flights'*
      *l_element_CategoryAxis  = l_document->create_simple_element(*
                  *name = 'CategoryAxis'*
                  *parent = l_element_ChartAxes  ).*
    **       Create element 'Title' as child of 'flights'*
      *l_element_Title  = l_document->create_simple_element(*
                  *name = 'Title'*
                  *parent = l_element_CategoryAxis  ).*
    **       Create element 'Caption' as child of 'flights'*
      *l_value = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '015' ).*
      *l_element_Caption  = l_document->create_simple_element(*
                  *name = 'Caption'*
                  *value = l_value*
                  *parent = l_element_Title  ).*
    **       Create element 'ValueAxis' as child of 'flights'*
      *l_element_ValueAxis  = l_document->create_simple_element(*
                  *name = 'ValueAxis'*
                  *parent = l_element_ChartAxes  ).*
    **       Create attribute 'id' for elsement 'ValueAxis'*
      *l_element_ValueAxis->set_attribute( name = 'id' value = 'ValueAxis1' ).*
    **       Create element 'Title' as child of 'flights'*
      *l_element_Title  = l_document->create_simple_element(*
                  *name = 'Title'*
                  *parent = l_element_ValueAxis  ).*
    **       Create element 'Caption' as child of 'flights'*
      *l_value = lv_con_curr.*
      *l_element_Caption  = l_document->create_simple_element(*
                  *name = 'Caption'*
                  *value = l_value*
                  *parent = l_element_Title  ).*
      *DATA : lr_container TYPE REF to cl_wd_uielement_container,*
             *lr_bg TYPE REF to cl_wd_Business_Graphics,*
             *lr_bg_method_handler type ref to IF_WD_BUSIN_GRAPHICS_MTD_HNDL .*
    **Get the Valuation type container*
      *lr_bg ?= view->get_element( id = 'BGR_REMINQ' ).*
      *lr_bg_method_handler ?= lr_bg->_method_handler.*
    *CALL METHOD LR_BG_METHOD_HANDLER->CLEAR_DIRECT_CUSTOMIZING.*
    *CALL METHOD LR_BG_METHOD_HANDLER->ADD_DIRECT_CUSTOMIZING*
        *EXPORTING*
          *I_CUSTOMIZING = l_document.*

  • Business Graphics 3D display

    Hi,
    I have created a Webdynpro Application with Business Graphics. I am trying to create a 3D display of Bar charts which is working fine with developer user id. When the same application is executed by an End User it displays in 2D. Can some one suggest how to handle this?
    Thanks in Advance.
    Regards,
    Sridhar M R

    Hi Gayathri,
    Please cehck this..
    Different color in business graphics
    Unable to change graph color
    Cheers,
    Kris.

  • How to change the value of a color picker?

    Hi *,
    I am currently working on a small project and I would like to use the colorpicker. When I initialize the colorpicker the, the widget is updated and shows the correct color, but when I try to change the value at runtime, nothing happens. Did I miss something?
    Many thanks
    package javafx.tests.colorpicker;
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Insets;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ColorPicker;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    public class ColorPickerChangeColor extends Application {
         public static void main(String[] args) {
              Application.launch(args);
         @Override
         public void start(Stage stage) throws Exception {
              VBox vbox = new VBox();
              vbox.setPadding(new Insets(10));
              vbox.setSpacing(10);
              Button button = new Button("Press me.");
              final ColorPicker colorpicker = new ColorPicker(Color.BLUE);
              button.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent arg0) {
                        colorpicker.setValue(Color.YELLOW);
                        System.out.println("Set color of the picker to yellow.");
              vbox.getChildren().add(colorpicker);
              vbox.getChildren().add(button);
              StackPane root = new StackPane();
              root.getChildren().add(vbox);
              stage.setTitle("ColorPicker");
              Scene scene = new Scene(root, 200, 200);
              stage.setScene(scene);
              stage.show();
    }Edited by: 963445 on Jan 3, 2013 12:23 PM

    Yeah, it's a known bug:
    http://javafx-jira.kenai.com/browse/RT-22538 "[ColorPicker] changing color using setValue() ... is not reflected by rectangle and text on control."
    In fact, there are 34 known ColorPicker bugs:
    http://javafx-jira.kenai.com/secure/IssueNavigator.jspa?reset=true&jqlQuery=%28summary+%7E+colorpicker+OR+description+%7E+colorpicker+OR+comment+%7E+colorpicker%29+AND+issuetype+%3D+Bug+AND+status+in+%28Open%2C+%22In+Progress%22%2C+New%29

  • Change the Business Graphic Y-axis from decimal scale value to integer

    Hi,
    I am trying to get rid of the decimal points of the Y axis scale to integer.
    The scale value is currently showing like below:
    13.86
    10.395
    6.93
    3.465
    (This actual data set is currently fall between 3.xxxx to 12.xxxx)
    I want the scale label to display in integer, like this:
    15
    12
    9
    6
    3
    or
    13
    10
    6
    3
    This is determined dynamically as I have made the below settings.I am mapping the seriesSource of the Percentage BusinessGraphic to a node of attributes type of decimal.
    In the Chart Designer, I am setting the Y Value Axis configuration as below:
    Minimum  value: 0
    Minumum calculation: Automatic
    Maximum value: 100
    Maximum Calculation: Automatic
    Can you advise me how I can control the graph Y axis scale label to display in integer while I am mapping to a node of decimal data (for percentage values)?
    Thanks,
    KC

    Hi, Poojith.
    After making the below change:
    1. The "Scaling Type" in the "Value Axis" of the Chart Designer is Linear.
    2. I converted the type of the attribute bound to the SimpleSeries to new Decimal(double)
    I am still not able to achieve what I want. I am checking the value of the Value Axis --> Line --> Format.
    Based on the field description ("Specifies the format of the label output"), it seems like it is the value I should change. It is currently BLANK.
    Let me try it out. Please advise if you have any information on the Format string pattern I should use.
    Thanks,
    Kent

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

Maybe you are looking for

  • Creative Cloud and Master Collection CONFLICT.

    I had first subscribed to Photoshop on the Cloud, then when the Black Friday sale came along I unsubscribed from that and subscribed to the full Creative Cloud for the same price. Then I got the Master Collection on disc, so I unsubscribed from the C

  • How do I change the color of all the text in a PDF?

    Hi. I have a large PDF, over 1000 pages. Some of the text is highlighted which makes it difficult to see on my preferred document background. In Acrobat XI how do I change the color of all the text in the document back to black please? Although solut

  • Configure Windows Domain Logon on Airport Express

    The question is... How can I configure Windows Domain Logon data on an Airport Express so it connects automatically without asking each of my other devices for login credentials? I use my Airport Express at work connecting it through ethernet, and th

  • Spotlight search crashes finder

    Greetings, I have searched the discussions for this, but found nothing: Certainly the answer is probably simple, but it is escaping me... When I do a Spotlight search of an AFP volume on a Window 2003 server, and the search contains the exact word as

  • Sync interrupted - will verify eventually complete?

    I added a new playlist to my iPhone but the sync was interrupted before it completed (but after it was backed up thankfully) and now selecting 'Playlists' from the iPod menu on the phone will cause it to hang. If I plug the phone back into the comput