Multiple DVT Bargraphs: Fixing the (0,0) position, consistently

Hi,
In our project, we have a requirement where we will be displaying three graphs using bargraph (BAR_VERT_CLUST) tabular data property (which gets values from backend).
As and when the input values are changed, the graphs will be reset with the new values.
I want to set the position of the (0,0)  same in all the graphs i.e., at the center of the graph.
Now we see that, ADF itself decides the (0,0) position. Thus, when we have more than one graph, the (0,0) point is not positioned at the same location on the graphs
Kindly, suggest if there is anyway to set the position of axis fixed in this scenario.
Thanks,
Pandu

Hi,
In our project, we have a requirement where we will be displaying three graphs using bargraph (BAR_VERT_CLUST) tabular data property (which gets values from backend).
As and when the input values are changed, the graphs will be reset with the new values.
I want to set the position of the (0,0)  same in all the graphs i.e., at the center of the graph.
Now we see that, ADF itself decides the (0,0) position. Thus, when we have more than one graph, the (0,0) point is not positioned at the same location on the graphs
Kindly, suggest if there is anyway to set the position of axis fixed in this scenario.
Thanks,
Pandu

Similar Messages

  • Fixing the loupe tool position while making adjustments

    I haven't found a way to do this - maybe it's an enhancement - but just in case ....
    Is there a way to fix the loupe in position while making adjustments (ex. noise and sharpness)? I'd like the loupe to display real-time the results of the adjustments being made.
    I checked the manual but didn't see anything. Is it do-able or is it future?
    Thank you.

    I haven't found a way to do this - maybe it's an
    enhancement - but just in case ....
    Is there a way to fix the loupe in position while
    making adjustments (ex. noise and sharpness)? I'd
    like the loupe to display real-time the results of
    the adjustments being made.
    I checked the manual but didn't see anything. Is it
    do-able or is it future?
    Actually right around the time of 1.0.1 a number of people were asking for this - I also submitted a suggestion to see it as well.
    Currently the closest thing you have is to zoom in on a specific area at 100% and evaluate that region while making changes. That works pretty well, but with larger images 100% is not quite close enough.
    There are two ways to fix that I think, allow the user to define what the "100%' zoom really is, or allow the user to have multiple sticky loupes they could leave on an image.

  • Regarding dvt:barGraph individual bar as %

    Hi All,
    I am having a bargraph using dvt:barGraph with % in Y axis.But when the bars are showing in y axis then the % are not specific to the individual bars.They are like 0 20 40 60 80 100 % .I have three individual bars.So I want to show individual % of bar ..Please let me know how can we do that ....
    Here is my code :
    <dvt:barGraph id="barGraph1" subType="BAR_VERT_PERCENT" tabularData="#{pollSurveyBean.tabularData}"
    animationOnDataChange="ON" threeDEffect="true"
    seriesTooltipLabelType="TLT_DIM_MEMBER"
    imageFormat="AUTO"
    flashDefaultFontLoading="FLASH_DEFAULT_FONT_LOADING_ALL"
    dynamicResize="DYNAMIC_SIZE"
    animationOnDisplay="AUTO" drillingEnabled="false"
    markerTooltipTemplate="Y_VALUE"
    markerTooltipType="MTT_VALUES">
    <dvt:background>
    <dvt:specialEffects/>
    </dvt:background>
    <dvt:graphPlotArea borderTransparent="true"/>
    <dvt:seriesSet defaultFitlineType="FT_LOGARITHMIC">
    <dvt:series color="#4494d1"/>
    <dvt:series color="#f8b853"/>
    <dvt:series color="#999999"/>
    </dvt:seriesSet>
    <dvt:o1Axis scrolling="asNeeded"/>
    <dvt:y1Axis axisMinAutoScaled="false" axisMinValue="0.0"
    axisMaxAutoScaled="false" axisMaxValue="1.0" logarithmicBase="1">
    <dvt:numberFormat id="numberFormat1"
    numberType="NUMTYPE_PERCENT"
    leadingZero="false" decimalDigit="0"/>
    </dvt:y1Axis>
    <dvt:legendArea automaticPlacement="AP_NEVER"
    position="LAP_TOP" scrolling="asNeeded"/>
    <dvt:graphTitle text="#{pollSurveyBean.getQuestion}">
    <dvt:graphFont id="graphFont1" name="Arial" bold="true"/>
    </dvt:graphTitle>
    <dvt:y1MajorTick id="y1MajorTick1" tickStyle="GS_EXTENDED"/>
    <dvt:o1TickLabel id="o1TickLabel1"/>
    <dvt:legendTitle id="legendTitle1">
    <dvt:graphFont id="graphFont2" name="Arial"/>
    </dvt:legendTitle>
    <dvt:y1TickLabel id="y1TickLabel1"/>
    </dvt:barGraph>

    I found this thread while searching for a solution to a similar problem.
    We can reach a workaround by using <dvt:annotation>, see more: http://docs.oracle.com/cd/E24001_01/apirefs.1111/e12418/tagdoc/dvt_annotation.html
    So our page should look like:
    <dvt:barGraph id="barGraph1"
                  value="#{bindings.MyGraphView1.graphModel}"
                  subType="BAR_VERT_CLUST">
      <dvt:annotationSet>
        <af:forEach begin="0"
                    end="#{bindings.MyGraphView1.estimatedRowCount - 1}"
                    varStatus="vs">
          <dvt:annotation text="#{cf:getValue(bindings.MyGraphView1.graphModel, vs.index, 0)}"
                          series="#{vs.index}"/>
        </af:forEach>
      </dvt:annotationSet>
    </dvt:barGraph>In the page definition:
    <graph IterBinding="MyGraphView1Iterator"
           id="MyGraphView1"
           xmlns="http://xmlns.oracle.com/adfm/dvt" type="BAR_VERT_CLUST">
      <graphDataMap leafOnly="true">
        <series>
          <data>
            <item value="Salary"/>
          </data>
        </series>
        <groups>
          <item value="DepartmentId" label="DepartmentName"/>
        </groups>
      </graphDataMap>
    </graph>And this is the code of taglib function cf:getValue:
    public static Object getValue(oracle.adf.view.faces.bi.model.DataModel model, Integer row, Integer col)
      throws oracle.dss.util.RowOutOfRangeException, oracle.dss.util.ColumnOutOfRangeException
      oracle.dss.util.DataAccess da = model.getDataAccess();
      return da.getValue(row, col, oracle.dss.util.DataMap.DATA_VALUE);
    }AP

  • Dvt:barGraph, ActiveDataModelDecorator etc...

    (JDev 11.1.1.7)
    Has anyone succeeded in getting this combination to work?
    Just dropped (read only) ViewObject from data control as a dvt:barGraph on the task flow 's jsff fragment.
    And the data is properly displayed in the form of bar graph.
    I am _not using task flow call activity (ADS does not work in that case)
    Then tried to use active data service, by extending  ActiveDataModelDecorator
    In the overriden getModel() method, I am succesfully obtainend DataModel (by evaluating original barGraph value property from the fragment's pageDef).
    In the overriden getActiveDataModel() method, I am returning my custom BaseActiveDataModel instance, here is the code:
    public class GraphActiveModelClass extends BaseActiveDataModel {
        public GraphActiveModelClass() {
            super();
        protected void startActiveData(Collection<Object> rowKeys,
                                       int startChangeCount) {
            System.err.println("startActiveData() call");
            _listenerCount.incrementAndGet();
        @Override
        protected void stopActiveData(Collection<Object> rowKeys) {
            System.err.println("stopActiveData() call");
            _listenerCount.decrementAndGet();
        @Override
        public int getCurrentChangeCount() {
            return changeCounter.get();
        public void graphDataChange() {
            changeCounter.incrementAndGet();
        public void notifyDataChange(ActiveDataUpdateEvent event) {
          fireActiveDataUpdate(event);
        private final AtomicInteger changeCounter = new AtomicInteger();
        private final AtomicInteger _listenerCount = new AtomicInteger(0);
    So, I changed the value property for dvt:barGraph to point to  ActiveDataModelDecorator instance (registered as a session bean).
    And tried to run app.
    But, I am stuck with:
    java.lang.NullPointerException
        at oracle.adf.model.dvt.binding.common.CommonBinding.getStateKey(CommonBinding.java:114)
        at oracle.adf.model.dvt.binding.common.CommonBinding.getStateObject(CommonBinding.java:91)
        at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:215)
        at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:190)
        at oracle.adf.model.dvt.binding.transform.cube.CubeDataModel.getDataAccess(CubeDataModel.java:450)
        at oracle.adf.model.dvt.binding.transform.cube.CubeDataModel.getDataAccess(CubeDataModel.java:441)
        at oracle.adf.view.faces.bi.model.DataModel.getDataAccess(DataModel.java:405)
        at oracle.adf.view.faces.bi.model.ActiveDataModelDecorator.getDataAccess(ActiveDataModelDecorator.java:187)
        at oracle.adfinternal.view.faces.bi.renderkit.graph.GraphRendererUtils.updateCommonGraph(GraphRendererUtils.java:356)
        at oracle.adfinternal.view.faces.bi.renderkit.graph.RichGraphRenderer.updateImageView(RichGraphRenderer.java:361)
        at oracle.adfinternal.view.faces.bi.renderkit.imageView.RichImageViewRenderer.updateImageViewModelAndProperties(RichImageViewRenderer.java:581)
        at oracle.adfinternal.view.faces.bi.renderkit.imageView.RichImageViewRenderer.encodeAll(RichImageViewRenderer.java:486)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
        at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils$EncodeChildVisitCallback.visit(InvokeOnComponentUtils.java:142)
        at org.apache.myfaces.trinidadinternal.context.FullVisitContext.invokeVisitCallback(FullVisitContext.java:154)
        at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:401)
        at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
        at oracle.adf.view.faces.bi.component.graph.UIGraph.visitTree(UIGraph.java:467)
        at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:469)
        at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
    Te first line in the stackTrace, where NPE occurs actually is following statement (from CommonBinding.java:)
    sb.append(getBindingContainer().getBindingContext().getCurrentDataControlFrame());
    (sb is the StringBufer, and is not null)
    Any idea ?
    Any working sample anywhere ?

    Hi Shay, thanks for useful response. Here is getModel() method from my custom ActiveDataModelDecorator: 
    public DataModel getModel() {
    if (graphData == null) {
    FacesContext fc = FacesContext.getCurrentInstance();
    Application app = fc.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext el = fc.getELContext();
    // This is EL to avoid typecasting to an Internal class.
    ValueExpression ve = elFactory.createValueExpression(el,
    "_original_graph_value_from_pageDef", Object.class);
    // Now GET the collectionModel
    graphData = (DataModel)ve.getValue(el);      
    return graphData;  
    Now, if I understand correctly, you suggest to avoid this way, and to build DataModel in another way, "by hand" ? I probably have a way to access ViewObject with data, but have no idea how to build DataModel instance from that data. Maybe you have one example how to do that ?
    P.S. sorry for formatting, this editor crazes me :-(

  • Dvt:barGraph how to put anotation text at multiple positions

    We are rendering some data in the form of bargarph using dvt:barGraph.
    Here we want to achieve couple of usecases which are as following
    1) we need to put anotation text at multiple positions on the graph.
    2) We are using Reference Objects in the bar graph. The text that appears as tooltip for these Reference Objects, we want to render that text embedded in the reference objects as static text.
    how to acheive the above?
    I am using Jdev 11.1.1.3.0
    Thanks
    Ajay
    Edited by: Ajay on Mar 13, 2012 6:06 AM

    The "clipboard" service for copy and paste between applications on a PC is usually a built-in function of the operating system - Mac, Windows, Linux, etc. There are applications available for extending the clipboard feature; I use one named Clip Trakker which allows me to save multiple "text clips" of ''[say]'' text from the internet which are saved in Clip Trakker, and then paste each of those "text clips" into a different program like Word ''[I actually use Libre Office]''.
    I am not familiar with applications for Mac OSX, so I can't make any recommendations about an application.
    As far as extensions for Firefox, there are many extensions that come up in a [https://addons.mozilla.org/en-US/firefox/search/?q=clip&appver=any&platform=all search for "clip"] at the Add-ons Mozilla Org website. You can look to see if you can find any that will do what you want to do, like maybe this one: <br />
    https://addons.mozilla.org/en-US/firefox/addon/clipboard-plus/

  • How to fix the position of controls, so table expands into whitespace and doesn't push lower controls down (invoice report in SSRS 2005)

    I am designing an invoice report. There are some controls at the top of the report (company logo, date, invoice number etc), followed by a table listing the items in the invoice, followed by some controls at the bottom (subtotals, returns address etc). The report should always print onto a single page.
    I want the controls at the bottom to have a fixed position on the page. There is sufficient whitespace between these controls and the table above for the table to expand to list many items. However whenever it expands it pushes the lower controls down. This results in them spilling onto a second page.
    Is there a way to fix the position of controls and suppress the "gets pushed down when controls above expand" effect?

    Thanks for that. I found a good solution using rectangles here: SQL Server 2005: Report Design Best Practices and Guidelines
    Here's the relevant part (see underlining):
    Using Rectangles to Keep Objects Together
    Rectangles in Reporting Services can be used either as graphical elements or as containers of objects. As object containers, they keep objects together on a page and control how object move and push each other.
    To keep multiple objects together on a page, put the objects within a rectangle. You can then put a page break before or after the rectangle by using the PageBreakAtStart or PageBreakAtEnd properties for the rectangle.
    Using Rectangles to Control Item Growth and Displacement
    Items within a rectangle become peers of each other and are governed by the rules of how peer items are positioned on the page as they move or grow. For example:
    Items will push or displace each other within the rectangle.
    Items will not push or displace items outside the rectangle, because they are not their peers.
    If necessary, a rectangle will grow to accommodate the items it contains.
    You can use this logic to your advantage when dealing with objects that expand. For example:
    If you want to leave a blank space in your report for a table to expand into, group the blank space and the table in the same rectangle. When the table grows, it will push the blank space .
    If you want to prevent a matrix from pushing items off the right edge of the page, put the matrix within a rectangle with blank space to its right. Now, the matrix is no longer a peer to the other item on the page and will not be able to push it until the matrix can no longer be contained within its rectangle.

  • My family put multiple devices on the icloud, and I need to know how to manage duplicate entries.  Specifically contacts.  If I fix the contact list on my pc will it push the info out to the other devices and maintain it correctly?

    My family put multiple devices on the icloud, and I need to know how to manage duplicate entries.  Specifically contacts.  If I fix the contact list on my pc will it push the info out to the other devices and maintain it correctly?

    All devices signed into the same iCloud account will finish up with the same contacts. Of course if prior to joining iCloud two family members each had an entry for Uncle Fred, then you will finish up with two contact cards for Uncle Fred, and so on. If you tidy this up on your computer then the changes will propagate to everyone else.

  • How do you fix the position of an object vertically only ("static" position horizontally)?

    I want to fix a "title" bar of a table vertically, but allow it to scroll with the rest of the page content horizontally. At the moment it's position is "fixed" which fixes the position vertically but horizontally too. I would like to have the coloured cells move horizontally with the rest of the table in the case that the browser window is not wide enough.
    Can this be done? If so, how?
    (this picture shows that the horizontal positions are different - would like them to remain in line with each other)
    Sorry if this is a silly question, I've only started using Dreamweaver yesterday... Thank you in advance for any help and advice.

    If you want to align your item horizontally center, left or right (along with other website content), you can put that item within a fixed position container, then align the item within the container however you see fit.
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <div id="container" style="position:fixed; top:0px; height:100px; width:100%; border:1px solid orange;">
         <div id="item" style="width:300px; margin:auto; border:1px solid black">Some Content</div>
    </div>
    </body>
    </html>
    In the simplified example above, the container div is fixed to the top of the page, the item div is also then fixed at the top, however using css, it is  centered to the browser window. The border properties are there for illustrative purposes

  • I created a PDF of my book in Preview and encrypted it. When opened in Adobe Reader, it is rotated to the vertical position rather than the original landscape position. How do I fix this in Preview? I don't want my buyers to have to hassle with rotating.

    I created a PDF of my book in Preview and encrypted it. When opened in Adobe Reader, it is rotated to the vertical position rather than the original landscape position. How do I fix this in Preview? I don’t want to hassle my buyers with rotating. There was no option in Preview to account for this automatic and unwanted rotation.

    Then you rotate it and SAVE or SAVE AS and it will remain that way.

  • How to fix the position of JInternal frames added in JFrame

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    In Jframe I added one rootPanelI don't know what a rootPanel is or why you think you need to add one.
    The general code should probably be something like:
    frame.add(userPanel, BorderLayout.CENTER);
    frame.add(buttonPanel, BorderLayout.SOUTH);
    frame.pack();Read the section from the Swing tutorial on [Using Layout Managers|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for more information and working examples.
    For more help create a [SSCCE (Short, Self Contained, Compilable and Executable, Example Program)|http://sscce.org], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How to fix the position of JInternalFrames added in JFrame.

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    import javax.swing.plaf.basic.*;
            BasicInternalFrameUI internalframeUI = (BasicInternalFrameUI)frame1.getUI();
            internalframeUI.getNorthPane().addMouseListener(new MouseAdapter() {
                public void mouseReleased(MouseEvent evt) {
                    frame1.setBounds(0, 0, frame1.getWidth(), frame1.getHeight());
            });

  • Fixing the position of TitleWindow component.

    Hello,
    I am trying to create an application which has different pages using Flex. Each page is a Flex Title window.
    When I click on an icon in the main application window, another page should open (which is actually a title window).
    I am trying to fix the position of title window from moving. I should not be able to drag title window in the browser.
    I am trying to find a way but was failing each time
    Can you please help me in resolving this problem?
    Thank you for your cooperation.
    Cheers,
    KK

    Try using a Panel component instead of TitleWindow.
    HTH,
    Kenny Yates

  • Please help me ! how to fix the position of NSWindow ?

    Hello everybody,
    I have a NSwindowController < NSWindowDelegate > (with windowWillUseStandardFrame implemented) which is supposed to fix the position of my window.
    Except never this method is called ! Nevertheless there is indeed a delegate...
    In fact in the launch of my soft, the system makes little as it wants: it cascades me windows or keeps me the last position of every window.
    I tried to deactivate the cascading, the same problem...
    All the directives concerning the NSWindow seem to be ignored !
    I do not know if it is a pure coincidence, but since I passed of a macBook 13p under 10.6 (XCode 4.0.1) in a mini mac with screen 24p under 10.7 (XCode 4.3), everything seems not to work any more as before ?!
    I wish I can align in the topleft of my screen all my windows (I tried all the concerned methods, the same problem) to loosen me of the resolution of the screen.
    If you have an idea, it will be welcome.
    Thanks you in advance.
    FM.

    OUNAS wrote:
    I find very openly the management of the positioning of a window very complex while it is a basic task !
    Thanks.
    FM
    Bonjour Ounas,
    It is not complex, within Cocoa simple things are easy to implement (and complex are possible). If you find it the other way you made a mistake somewhere.
    In your case I would start by putting a breakpoint in the methods and run the application in Debugg Mode.
    And if :
    - your method is not called
    - your window is 0x0 inside the method
    Closely look in Interface Builder if the connection is correct between your window and its variable in code and if your controller object is well assigned as its delegate. For that just select the window object in the nib and do a right/control click on it to see if it is well connected with controller's objects (alternatively use the Menu -> View -> Utilities -> Show Connections Inspector).
    As for the time to call your "fix" method what about the "- (void)windowDidLoad" call in your window controller subclass ?
    I had lots of troubles to get it called when I started with Cocoa. For it to works you have to be sure the window is well connected in IB to your window variable. And you need to load that f*¿!^ fichue window by any call to it via your controller like
    //After call window is 0x0 in the debugger if you look at it by unfolding the triangles self>controller>NSWindowController
    controller = [[RTWindowController alloc]init];
    //This one will trigger the controller's windowDidLoad method
    [controller showWindow:self];
    //a simple [controller window] is enough to bring it to life
    hth
    laurent

  • How to fix the position of table columns.

    Hay all,
    Can anybody tell me that how to fix the position of columns in a table.By default the columns can be moved to any position in the table.
    Regards,
    Sharad Agarwal

    table.getTableHeader().setReorderingAllowed(false);this will do...
    Regards,
    Byju

  • How to fix the position of different component?

    Hay all,
    Can anybody tell how to fix the position of any component so that they cant be moved from there initial positiion
    Regards,
    Sharad Agarwal

    Set layout to null and set bounds of the component to whatever you like.

Maybe you are looking for

  • Custom Workspace UI

    Hi, I have followed all the steps in the "Customizing the LiveCycle Workspace ES User Interface" document and am stuck on page 22, point #8 for those of you that might have the document to hand. I have created my custom ear file but cannot find the c

  • Quickvpn / client to gateway vpn rv042 can only ping router

    I am setting up remote access using an RV042 router.  Using quickvpn or a client-to gateway vpn and shrewsoft client,  I can only access/ping the LAN side of the remote router and one machine on the remote network.  The PPTP server and native Windows

  • Getting an error in Java Project in SAP NetWeaver Developer Studio

    Hi, I am getting this error in my Java Project developed in SAP NetWeaver Developer Studio. Exception occurred during launch Reason: Source locator does not exist org.eclipse.jdt.debug.ui.javaSourceLocator Is this problem of not defining some Externa

  • Spry extention for rss feed

    I have used the spry extention to make a drop down menu but can I really make a rss feed with this extention? The quick links on this page used the spry technology extention. < http://www.msad54.org > Thanks, Nancy

  • How to edit an item in a JComboBox

    I want the user to be able to edit an item in a combobox box. You select an item, edit in the top, press enter, and viola, the item is renamed. I've tried some approaches but they're not working out. Thanks for any ideas. What's the point of having a