Conditional legend in DVT graph

Hi,
Is there a way to somehow conditionally show/hide the legend tag of a DVT based on some runtime values?
<dvt:barGraph id="barGraph1" >
  <dvt:legendArea automaticPlacement="AP_NEVER" rendered="false"/>
</dvt:barGraph>I checked out the rendered property and it is not EL accessible so obviously this isnt something you can set at runtime.
But I am just wondering if somebody has done a 'hack' or 'workaround' for this.
Thanks.
JDEV 11G PS5

...somehow I got confused with the reference documentation http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12418/tagdoc/dvt_legendArea.html
I just looked at the document and it says it is not EL Accessible. Only a TRUE or FALSE are the valid values so my first thought is that I cannot set this at runtime using managed bean.
But I noticed that you can still set this value in a managed bean at runtime by clicking the downward icon at JDveloper attributes.
Not sure if my understanding of the documentation is correct or there is just some problem with the documentation.
<dvt:legendArea automaticPlacement="AP_NEVER"
                                    rendered="#{pageFlowScope.myBean.isShowLegend}"/>Anyhow my use case is solved.

Similar Messages

  • Hide the legend in DVT

    All,
    how do we hide the legend of any DVT graph in Jdev 11.1.1.5 ?
    thnks

    render = false for legend area and legend title

  • Advanced dvt:graph customisation

    Hi,
    I need to make the following changes on a dvt:graph ( graphType="PIE" ) but I don't see how I could do it.
    1- Set the font for the Title, Subtitle, Footnote and legend elements
    2- Avoid truncating the Subtitle when its too long
    3- Set the space before and after the pie ( after the subtitle and before the legend )
    4- Completely hide the label under the pie ( data label )
    I know there is also a "advancedPropertiesXML" on the dvt:pieGraph but I can't find any example for that.
    Is it possible to do that?
    Thanks

    Hi,
    We are working on exposing the pie label as a child tag, but in your current build you will have to set it via the other properties XML or via Graph Java API.
    Here as an example of binding the whole graph. this would be the code in your backing bean:
    public UIGraph getMyGraph() {
    if (m_graph == null) {
    m_graph = new UIGraph();
    CommonGraph graph = (CommonGraph)m_graph.getImageView();
    // Customize the Pie label
    String pieLabel = "<Graph version=\"11.1.1.0\"><PieLabel>" +
    "<GraphFont size=\"16\" /></PieLabel></Graph>";
    m_graph.setOtherProperties(pieLabel);
    return m_graph;
    In your jspx page:
    <dvt graph ...
    binding="#{MyBean.myGraph}"
    </dvt:graph>
    Or, you can bind only the otherProperties property in the backing bean.
    Hope this helps
    Katia

  • How to Generate Event on change in Plot Legend for XY Graph

    Hi,
    I have two XY graphs on the front panel and would like to maintain a common plot legend such that any change in the plot legend affects both graphs.
    Objective: I would like any value change in plot legend to fire an event.
    How do I program that?
    I know of value change event for the graph but am unable to find something specific to the plot legend. Other option is to have the user press a "refresh" button that will fire the event.
    Feel free to share thoughts on other elegant methods to achieve the same objective.
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hi Sarah,
    Looks like you are talking of exactly what I want!
    I have attached a sample VI to try achieve what I want. But it still has some issues which are:
    1) I am unable to configure a Plot Attribute Change Event. I have used a mouse leave event instead. How does one configure a Plot Attribute Change Event?
    2) Is there no single property which will transfer all the settings of plot legend from one graph to plot legend of another graph? In my sample VI, I have to read each property of the master graph and feed it into the slave graph.
    Kindly note I am using LV FDS 7.1 on Win2000
    Thanks,
    Gurdas
    Message Edited by Gurdas on 03-27-2006 11:51 PM
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu
    Attachments:
    Graph_PlotLegend_Event.vi ‏45 KB

  • Error when displaying 2 DVT Graph in same page

    Hi,
    I am using jdev 11g.
    I have a sample page with 2 graph on it. When the page is displayed only one graph is shown.
    <af:form>
    <dvt:graph id="p102" binding="#{TestManagerBean.myGraph}"
    graphType="#{TestManagerBean.graphType}" threeDEffect="true"
    shortDesc="graph pie" contentDelivery="immediate"
    annotationsVisibility="SHOW_ALL" animationIndicators="ALL"
    animationOnDataChange="AUTO" animationOnDisplay="AUTO"
    markerTooltipType="MTT_VALUES"
    noDataErrorText="No Data Found"
    inlineStyle="width: 400px;height: 300px;">
    </dvt:graph>
    <dvt:graph id="p1022" binding="#{TestManagerBean.myGraph}"
    graphType="#{TestManagerBean.graphType}" threeDEffect="true"
    shortDesc="graph pie" contentDelivery="immediate"
    annotationsVisibility="SHOW_ALL" animationIndicators="ALL"
    animationOnDataChange="AUTO" animationOnDisplay="AUTO"
    markerTooltipType="MTT_VALUES"
    noDataErrorText="No Data Found"
    inlineStyle="width: 400px;height: 300px;">
    </dvt:graph>
    </af:form>
    Kindly advice
    Emile BITAR

    Hi Emile BITAR,
    binding="#{TestManagerBean.myGraph}"Have you tried creating separate bindings for each of the graph?
    Regards,
    Chan Kelwin

  • Scroll bar on legend for xy graph

    Is there a way to create a scroll bar for the legend of an XY graph?  The number of entries in the legend will be changing programmatically so the legend needs to be able to grow dynamically (which I have figured out how to do using property nodes).  Any ideas?
    Cheers
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    Ultimately I will have 6 xy graphs in my vi, I would like to have a seperate scroll bar for the legend of each graph.  Each graphs legend will both grow and shrink as the program runs and I would like to use the scroll bar to keep the legend from growing off of the screen.  I would like to be able to dislpay the data from the point (6 m/s for example) along with its symbol on the xy graph (red dot for example) in the legend.  If I am umderstanding you correctly I need to bundle the type and color of the plot into a cluster with the data and then link that cluster to the scroll bar, I assume I can read the property node for each data point (setting it to active plot first) for both plot style and color?  Let me know if I am thinking about this correctly or if I have misinterpreted what you are saying.  Thank you very much for your help!
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • How can I cache dvt graph results?

    Hello colleagues, I need some help regarding dvt graphs performance.
    In our application we have big amount of data which the user can filter by adding grouping options, time ranges, etc. For the graph to be updated (the query to be re-executed), the user has to press a "Refresh" button each time he changes the query parameters.
    Once the new results are displayed in the graph, the user can change the graph type by pressing either a pie, bar, line or table buttons. As a consequence of this, the query is re-executed and returns the same previous results. This obviously drops the performance of the application.
    So, how we can manage to refresh the type of graph (for example from pie to bar) without re-executing the query. Note that the "Refresh" button should always re-execute the query even if the parameters were not changed.
    I'll appreciate your help.
    Regards,
    Nicolas
    Edited by: 864814 on Oct 14, 2011 6:05 AM

    And by the way how are you switching the graph type? Are you using an af:graph tag and switching just the type? Or are you rendering a complete new graph on your page?

  • Bug in dvt:graph tag? Cannot set graphType attribute using EL expression

    Dear all,
    First thing sorry if this is not the correct forum, but I have a problem that is driving me crazy with ADF DVT tags in JDeveloper environment.
    I'm working with DVT tags to display some graphs in my application. I need to decide at runtime the type of graph I'm going to render in my page, because the type of graph is stored in a database. Also, I use tabular data instead of Data controls, because I have to reuse POJO objects from an existing model tier.
    I have seen that you can bind the graphType attribute of <dvt:graph to a backing bean property, as explained in : http://www.oracle.com/technology/products/jdev/11/how-tos/dvt_how_tos/adf_dvt_graph_howto.html. You can even change the type dynamically responding to user actions, ie : you can change for example from BARS to AREAS or whathever. So far so good, the problem is that I have tried the simplest example possible and it seems that I cannot bind the graphType attribute to a backing bean property using an EL expression.
    In my example, the backing bean has a type property with fixed value AREA_VERT_ABS, but it renders as a BAR_VERT_CUST, that is to say, it completely ignores the binding for the graphType attribute, but the binding for the tabularData attribute works properly because it renders the dummy data provided. I have tried with other types of graphic and it always renders as BAR_VERT_CUST.
    I'm working with JSF 1.2 + Facelets + JDeveloper 11.1.1.2.0 and the integrated weblogic server.
    My page is a facelet page as follows :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/trinidad/faces">
    <af:document id="d1">
    <af:form id="f1">
    <dvt:graph id="g1" graphType="#{graphBean.type}" tabularData="#{graphBean.tabularData}" >
    </dvt:graph>
    </af:form>
    </af:document>
    </f:view>
    My backing bean :
    public class GraphBean {
    private String type = "AREA_VERT_ABS";
    public GraphBean() {      }
    public String getType() {
    return type;
    public List getTabularData() { // here I return a hardcoded list that is properly displayed ///
    Note : the sam page but changing #{graphBean.type}" by "AREA_VERT_ABS" renders properly :
    <dvt:graph id="g1" graphType="AREA_VERT_ABS" tabularData="#{graphBean.tabularData}" >
    </dvt:graph>
    Any advice will be very much appreciated.
    Thanks and regards,
    Plan.

    Hello,
    Actually the setter is not needed because the tag only reads, but it does not update the backing bean.
    Anyway for verification pourposes I have changed to the following version without results.
    Anyone from Oracle could give me some light ?
    public class GraphBean {
    private String type = "AREA_VERT_ABS";
    public GraphBean() {      
    public void setType(String type) {
    this.type = type;
    public String getType() {
    return type;
    }

  • Legend for 3d graph

    I want to know how to make a legend for 3d graph.
    I actually posted my question on the following thread but since there havent been any replies, I thought I could just post it here.
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=160715#M160715
    Please click on the link for my question.
    Thanks.

    Hi kmo,
    I'm sure it is possible to get a color map... but I'm affraid I could'nt get to the result you wish I think I'm not far..
    Maybe somebody knows hox to get it from the variant, I am not used to use these "tools": Sory...
    If you don't need a real 3D graph, it might be easier to use an intensity graph.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Wafer.vi ‏99 KB

  • No legend title on graph.

    In Anserws I added graph view. All is ok, but legend text is empty.
    In mesures area (Vertical Axis ) there are two bars:
    1. totals for products
    2. totals for regions
    Horizontal axis is date
    When editing graph view, on sample area there are legend text like this:
    sample
    | -- totals for products
    |________ -- totals for regions
    but when I open analyse there is no text 'totals for products' and 'totals for regions' for legend markers
    In graph properties on tab 'Title and legend' for Labels for Legend I choose Font:family=Arial Narrow, color=#000080, style=regular, size 20

    Welcome to the Apple Discussions. Previewing the book as LarryH suggested the dust jacket will look like this:
    Click to view full size
    There you can see the elements of the jacket. If you choose a photo cover with no text you won't get any text on the spine.
    Happy New Year

  • Dvt:Graph How to define own Style Rule Bundle

    Hi,
    I need help in defining style rule bundle in the backing bean to be used in the styleRuleBundle tag of dvt:graph
    say for example I nee need to define the follwing rule...
    All data value points below 50 should display in green
    from 50-80 it should be yellow and 80-100 must be red in colour...
    regards

    Add to your resource bundle:
    af_dvt_hv.fetchingData=Your textDario

  • Weather forecast in dvt graph

    Hi!!
    I am using jdeveloper 11.1.1.5
    I need to show the weather forecast information in dvt graph which should be updatable.
    Could any one pls help me!!

    Sorry jhon!!
    +Where do you get the weather forecast from?+I need to get the weather forecast from any sites.,
    For Eg: Many websites like yahoo!! tey are giving an updatable weather forecast similar to that
    To be more clear.
    While we are using Geographical map we are giving some location URL so that the map renders
    +How do you want to display the forecast?+I need to display the weather forecast in dvt: Graph [Line]
    If there is any better UI Components other than graph. please provide it also
    +You want the weather forecast to be up-datable? What do you mean by that - the user updates the weather forecast?+No User will update the weather forecast
    Hope i am clear.,
    To be more clear., If there any solution on how to access the weather forecast pls provide me.,

  • How to change series/groups of a DVT graph at runtime?

    With my scenario, I would like to bind a graph with a dynamic query. "Dynamic" means the query constructed at runtime. So I want to detrmine the series and groups of a DVT graph at runtime. I.e., I want to do this with Java programatically.
    I read some articles and tutorials but have not found a topic on this. I think this should be a common requirement. Anyone can tell me how to do this? Thanks.

    Are you using ADF BC and data binding or regular JSF binding?
    For the first one you can try and create a VO with columns a,b and then at runtime change the VO definition similar to how it is done here:
    http://blogs.oracle.com/shay/2010/10/adf_faces_dynamic_tags_-fora.html
    (but keeping the synonyms for the columns constant).
    For case B - you just need to change the collection data that you pass to the graph.

  • DVT: Graph - Issues with Automatic Sizing Inside PanelDashboard

    Hello. To start off, here is the background information:
    JDeveloper Version: Studio Edition Version 11.1.2.2.0, Build JDEVADF_11.1.2.2.0_GENERIC_120418.2212.6183.1
    WebLogic Version: JDeveloper built-in version
    Error messages received: None
    We have developed a DashboardAPI for internal use at my company that is largely based off of the example provided on the ADF Demo page:
    http://jdevadf.oracle.com/adf-richclient-demo/faces/visualDesigns/dashboard.jspx
    We have also implemented the minimize and maximize functionality as it exists in the demo. However, in all of your dashboard panel boxes, we have a dvt:Graph component as the direct child. The inline style for all dvt:graphs is "width:100%; height:100%;". The actual flash component for the dvt:graph appears to be completely stretched when the page is first rendered. You can tell this by right clicking on the graph component and selected the Flash settings; by doing this, the entire flash component becomes "grayed out". This is where you can see this. Now if you minimize the graph to the dock bar, then restore it, the panel box comes back, but the dvt:Graph "rerenders", and stretches even further to completely fill out the entire panel box. I'm trying to figure out why it would behave like this. The only difference I see is that while restoring the panel boxes from the "dock", the code performs a prepareOptimizedEncodingOfInsertedChild(), instead of when the dashboard is initially created upon first load by creating the graph components programatically and adding them directly to dashboard.getChildren().
    I have included two links to screenshots showing the before minimize and after minimize to illustrate what I mean:
    Before: http://www.flickr.com/photos/60499750@N05/8534801846/
    After: http://www.flickr.com/photos/60499750@N05/8534801824/
    Does anyone have any idea why this would happen?
    Thanks

    No ideas on this one? Maybe just point me in the right direction, something I can debug or look at? Anything would be greatly appreciated.
    Thanks

  • [BUG?] inlineStyle="height:100%;" doesn't work for dvt:graph with firefox

    Hi,
    Using TP4 with Firefox 2.
    Have dvt:graph with dynamicResize="DYNAMIC_SIZE" and following inlineStyle:
    inlineStyle="width:100%;height:200px;" --> This works as expected and width of graph is resized when I resize the browser window.
    inlineStyle="width:100%;height:100%;" --> At runtime the browser window is empty.
    inlineStyle="width:200px;height:100%;" --> At runtime the browser window is empty.
    Here the full code:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document binding="#{backing_graph.document1}" id="document1">
          <af:messages binding="#{backing_graph.messages1}" id="messages1"/>
          <af:form binding="#{backing_graph.form1}" id="form1">
            <dvt:graph id="graph1" value="#{bindings.PhoTestView11.graphModel}"
                       binding="#{backing_graph.graph1}"
                       clickListener="#{backing_graph.processClick}"
                       dynamicResize="DYNAMIC_SIZE"
                       inlineStyle="width:200px;height:100%;"/>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_graph-->
    </jsp:root>regards
    Peter

    Hello Frank,
    It's an FF (tested with 2.0.0.16 and 3.0.1) specific problem. With IE7 it works as expected.
    regards
    Peter

Maybe you are looking for

  • Problem with Business Package 4.0 in EP6.0

    Hi all i imported the business package 4.0 into portal as well.after that i also created the system and i done the user mapping to the backend CRM system . when i am accessing the iview in the business package then i am getting the error as follows.

  • Method not found error even though method exists....

    hello i m a newbee to sun and oracle technologies these days i m doing teh SRDemo tutorial with JDeveloper (ADF) I m having a problem and cannot figure out its solution so far problem is i have a utility funtion defined in a AFDUTIL javaclass, when i

  • How to reattach one of the rubber feet which has fallen off?

    Hi, One of the little black rounded rubbery feet on the base of my MacBook Pro has become unstuck. By what means can I safely reattach does anyone know - with regular glue or some sort of special electronic-friendly glue or..? Thanks!!

  • Repeating event in an apex calendar

    Hi all, I would like to have a repeating meeting let's say every day from 8 to 10 am what would be the best way to do this in apex calendar ? what I do now is 2 * 5 inserts, one for eacht weekday and one for 8 and one for 9 o'clock is there no betwee

  • No prompt on exit with active downloads

    I remember that I used to be prompted when closing FireFox with active downloads. Not all sites support auto-resume and I frequently find myself needing to restart many downloads. If I recall, there is a setting in about:config you can change so when