Disappearing Legend Labels in Chart DataWebBean

Hi all,
I've used a Chart DataWebBean in a JSP page and have a problem with labels that simply don't show in the Legend Area of the chart. Can anyone tell me how to fix this?
Thank you in advance.

Hi,
Sorry for the late reply but I had some problems with my OTN login and then another project also occupied some of my time, thanks for your reply and I will appreciate it if you can help.
(1) JDev version: 9.0.2
(2) Code, theres quite a bit but i've choped out some of the html formatting stuff:
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ page contentType="text/html;charset=windows-1252"%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252
import javax.sql.RowSet;
import javax.sql.DataSource;
import java.awt.Rectangle;
import java.awt.Rectangle;">
<% response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0); %>
<TITLE>International Benchmarking System - Graph</TITLE>
<LINK href="incl/ibproject.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<TABLE width="764" border="0" cellpadding="0" cellspacing="0" class="holderTable">
<TR>
<!-- <TD width="119" align="center" valign="top"> </TD> -->
<TD width="636" align="center" valign="top">
<jbo:ApplicationModule id="IBSbc4jModule" configname="za.org.saawu.ibs.bc4j.IBSbc4jModule.IBSbc4jModuleLocal" releasemode="Stateful"/>
<jbo:DataSource id="srcOutput" appid="IBSbc4jModule" viewobject="OutputView"/><%
Integer nKpi = new Integer(srcOutput.getRowSet().first().getAttribute("Kpi").toString());
String strQuery = new String("KPI='" + nKpi + "'"); %>
<jbo:DataSource id="srcKpiLookup" whereclause="<%=strQuery%>" appid="IBSbc4jModule" viewobject="KpiLookupView"/><%
// String strCurrency = session.getAttribute("currency").toString();
strQuery = "CURRENCY='" + session.getAttribute("currency").toString() + "'"; %>
<jbo:DataSource id="srcExchange" whereclause="<%=strQuery%>" appid="IBSbc4jModule" viewobject="ExchangeView"/>
<jbo:DataWebBean id="graphOutput" datasource="srcOutput" wbclass="oracle.jbo.html.databeans.ChartRenderer" />
<%
String strTitle = new String(srcKpiLookup.getRowSet().first().getAttribute("Formula").toString());
// String strTitle = request.getParameter("info").toString();
String strYTitle = new String(srcKpiLookup.getRowSet().first().getAttribute("Units").toString());
java.awt.Rectangle recSize = new java.awt.Rectangle();
// -- Pre-processing --
if(srcKpiLookup.getRowSet().first().getAttribute("Currency")!=null) {
if(srcKpiLookup.getRowSet().first().getAttribute("Currency").toString().compareToIgnoreCase("y")==0) {
String strHolder = new String();
if(nKpi.intValue()>=203 && nKpi.intValue()<=208) {
strHolder=strYTitle.substring(strYTitle.indexOf(" ")>-1?strYTitle.indexOf(" "):0);
strYTitle=srcExchange.getRowSet().first().getAttribute("Hundredths").toString()+strHolder;
} else {
strHolder=strYTitle.substring(strYTitle.indexOf("(")>-1?strYTitle.indexOf("("):0);
strYTitle=srcExchange.getRowSet().first().getAttribute("Description")+" "+strHolder;
} // if/else nKpi
} // if currency
} // if the currency field is not null
// -- Graph types --
graphOutput.setCommonScriptName("chart_common.jsp");
graphOutput.getChart().setGraphType(graphOutput.VERTICAL_CLUSTERED_BARS);
graphOutput.getChart().setDepthRadius(0);
// -- Series and data --
graphOutput.setSeriesLabelColumnName("Wb");
graphOutput.setDisplayAttributes("Hist3,Hist2,Hist1,Actual,Budget,Target");
// -- Legend area --
recSize=graphOutput.getChart().getLegendRect();
recSize.height+=2000;
graphOutput.getChart().setLegendRect(recSize,true);
// graphOutput.getChart().setLegendTextAutofit(true);
graphOutput.getChart().setLegendMarkersPerRow(2);
// graphOutput.getChart().setLegendOrient(2);
graphOutput.getChart().setLegendMarkerPosition(0);
graphOutput.getChart().setLegendDisplay(true);
// -- Graph Title --
graphOutput.getChart().setTitleAutofit(true);
graphOutput.getChart().setTitleString(strTitle);
graphOutput.getChart().setSubtitleDisplay(false);
graphOutput.getChart().setFootnoteDisplay(false);
// -- Graph Y1 Title --
graphOutput.getChart().setY1TitleDisplay(true);
graphOutput.getChart().setY1TitleString(strYTitle);
// -- Graph Image --
graphOutput.setImageWidth(700);
// -- Graph Renderer --
          graphOutput.render();
     %>
</TD>
          </TR>
     </TABLE>
</TD>
     </TR>
     <TR>
     <TD height="34" align="center" valign="middle" background="images/footer_bg.gif"> </TD>
     </TR>
</TABLE>
</BODY>
</HTML><jbo:ReleasePageResources />

Similar Messages

  • Crys Reports - Mark the Legend Labels and Chart bar - values custom names

    Hai,
    I want to change the default names/labels of the chart elements (for e.g. bar chart - the labels and values) , in my reports the labels are directly taken from the database columns, how can I change this?,
    Someone please help...
    Thank you in advance.
    Vijay.

    Hi
    You can select the individual elements(for e.g chart title,legend,chart frame,grid lines,individual bars and series risers etc.).
    To do this do a normal left click and then again a left click on the desired object within the chart(which will select the object), and then do a right click which will come up with all possible options.
    Say for e.g you wan't to edit a default data label then follow the steps:
    1. Left click on the chart
    2.Left click on the data label.
    3.Right click>>Chart Options>>Titles
    4.Here you can edit the default title
    Thanks

  • Chart Legend Labels

    Hi all,
    It's extremely annoying to have to go thru all chart legend label displays and rename them to something else other than the formula.
    For example, I have a Sum of @Formula that's displaying and in order to change that, I have to go into every single chart and right click > edit label
    Is there a more round about way to do this update once?
    Thanks,

    yes that's annoying. try this if you are willing to try a workaround...
    1) put a crosstab on top of the legend that contains your formula as the row.
    2) while still in the crosstab expert, get rid of the gridlines, the cell padding
    3) exit the crosstab expert and change the row height to match the line height of the legend
    4) change the background of the crosstab so that you can't see the legend
    a bit more work, but it works.
    jw

  • Problem in editing legend label of line chart

    Hi,
    I am using crystal 2008 and deploying reports in Java appilication.
    I have a report with line chart in group header. I am using formulae for 'Show value' field. So legend shows it as @formula1
    I couldnt change this is design mode, so i went to preview mode and used 'edit axis label' for each of the chart.
    Now i can see proper legend labels in my crystal 2008. But when i deploy the report in java application, chart still shows @formula1 .... any idea on why my changes are not displayed in crystalviewer?
    Thanks

    This is tricky... and somehow you won't find it in manual.
    After the change of Axis Label, right click on Chart Area. You will see new option "Apply Changes to All Charts". Choose this option and voila - You owe me a bottle

  • Is there a way to display the legend for a chart, but not the chart?

    Hi,
    I have a stacked column chart and a line chart on top of each other.   I can't use the legend for the stacked column chart because the data will change from month to month, and the 2 charts will not be aligned.  I copied the stacked column chart to another part of the canvas and want to display only the legend, but the chart is still displaying.  Is there a way to prevent the chart from displaying?    Thanks.

    hi Jim Wojewnik,
    we can show only the legend in a pie chart by dragging the edges to closer.do the following,
    select the pie chart,select the edge of the chart and make it small and u ll find the pie chart shrinking.make it lean such that the pie chart disappear.
    try this work around and let me know.
    regards,
    ravi.

  • Remove underlines in legend labels

    I have a data model query
    SELECT ALL T_NTR_MULTIBAR.CAT, T_NTR_MULTIBAR.NUM_CASES_LEFTBAR AS "No. of Survivors",
    T_NTR_MULTIBAR.NUM_CASES_MIDDLEBAR AS "No. of Deaths", T_NTR_MULTIBAR.NUM_CASES_RIGHTBAR AS "No. of Cases"
    FROM T_NTR_MULTIBAR
    WHERE INSTANCE_NUM = :P_INSTANCENUM
    order by ORDERS
    This query is use in Oracle Report Builder 9i Bar Chart. The legend labels display as No._of_Survivors No._of_Deaths No._of_Cases. How do I remove _, so that the legend labels display as No. of Survivors No. of Deaths No. of Cases.
    Thanks
    Brendon

    Hi,
    You can change the Legend Label through Graph Wizard. There will a "Legend Tab' in the Graph Wizard, using that tab you should be able to modify the label. I think this may help you. If you need more information, have a look at the following link:
    http://www.oracle.com/technology/products/reports/htdocs/faq/Graph_FAQ_with_style.html
    Thanks,
    Vidya Viswanathan

  • IOS iWork how to change legend labels

    Hi. Having trouble with Numbers for iOS. I made a spreadsheet and placed a chart and connected the columns to display the information in the chart. I'd like to add a legend, but when I do, I get "untitled" for each color (or column) in the chart. I've tried to modify the legend to add the column names and I have not been successful. Help is pretty sparse on this topic. How do I change the legend labels?

    Without more specific information about the data source, its dificult to tell. Make sure you have header rows and columns set in the table (tap the table and then the formatting icon, then the Headers tab).

  • Retrieve Legend Label Property

    Okay, I'm a flex newbie...this is my 3rd post to this forum
    for support (regarding other snafus since resolved) with no
    luck...hopefully I can garner some expertise here.
    I'm simply trying to retrieve the label property from a chart
    legend?
    In this app. I'm using a list box of items to dynamically
    generate a unique line series for each item upon user click.
    The problem: if a user selects the same item from the list
    multiple times the lineseries continues to be added to the chart
    and legend. I need to disable a user to do this. So, I figured I
    would grab all the legend labels and put into array. Then when a
    user clicks the list box a function is fired to compare the list
    item string with the legend label string to see if the item series
    has already been added to the chart. I just can't seem to retrieve
    the legend label property.
    Here's a tidbit of code that doesn't seem to return anything.
    var checkArray:Array = new Array();
    checkArray.push(myLegend.label);
    trace(checkArray);
    Any ideas here are greatly appreciated. Thanks!

    Implement itemClick event on <mx:Legend> tag. In the
    handler function, use event.item.label to get the label. This is
    assuming you have used ArrayCollection to populate the
    legends/chart and label is one of the properties for every array
    element.

  • Changing legend labels

    Post Author: Nym
    CA Forum: Publishing
    Hi !
    I get a set of data from a text file and I would like to generate a graph using these data. My set of data is made of lines of agregated counters, one for each month, and the first line contains the labels of the different counters. Those counters' labels are not user friendly and I would like to change them in the legend labels of the graph. How can I do that ?
    Regards,
    Nym

    Post Author: jsanzone
    CA Forum: Publishing
    Nym,
    The only way that I've been able to control the name of a label in regards to graphing is to use the Variable Editor and create a variable off of the column, for instance:
    The name of the column from the database is call "Black_Catalog". so I create a variable called "The Black Catalog" and in the formula: =&#91;Black_Catalog&#93;
    Then in the graph I replace the field that is called =&#91;Black_Catalog&#93; with my new field.  When the legen displays it will show "The Black Catalog".

  • Changing legend labels in Oracle Graphics 6

    Hello,
    i am currently using Oracle Graphics to create barcharts for my reports. My problem is, that i want to change the label used for the shown bars via a parameter. Changing the labels of the X- and Y- axis is no problem with PL/SQL but it seems that the only way to change the legend labels is by using "AS" in the query (e.g. select a_column as LABEL from ...). I really need to change it by parameter.
    thx for any help.

    Post Author: jsanzone
    CA Forum: Publishing
    Nym,
    The only way that I've been able to control the name of a label in regards to graphing is to use the Variable Editor and create a variable off of the column, for instance:
    The name of the column from the database is call "Black_Catalog". so I create a variable called "The Black Catalog" and in the formula: =&#91;Black_Catalog&#93;
    Then in the graph I replace the field that is called =&#91;Black_Catalog&#93; with my new field.  When the legen displays it will show "The Black Catalog".

  • GRAPH LEGEND LABELS NEED TO BE USER MODIFIABLE

    GRAPH LEGEND LABELS NEED TO BE USER MODIFIABLE FOR DYNAMIC PARAM INPUT CONTROL
    I've been told on Metalink that my problem can not be resolved in Reports 9i or 10G but a Internal enhancement request 3071917 has been logged.
    Is it possible to have some timescales on this limitation?

    I'd suggest that the easiest approach would be to add a trigger to the table:
    CREATE OR REPLACE TRIGGER trigger_name
    BEFORE UPDATE OF comment_txt ON table_name
    FOR EACH ROW
    BEGIN
      :new.last_updated_by := USER;
      :new.last_update_date := SYSDATE;
    END;This trigger will only fire when the COMMENT_TXT field is being updated and will set the LAST_UPDATE... values accordingly. The only downside to this approach would be if you want to store the OBI user and not the DB user. Effectively, you'd need to pass a parameter from OBI to the trigger to use instead of USER - bit more tricky...
    Going back to your suggested approach, I don't think you need to worry about the RPD; the SQL that you define in the XML will bypass the RPD completely. In terms of what to use for the criteria for the report, you should be able to select the OBI user from a session variable and reference SYSDATE, SYSTIMESTAMP or the OBI equivalent to get what you need.
    Edited by: BarryGoodsell on Sep 26, 2012 12:04 PM
    Added code tags

  • Dynamic Category labels in chart components

    When the data is dynamically changing, how do we handle variable category labels in chart components?

    Found the answer :). There is this option of ignore blank cells under behavior->common tab..

  • X Axis labels in Chart background elements

    I want to display the X-axis labels in Chart background area something like this
    Has anyone implemented this before? Please help me how to do this?

    Can anyone please help me on this?

  • How to set legend of strip chart in CVI8.0

    Do somebody know how to set legend of strip chart in CVI8.0? I know that in CVI8.5 SettraceAttributeEx() can used to set legend of strip chart, but in CVI8.0, there is no the function. Thank you very much.

    Hi Ravi,
    If I am not wrong You are referring to article <b>Queues for Prioritized Message</b>. But this is about how to Prioritize message inside XI.
    What I am intresetd in is to set a message priority (for example "2")for the message going to MQ. That is when the message reached the detination queue the priority of this message should be 2 in the queue.
    Thanks
    Abinash

  • Reg: Reports Grapgh Wizard(Customizing Legend label)

    Hi all,
    I am working on oracle 10g reports.I am creating a report with graph.In my data model i have 2 tables both has the 2cloumns each and the names of the columns are same(like.. Series1,series2).So when i created the report. in the paper lay out when i am select the source for a field it gives Series1,series2,series3,series4.
    So using these i created 2 graphs for two tables. But my issue is when i saw the output.In the legend for 1st graph is series1 and series2 but for 2nd grapg it shows series3 and series4. But actually my requirement is it has to show Series1 and series2 only as these are the actual names of the fields.
    One more example, you might have different cities represented by data markers of different colors. Markers represent data on a graph. If red markers in your graph represent New York, then there is a corresponding red legend marker in the legend area, with legend text reading "New York." But i want to show this in legend as "NY" instead of "New York"....
    Do any one has any idea about this legend label customization.
    Thanks in advance...

    Mascse,
    I'm guessing you've already found the answer but try this if you haven't.
    On the top line of the graph settings, you should see the dataValues. Add the same number of dataLabels and that may solve your problem.
    dataValues="CAT1_num,CAT2_num,CAT3_num,CAT4_num" dataLabels="Front Desk, General, Nursing, Physician"

Maybe you are looking for

  • Invoice before the delivery

    Hello everybody! I need the helping to resolve a problem for our implementing OM and AR for a Viet Nam customer. The company have a special business process is: Customers ordering a product, a Sale Order was created, Booked and waiting for pick relea

  • More than 2 windows display issue

    Hello, I have an application that displays different windows... In a specific situation, it seems that I cannot pile up more than 2 windows. Here are some details: I have 3 windows (W1, W2, W3) All the windows are window_style=document, and made of a

  • How 'java' handles classname passed to it

    Hi, After compiling the .java file, the .class is passed to 'java' and that runs the program. Does the 'java' work this way: when we give "java classname", 'java' strictly would search for classname.class and proceeds thereafter, The reason i got thi

  • JDev 10.1.2 Bug

    I upgrade from JDev 9.0.5.2 and now I have the following problem ... I have two datapages and a dataaction between then, the dataaction has a custom method that references the current row of a view object being bound in both datapages. When using 9.0

  • How to migrate JPS application security policy to weblogic 10.3.1

    Hi, How do I migrate my application security policy (defined in the jazn-data.xml in my application ear file) to the system-jazn-data.xml in weblogic 10.3.1? The [previous solution provided here|http://www.oracle.com/technology/products/jdev/tips/mue