Histogram works, Pie Chart doesn't :(

I have a simple form, which has 1 block, a block level "when-new-block-instance" trigger and 2 bean_area under the block (beans don't have any trigger code). This simple form is called from within another form when a button is pressed. The histogram (bar chart) works, but the simple pie chart doesn't work (only displays a single circle - not the slices on the pie). The related trigger code is below. Can anybody see what is wrong with the pie chart code ?
Appreciated.
=====================================================================
-- Set the bean area properties
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'CLEAR_BLOCK','');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'GRAPHTYPE','VERTICAL_BAR');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'ENABLE_TOOLTIPS','VALUES');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'SET_DELIMITER','#');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'SET_TITLE','Order Count By WHIP#red#b#14');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'SET_FOOTER','WHIP Name#blue#12');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'SET_DELIMITER',',');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'SET_Y_LABEL','Move Your Mouse To View The Value For Each Bar');
-- Use the following for a nice 3D look (if users want)
-- SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'SET_DEPTH','20,45');
-- This should populate and display the data on the graph by using the related PJC
DECLARE
ordercount NUMBER(10);
whipname VARCHAR2(25);
vData VARCHAR2(200);
vDelimiter VARCHAR2(1);
cursor c1 is select distinct interface_name from pps_order order by interface_name;
BEGIN
vDelimiter := ',';
open c1;
fetch c1 into whipname;
while (c1%found) loop
select count(*) into ordercount from pps_order where interface_name=whipname;
vData := 'Total Order Count Per WHIP'||vDelimiter||whipname||vDelimiter||ordercount;
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'ADD_ROWDATA',vData);
fetch c1 into whipname;
end loop;
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA1',1,'ADD_DATA_TO_GRAPH','');
close c1;
END;
-- THIS SECTION IS FOR THE PIE CHART
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'CLEAR_BLOCK','');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'GRAPHTYPE','PIE_GRAPH');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'SHOW_PIE_LABELS','VALUE');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'SET_DELIMITER','#');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'SET_TITLE','Order Count By WHIP#red#b#14');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'SET_FOOTER','WHIP Name#blue#12');
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'SET_DELIMITER',',');
-- This should populate and display the data on the graph by using the related PJC
DECLARE
ordercount NUMBER(10);
whipname VARCHAR2(25);
vData VARCHAR2(200);
vDelimiter VARCHAR2(1);
cursor c2 is select distinct interface_name from pps_order order by interface_name;
BEGIN
vDelimiter := ',';
open c2;
fetch c2 into whipname;
while (c2%found) loop
select count(*) into ordercount from pps_order where interface_name=whipname;
vData := 'Total Order Count Per WHIP'||vDelimiter||whipname||vDelimiter||ordercount;
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'ADD_ROWDATA',vData);
fetch c2 into whipname;
end loop;
SET_CUSTOM_PROPERTY('BLOCK1.BEAN_AREA2',1,'ADD_DATA_TO_GRAPH','');
close c2;
END;
GO_ITEM('BLOCK1.CLOSE');
This uses the FormsGraph.jar file implementation as you can see. I know Frank Nimphius is the only expert when it comes to FormsGraph.jar at Oracle, but currently he is on vacation - so no official support to an unofficial (unsupported) charting implementation - but I thought there might be others who have done this before.
Can someone who implemented a pie chart share his/her code here - a simple pie chart, nothing fancy (like the one that comes with the graph90.fmb file, which I followed but did not figure out why my implementation is not working). Something with the vData string or number of vData strings requirement? no explanation in the FormsGraph.jar doc and I am not a java programmer to figure it out from the java source code. I am looking for a simple trigger code for the pie chart - not like "look at the forms90.fmb that comes with the demo package" kinda answer.
Thanx
Message was edited by:
zaferaktan
Message was edited by:
zaferaktan

Any idea ?

Similar Messages

  • IChart Pie Chart doesn't response to SelectionEvent

    Hi,
    I have a pie chart. I would like to have the slices in the pie chart clickable. When one slice is selected, I would like to display the detail information in another iGrid table. I have done it with iChart Bar with no problem. However, it seems like the pie chart doesn't response to any selection on the slices, except the legend tags for the whole chart.
    Did I miss some configuration?
    Thank you for your advice!

    Hi Yue,
    Instead of trying to click on the Chart, try clicking on the legend. It will work. It is working for me here.
    Use the same Selection Event and same Javascript. And click on the <b>Legend</b>. It will display the desired Value.
    For Example, i have used the below code for my SelectionEvent.
    <b>document.ChartName.getChartObject().getSelectedPen();</b>
    Hope this will help u.
    Regards
    Muzammil

  • Pie chart doesn't show the label of the last slice

    Post Author: saschaherrle
    CA Forum: Charts and Graphs
    Hi there...
    I have this problem with displaying the label of the last pie slice of my report. It is working perfectly fine in my testing environment, but it just doesn't want to show in the client environmet... I don't know what to try anymore. I've tried all the other label location options, but they also dont help. There are five slices on the pie chart with the following values:
    1.9%
    43.6%
    51.1%
    2.3%
    1.1%
    All the labels and feeler lines are showing except for value number 5.
    Any help or advice would be greatly appreciated. Thanks
    P.S. I'm using Crystal Reports XI Version 11.0.0.1994 and the client is just running the Crystal Runtime (Maybe this helps... I hope)

    ewilly wrote:Sorry to say that but i'm not unhappy to see i'm not alone to encounter this issue
    I aggree with you : it's only a partial issue as those partitions are mounted under /media with their label name.
    As krusader is able to retrieve the label name i don't think it's an udisks issue so it's more related to a kde functionnality. I looked for missing (optionnal or not) dependencies but without success.
    Any idea is welcome... perhaps opening a bug could help ??
    I have run out of ideas.
    If you tried krusader, yes, it is quite safe to assume it is not a udisks problem, since I tried nautilus which uses udisks2. I also would rule out udev/systemd. Leaves solid, kdelibs, and the kdebase sources.
    As said, on gentoo, kdelibs are compiled with udev dependency which I have not seen in the pkgbuild for kdelibs.
    I think a bug report is a good idea.
    Last edited by artoo (2012-09-06 18:01:49)

  • Pie Chart doesn't display all columns

    I set up a simply table and made a bar chart = everything worked out well.
    I selected my table again and clicked on 'make pie chart' but this time it doesn't display all the colums. I really don't know what went wrong here.
    I'd appreciate it very much if some could help me out here.
    Preview Picture: http://cl.ly/1SKg
    Numbers File: http://cl.ly/1SAh

    patte,
    Even though you have selected the entire table to be charted as a Pie Chart, and the table includes three data series, a Pie Chart can only display one series at a time, so it displays the first one; "3. Klasse"
    In "3. Klasse", the values of Schaukel and Drehscheibe are zero, so there is no pie to display.
    Hope this explains the situation for you. To make Pie Charts for the other two series, you would again select the header cells, then hold down the Command key while selecting the other series. Then add another chart. Do this for each series you wish to chart.
    Regards,
    Jerry

  • Keep pie chart from shrinking due to long labels outside of chart

    I was wondering is there a way to keep my pie chart from shrinking when I have labels outside of the chart that are long?  Is there an option to wrap the labels, or dynamically shrink the font size of the labels, or both, so that my pie chart doesn't
    have to be shrunk?
    Please provide details on how this is done if you know how.  Thanks.

    Hi jiwalkersm,
    According to your description, you want to avoid your pie chart shrinking when the label outside is too long. Right?
    In Reporting Service, if we want to always keep the pie chart size, we can set Docks into Default in Legend Properties, and let the legend not to show outside of chart. This will keep the position and size of the chart, but the legend will stay above the
    chart which is not good for view. So we try to use expression to set font size in Legend Properties. However, we don’t have any function which can make the label wrapped. So we can only set font size based on the length of the label (For example: =IIF(Len(Field!Name.Value)>10,”5pt”,”8pt”)).
    If this workaround still can’t be effective, we suggest you delete the legend, and create a tablix next to the chart, put the data into it.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • How to create a pie chart with jsp/servlet?

    I want to create a servlet which can be used like below:
    <img src="pieservlet?param1=<%=x%>&param2=<%=y%>&..." width="100" height="100" >
    can you give me some guide?

    Hai ,
    I have implemented a trial working pie chart , dynamically created from jsp using ServletOutputStream , BufferedImage & JPEGImageEncoder (found in com.sun.image.codec.jpeg.* package & bundled along with jdk ) .
    <%
    ServletOutputStream sout = response.getOutputStream();
    response.setContentType("image/jpeg");
    BufferedImage img = new BufferedImage(400,400,BufferedImage.TYPE_INT_RGB);
    Graphics2D gr = img.createGraphics();
    /* Actually this will be got as values of request.getParameter */
    Vector values = new Vector();
    values.addElement(new String("45") );
    values.addElement(new String("125") );
    values.addElement(new String("75") );
    values.addElement(new String("25") );
    values.addElement(new String("90") );
    // my demo class      
    temp.pieChart fr = new temp.pieChart(400,400,values);
    /* This pieChart is class extends JFrame , in paint method of it all Drawing of pie chart using graphics2D fillArc done */
    fr.paint(gr);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sout);
    encoder.encode(img);
    sout.flush();
    %>
    Hope this helps to build your own custom pie chart .
    Let me know if details needed on pieChart class
    rakesh
         

  • CR 8.0 pie chart/graph doesn't appear in web browser

    Post Author: kevind
    CA Forum: Charts and Graphs
    Hi,
    I am using a CR 8.0 report (containing data in tabular format and Pie/Bar graph) with Web component Server.
    In design mode (by entering the parameters) when i view my report through the CR IDE then i can view my report perfectly with the pie and bar graphs.
    However,once i call the same report through the web component server, by my JSP page, the report appears with the data but the page containing the piechart/Bar graph doesn't appear. (i am using the ActiveXViewer)
    When i remove the chart/graph, then all the pages are displayed in my browser (IE) properly, but if i add back the pie chart then the page on which this should appear -  doesnt display.
    Has anyone faced a similar issue? In design it displays with data but once called through webcomponent server it fails?
    Thanks,
    Kevin D

    Hello Subramaya,
    currently I am working on a small article in the Wiki area of the ITS (Wiki, ITS HowTos): <a href="https://wiki.sdn.sap.com/wiki/display/HOME/UsingSAPGUIforHTMLinsteadofanIAC">Using SAP GUI for HTML instead of an IAC or EWT service</a>.
    Also see notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417, "Integrated ITS, Closing Session When Transaction Ends". I am pretty sure that this is exactly what you are looking for.
    With best regards,
      TJ

  • Pie chart with two measures and date dimension navigation not working

    Hi Experts,
    Pie chart with two measures and date dimension navigation not working. Any help is appreciated.
    Thanks
    V

    Hi Deepak,
    I had time dimension in the RPD.
    I have stacked bar chart with same time dim like year & month in the report. when I go to legand and set navigation it is working fine. But not with pie chart.
    I am not not sure what is the problem. When I click on Pie chart it is not navigating to the target report. Can it be any other issues..???

  • Drill Down in Pie Chart not working in IE8 / Mozilla 5

    Hi Experts,
    In my dashboards, drill down feature in Pie charts are not working if the flash is viewed in IE8 / Mozilla Firefox 5.
    In IE7 it is working. Is there any browser settings required for this ? Pls suggest.
    Drill down in column chart is working fine.
    Xcelsius Version: Xcelsius 2008 SP3 FP 3.5
    Browser Version: Firefox 5.0 / IE 8
    Many thanks,
    PASG

    Hi,
      You may want to download Xcelsius 2008 with SP4.
      SP4 will support the newer IE 8 (32 bits) for Xcelsius related issue.
      As for FireFox 5 that came out last week, this won't be supported anytime soon.
    Regards,
    Ken
    Edited by: Ken Low on Jun 27, 2011 8:50 AM

  • Link not working on a pie chart which uses a customized XML

    Hi,
    I have created a pie chart which uses customized XML.
    For this, i am using database function. This function returns a customized XML which is eventually used by chart.
    But the problem now i am facing is the link on chart is not working . I have to navigate to another page from this chart sending value of link attribute.
    Can someone help me out , in how to create link in such case ?
    Thanks in advance.
    Edited by: Vaibss on Feb 22, 2011 10:49 PM

    Good news: I've found that the directive
    -Dlog4j.configuration=/home/myServer/Oracle/Middleware/wlserver_10.3/server/bin/log4j.properties
    shuld be instead:
    -Dlog4j.configuration=file:/home/myServer/Oracle/Middleware/wlserver_10.3/server/bin/log4j.properties
    - noticed that <<file:>> ? VERY important...
    This way the log4j logging works also on a standalone WLS.
    reference:
    http://jaikiran.wordpress.com/2006/07/05/i-get-log4jwarn-no-appenders-could-be-found-for-logger-message-2/
    Sergio.

  • To print an Pie Chart image with more than 1 slice is not working

    Hi friends,
    I'm using a version 12.0.4 and when I try to generate an Pie Chart image with more than 1 slice using the function saveImage() it's not working. The image is only generate when its return is just 1 value (1 peace of pie).
    Anybody help me?
    Regards!

    It's not unique for your setup, but it also happens in 12.0.11, so it's a bug.  Looks like it is throwing a null pointer for some bizzare reason when generating the GIF output by the ImageStorageServlet (per the NW logs). 
    Your best bet would be to log a ticket so it can be patched.
    12.1.7 seems to work fine.
    Edited by: Michael Appleby on Nov 23, 2010 2:39 PM

  • Is ChartDoubleClick Event works in Pie Chart

    Hi Every one,
                      This is prasad.I have Pie chart with data and want to drill down on selecting the data in the pie chart.Is the chartdoubleclick event works in the Pie chart as of Bar chart works.Can any one help on this will be thankful.
    Thanks,
    Prasad.

    Can u give an example or  sample code for this legend trigger event.SInce this is the first time iam using this trigger event.
    Thanks,
    Prasad.

  • Drill does not work for pie chart in OBIEE 10.1.3.4

    Request has a table and a pie chart. Dimension has 7-level hierarchy. Request has column from top level of dimension.
    Table can drill down all 7 levels. Pie chart drills down two levels; third attempt to drill on chart brings back first level in both chart and table.
    Anyone else experience this? I can find no bug report, but I have not been very successful at finding known bugs in MetaLink.

    Well, by Total - I mean next-to-total. Don't worry about it. I just wanted to make sure your hierarchy had no problems.
    Here's what I've done (remember my version is different). I've selected Drill-In-Place in Dashboard properties (unless I do that - it goes to table view after drill). Then I've clicked in an area on pie chart. After this, I wasn't able to drill further down, until I went to another Dashboard page and back (previous drill level was still there) and then drilled again. Rinse and repeat. Browser - IE 7. I'm going to test it in Firefox now.
    UPD: Firefox has no problem drilling through 4 levels of pie-chart. I guess the problem is IE's slow and buggy JS implementation.
    Edited by: wildmight on Jan 27, 2009 8:21 AM

  • How to show negative value in Pie Chart from Webi?

    I have below example data, I want to convert this to a pie chart in Web Intelligence, my problem is after I convert it to a pie chart, the revenue '-30' is shown as '30', looks like the pie chart is not suppor the negative value to show, I want to know if there is any workaround or solution to make the pie chart to show the negative value? Is this behavior is by design? do we have any official document to explain this?
    The product I used is BOE XI 3.1 SP3.
    Department    Revenue
    A                      100
    B                       -30
    C                        80
    Edited by: Alex Wang on Jul 13, 2010 5:51 PM

    Why are you showing this information as a pie chart? It doesn't make sense to try and display a negative slice in a pie chart. I can't really think of a logical way to try and draw a negative slice in a pie chart. With a pie chart you will need all your information to either all be positive or all negative, otherwise it doesn't work.
    What you need is to have a bar chart, with positive and negative values on the y axis.

  • How can I create a Pie charts ?

    HI all,
    I'm a beginner in java and i'm investigate in a web project (website) which should display statistical charts. I did a beans to generate basic bar charts, but it is most difficult to build a Pie chart. That's why i need help to put me on the rigth way to build Pie Charts beans (this pie charts should be filled up with db query).
    Every kind of help will be appreciated.
    Thanks in advance
    Hope someone can help me.
    STF

    I take it you constructed the bar graphs using html and images together?
    Obviously it's a little more difficult to make a pie chart with html. Chances are that it will have to be an image rendered by a Servlet or JSP. I suggest looking at how to create images using AWT or swing. This will allow you to create a circle with different color slices and what not. Then you need a Servlet or JSP that will send the image out the output stream. You can then place an image tag in your html page like this <img src="http://myserver.com/PieChartServlet>
    I'm actually working on an API myself that will render pretty histograms (line graphs), and hopefully pie charts down the road. It's going to be an open source project. I decided to make my own API when I looked at some others out there who were charging an arm and a leg for theirs. Chart Builder for example, it's like $6K for their java based API <choke>.
    So if you're interested, or anyone else is, shoot me an email and I'll let you know when the beta is ready. [email protected]
    -Derek

Maybe you are looking for