SHOWING DYNAMIC PIE GRAPH IN HTML

Hi,
I like to generate a pie graph in HTML USING JAVA.
Please tell me the way to do or any source is available to
generate the pie graph. I am using Oracle8i.
If anyone sends the answer it will be more helpful to me.
Thanks
THIRU
null

Hi Carsten
That was exactly* I was looking for. Maybe I should Google more in German ;-)
The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
After moving the image inside the group....it works great!
(One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
@Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
The way I use it now (very similar to Carsten's description) there is no limit....
Thank you all!
Roel

Similar Messages

  • Using same returned data to create datagrid and pie graph

    I am trying to find a good example or information on creating
    charts, initially pie graphs. I will be getting the data from a
    MySQL DB via a HTTPService call to a PHP script. I would like to
    use the same HTTPService call to make a datagrid and build a pie
    graph. My datagrid is working fine.
    All of the examples I have found show the app with an
    internal data source that's hard coded into an array (
    http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001234.html).
    I did search this forum, but it seems most people are just looking
    for dynamic pie graphs and there isn't enough in the entries for me
    to go off of.
    The data returned to the MXML app looks like this:
    <auditdata>
    <riskdata>
    <core>core number here</core>
    <subcore>subcore number here</subcore>
    <mdata>mdata here</mdata>
    <risk1>number here</risk1>
    <risk2>number here</risk2>
    <risk3>number here</risk3>
    </riskdata>
    <riskdata>
    <core>core number here</core>
    <subcore>subcore number here</subcore>
    <mdata>mdata here</mdata>
    <risk1>number here</risk1>
    <risk2>number here</risk2>
    <risk3>number here</risk3>
    </riskdata>
    </auditdata>
    When the data is returned, everything under <riskdata>
    is put into a datagrid. What I'm looking to do in the pie graph is
    this.
    Create a 2 different pie graphs for each riskdata (there will
    only be 2). The first pie graph will be of the three "risks" (where
    their total number equals 100% of the graph). The second pie graph
    would be "core - subcore" and risk1 (where the two values total
    equals 100%of the graph). I hope that makes sense.
    Any guidance would be truly appreciated.
    Thanks,
    Chris

    Does anyone have any ideas on this?
    Thanks,
    Chris

  • Can't show data labels in pie graphs as decimal number if the crosstab data

    I want to show my data labels in diagrams, as percent values, with three decimals.
    It occurs (in version Oracle Business Intelligence Discoverer Plus 10g (10.1.2.55.26)) it is only possible if the data format of the crosstab data also shows data with decimals. If the data are in integer format, the graphs data labels can only be shown in integer as well.
    Does anyone know how to fix the problem?
    In version Oracle Business Intelligence Discoverer Plus 10g (10.1.2.48.18) we can have a crosstab showing integers and a pie graph showing labels of pie slices where the labels are in percent with three decimals. It seems it does not work in the newer version Oracle Business Intelligence Discoverer Plus 10g (10.1.2.55.26)
    Thanks in advance

    It seems I have another similar problem in version Oracle Business Intelligence Discoverer Plus 10g (10.1.2.55.26):
    I have a Bar (Percent) graph based on a crosstab where the data is formatted as number with two decimals.
    The labels in the graph shows as number (0,76 instead of 76% and 0,13 instead of 13%). I want them to be shown in percent format.
    The Data Label format is set to “Number” with two decimals. I can change the Data Labels to Percent with two decimals and then it shows the data labels in the graph exactly as I want it. But after I have saved the workbook and then opened it again the changes has been “revoked” and is once again set to number with two decimals instead of percent.
    thanks (again) in advance

  • Customize the legend of a pie graph to show only one series

    Is there a way to show only one series in the legend though the pie graph displays more than one series?
    Any help is greatly appreciated
    Thanks
    KK

    Here is an example that changes the scale of a graph. I think it is what you are looking for. Post back if it is not.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]
    Attachments:
    Update_graph_scale.vi ‏40 KB

  • How to create a pie graph in 10g or 9i forms using beans??

    Hi..
    Please can anyone show me how to use pie graphs in oracle 10g or 9i forms using bean?
    i also want to know how to put data in pie graph.. as u know in column graph for example we have an x-axis and y-axis,and in pie there is no x-axis and y-axis.. so how i can put the same data in pie graph.. and also i may need more than one value for the x-axis or the y-axis to use in pie graph so how can i do it??
    i use set_custom_property to call properties in beans.
    I would so thankful for how can answer me.. please its urgent
    Thanks.

    there are some other posts to this topic - How to create a pie graph in 10g or 9i forms using beans?? and so on.
    use the search function of this forum. this may the fastest way for your urgent question

  • Axis in Pie Graph

    Hi,
    Can we show the X-Axis and Y-Axis for a Pie-Graph??
    I am able to display the Pie-Graph for a given combination through VO but in my display i am not able to see the X-Axis and Y-Axis lines.
    only the graph is getting displayed without the lines.
    I have tried by setting in property inspector the following properties to true.
    "Data Axis Scale From Zero" and "Display Data Markers" both to true
    But still i am not able to see the lines in my screen.
    Can i get some help from anyone regarding this???
    Thanks in advance

    No, there is no provision of showing x and y axis in pie graph. I am still not able to understand how do you want to incorporate and map date on x,y axis along with a pie graph in between. All you can do is to plot a bar graph separately to show the data along x, y axis.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Email reports with graphs as HTML (via schedule)

    == W2K machine with Oracle Reports Server 6i R2 ==
    How can I schedule/design a report if sent via email (in HTML format), so the graph that is part of the reports shows up? Currently, the gif is missing. I can use the "hyperlink" in the web setting to point to the file on the web server, but this means my "customers" need to click the missing object.
    If I send the report as PDF, all is well but again, my customers need to "open" the file.
    Is there a way to email reports with graphs as HTML?
    In any other format where the receiver does not have to take any other action?
    Thx
    Josh

    My bursting SQL query:
    SELECT DISTINCT
    ip.APPL_ID KEY,
    '11F_Search_Prospect_Email' TEMPLATE,
    'RTF' template_format,
    'en-US' locale,
    'HTML' output_format,
    'EMAIL' DEL_CHANNEL,
    ip.email PARAMETER1,
    '[email protected]' PARAMETER3,
    'Welcome' PARAMETER4,
    'true' PARAMETER6
    FROM ugrad.inquiry_prospect ip,
    ugrad.correspondence f,
    ugrad.address e,
    ugrad.f_lookup fl
    WHERE ip.appl_id = f.appl_id
    AND ip.APPL_ID = e.APPL_ID
    AND fl.TYPE_CODE='C'
    AND ip.record_stage = 'Prospect'
    AND e.COUNTRY_CODE=fl.code
    AND e.table_name = 'INQUIRY_PROSPECT'
    AND e.address_type =
    NVL ((SELECT gg.address_type
    FROM ugradadm.address gg
    WHERE gg.address_type =
    DECODE (f.mailpref,
    'Home', 'HOME',
    'Best', 'LOCAL',
    'HOME'
    AND gg.table_name = 'INQUIRY_PROSPECT'
    AND gg.APPL_ID = ip.appl_id
    AND((gg.address_type='LOCAL' AND NVL(gg.address_expir_date,sysdate)>sysdate)
    OR gg.address_type='HOME')),
    'HOME'
    AND f.batchid = :Batch_ID
    This report when bursted sends an email with the layout template as html body.
    The EMAIL configuration is set with a server Port number and its host address.

  • Buisness graphics dynamic PIE chart event id

    HI all,
    I'm trying to create dynamic PIE chart :
    Link to sdn document *
    First I declared in the context node a table ( 0…n )
    PIE – 0…N  with attributes :
    Categorty – type string
    Series – type i
    Then I'm creating the business graphics :
    DATA:lr_graph TYPE REF TO cl_wd_business_graphics,
    lr_cat TYPE REF TO cl_wd_category,
    lr_series TYPE REF TO cl_wd_simple_series,
    lr_container TYPE REF TO cl_wd_uielement_container,
    lr_flow TYPE REF TO cl_wd_flow_data.
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_graph = cl_wd_business_graphics=>new_business_graphics(
    bind_series_source = 'NODE_DYN'
    chart_type = cl_wd_business_graphics=>e_chart_type-pie
    height = 340
    width = 750
    id = 'GRAPH' ).
    lr_flow = cl_wd_flow_data=>new_flow_data( element = lr_graph ).
    lr_container->add_child( lr_graph ) .
    wd_this->value_cs ?= lr_graph.
    wd_this->mr_view ?= view.
    Now I'm creating the category and series :
    wd_this->value_cs =? Lr_graph
    wd_this->mr_view ?= view.
    Series :
    DATA: lr_bgr_ss TYPE REF TO cl_wd_simple_series.
    lr_bgr_ss = cl_wd_simple_series=>new_simple_series(
    bind_value = ‘NODE_DYN.SERIES’
    label = ‘Series_1’
    event_id = ‘Series_1’
    id       = ‘Series_1’
    view = wd_this->mr_view ).
    Wd_this->value_cs->add_series( lr_bgr_ss ).
    Category :
    DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
    lr_bgr_cs = cl_wd_category=>new_category(
    view = wd_this->mr_view
    event_id = ‘Series_1’
    id       = ‘Series_1’
    bind_description = 'NODE_DYN.CATEGORY').
    wd_this->value_cs->set_category( lr_bgr_cs ).
    Now I'm binding the data :
    Data : ls_pie type wd_this->element_pie.
    Data : lt_pie type table of element_pie.
    ls_pie-category = 'test_category1'.
    ls_pie-series = '34'.
    Append ls_pie to lt_pie.
    ls_pie-category = 'test_category2'.
    ls_pie-series = '73'.
    Append ls_pie to lt_pie.
    Data : lo_nd_pie type ref to if_Wd_context_node.
    Data : lo_el_pie type ref to if_wd_context_element.
    Lo_nd_pie = wd_context->get_child_node(
    Name = wd_this-> wdctx_pie.
    The above is the only way that I succeeded to create 2 categories for the pie chart but I cant isolate the event id for every category.
    I tried also to create another series with the same id and other event id but still got the same problem.
    Please suggest a solution for creating dynamic pie chart with event id for every category or series .
    Regards,
    Arie.

    Hi Rama,
    Thank you for your reply ,
    I added the BIND_EVEND_ID = 'NODE_DYN.SERIES'  and it worked fine.
    I'm trying now to get rid of the static context element.
    I've declared the following :
    DATA : NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO ,
                  STRUCT_TYPE TYPE REF TO CL_ABAP_STRUCDESCR ,
                  TABLE_TYPE REF TO CL_ABAPDESCR=>COMPONENT_TABLE,
                 COMP LIKE LINE OF COMP_TAB.
    COMP-NAME = 'CATEGORY'.
    COMP_TYPE ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_NAME( 'STRING' ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'SERIES'.
    COMP_TYPE ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_NAME( 'I' ).
    APPEND COMP TO COMP_TAB.
    STRUCT_TYPE = CL_ABAP_STRUCTDESCR=>CREATE( COMP_TAB ).
    NODE_INFO = WD_CONTEXT->GET_NODE_INFO( ).
    NODE_INFO = NODE_INFO->ADD_NEW_CHILD_NODE (
    NAME = 'NODE_DYN'
    IS_MANDTORY = ABAP_FALSE
    IS_MULTIPLE = ABAP_TRUE
    STATIC_ELEMENT_RTTI = STRUCT_TYPE
    IS_STATIC = ABAP_FALSE) .
    FIELD-SYMBOLS  <TABLE> TYPE TABLE.
    FIELD-SYMBOLS  <WA> TYPE WA.
    DATA : TABLE TYPE REF TO DATA.
    DATA : WA TYPE REF TO DATA.
    CREATE DATA TABLE LIKE TABLE OF STRUCT_TYPE.
    ASSIGN TABLE->* TO TABLE.
    TODO ?? - Add data to FS <TABLE>
    *Binding :
    DATA : DYN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
    DYN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'NODE_DYN').
    DYN_NODE->BIND_TABLE( <TABLE> ).
    How do I append data to FS <table> with the relevant components ?
    Is there any  other efficient way to append the data and bind  ?
    Regards,
    Arie.

  • Dynamic Pie Chart in Smart Form

    Hi Frn's ,
      How can i show the dynamic Pie chart in Smartform .
    Thanks and Regards
    Priyank Dixit

    Hi,
    Refer to this link [How to display pie chart in smart forms|Re: how to display pie chart in smart forms]

  • Suppress empty legend/group in pie graph

    Hi,
    I've created a pie graph using BAM datacontrol.
    In the pie graph, the legend area shows an extra empty group.
    For eg. in the pie graph if there are 3 slices : High,Medium & Low, then in the legend area 4 legends will be displayed; 3 legends corresponds to the 3 respective groups but an additional legend shows up.
    How can we hide/suppress the empty legend/group.
    In BAM dashboard we have an option 'Suppress Empty Group' but I didn't found any similar property in the pie dvt component.
    I'm using JDev 11.1.1.4.0

    the values from our column are from database , then how can we edit the data(values) in that columnErrr..Ohkk. There are 3 methods you can do this:
    1) Correct the spelling in underlying DB table by updating the column name (check all the references) - Most Recommended
    2) In case you don't want to go for 1st option, you can remove the default legend option in Pie Chart by setting it to none and ADD a new Legend View to this Chart View with correct names
    3) Change the fx of that column in criteria like
    case when col = 'abd' then 'abc' else col end
    All above will solve your problem....

  • Having trouble showing an Iview in a HTML page with frames format

    Hi, I have a public webpage with 3 frames (top, navigation and content)
    In the content part has to be showed a portal anonymous page.
    I created the anonymous portal page that shows me a Webdynpro that I created, works fine. But when I put the link in the frame of the public webpage, is like the page entered in a loop and nothings is showed.
    But if in the frame I put the direct Webdynpro link works fine but the Custom colors that I set in portal doesnt works (and this is important).
    Any1 know how can I do to put an anonymous portal page inside a frame html without lossing the colors that I replace in the theme editor.

    sun1977 wrote:
    Hi,
    I have the Home page which has the usual static text. I was looking for the option of showing some data on that page like
    1. last data load date which will have to be selected from the database. Do we just create a dynamic action on the HTML page? Going to try this now. But just wondering if there is a proper way to do this?
    Just to be a little more specific. I have static text in <Table> tags in a plain HTML page. So within the <TABLE> tags which is in the text source, Can I call bind values or PL/SQL procedures?. Was looking for some ideas on this.There are several options. One is to create hidden page or application items set using queries in item source, computations or processes. These can be referenced in HTML region source (and other places) using the static text exact substitution notation:
    &P1_ITEM.Another is to replace the HTML region with a report region using a custom report template. If there are a number of related values to display this is likely to perform better as only one query is involved.
    Unless these values respond dynamically to changes on the page there is no call to use Dynamic Actions.
    2. Insert the audit field with the SSO username. Any idea which variable stores the username which maybe can be passed to the trigger to update before an insert/update.Use the built-in <tt>APP_USER</tt> substitution string. For this purpose normally in a database trigger including a fall-back value to cope if the table is modified outside of your APEX app:
    :new.modified_by := nvl(v('app_user'), user);

  • How to override pie graph label

    Hi,
    I have a dvt pie graph component on my page. I want to programatically set my pie graph label in a java bean.
    For example, in my pie graph, there are 2 values, paid and unpaid. In my bean, I programatically format my paid amount, and I want to set the paid label to be "Paid (<formatted amount paid>)". I want to do the same for Unpaid.
    How to I access and set the label for Paid and Unpaid series in my code? I could not use EL expression to do that as the label field of the <item> component of the graph do not understand EL expression.
    Thank you for your time.
    Any input is much appreciated.

    Hi,
    How are you passing data to the graph? Are you trying to format the labels shown next to each slice of the pie, or the tooltips (shown when you mouse over the slice)?
    You can use the dvt:sliceLabel tag to format your pie labels.
    For example:
    <dvt:sliceLabel textType="LD_TEXT">
    <dvt:numberFormat decimalDigit="0"/>
    </dvt:sliceLabel>
    This will show text in the pie labels, and format the numbers displayed in the tooltip to have no decimal places.
    Valid values for text type are:
    LD_TEXT, LD_VALUE, LD_PERCENT, and LD_TEXT_PERCENT.
    Hope this helps
    Katia

  • Pie Graph 3D mode

    Hi All,
    I have created a Pie Graph with type 3D - The size of the graph is varying depending upon the data(or depending upon number of slice) - but i want a fixed size in the graph - Can any one help me on this please.
    How OBIEE is deciding the radius of the pie circle?
    Thanks in advance,
    Arun

    Hi, I have already given the General Graph property Size - (Width, Height).
    Please not that , i am using the "GO URL" - where i have created a html page with two frames and each frame i am displaying a graphs with the same size (Width, Height) - but what i observed is two graphs are displaying in the html with different in size - or it is varying according to the input data data.
    Example: Frame1 displaying pie chart "A" and Frame2 displaying pie chart "B" both are actually created with same size.
    now Chart "A" has two slice - the ratio is 80:20
    Chart "B" has two slice - the ratio is 55:45
    Now the Chart "A" is displaying bigger than the Chart B.
    Please help on the algorithm used by OBIEE to define this size difference.
    Edited by: Arun Roy on Aug 21, 2009 10:33 AM

  • How to retrieve the segment label setting of a Pie graph by java sdk?

    hello,
    there is a special setting for a pie graph: you can determine whether to show the segement label in a pie chart by checking the "show segment label" control under values,  data, and categogy.
    my question is, how to fetch the setting by java sdk?
    thx.

    It doesn't look like this is accessible through the SDK.  Unfortunately the SDK doesn't have a lot of access to the charting component.  You would want to look at the RAS SDK guide for what you do have access to.

  • Example of using pie graphs in oracle 10g or 9i forms (not JDeveloper)

    Hi..
    Please can anyone show me how to use pie graphs in oracle 10g or 9i forms using bean?
    i also want to know how to put data in pie graph.. as u know in column graph for example we have an x-axis and y-axis,and in pie there is no x-axis and y-axis.. so how i can put the same data in pie graph.. and also i may need more than one value for the x-axis or the y-axis to use in pie graph so how can i do it??
    i use set_custom_property to call properties in beans.
    I would so thankful for how can answer me.. please its urgent
    thanks

    Hi,
    Thanks for your reply..but i already have this demo and it doesn't contain an example for a pie graph..if u know where i can find any example for a pie graph and how to pass data to it i would be so thankful
    Thanks again.
    Eyad Basheer

Maybe you are looking for

  • How to check file is exists  in specified path in content server or not

    i m using JDevloper 11.1.1.6.0 I want to upload file using RIDC functions,but before uploading it i have to check wheather it is already present on specified path in content server or not. How i check it.

  • I want to make a complaint but how? Cant find an address to write to?

    I'm extremly annoyed: purchased a 13" mac book pro on 13/11/13 for my teenage sons birthday and christmas present, on 29/11/13 he couldnt start the mac book up. We took it to our nearest apple store & saw an apple genius, we left it with them for 2 h

  • Instaling os 9 with X

    Hi, I already have OSX (on mac mini) if I install OS 9 with the disk that came with it, will that replace OSX? If not, what happens after it has been installed? I just want to make sure I don't lose any files by accidentlaly replacing the OS. Thanks

  • Command Line Force Logout

    So quick background. I setup a rule in mail that if I get a message with text logout to run a applescript script that is this. "tell application "loginwindow" to «event aevtrlgo»" that should force logout however mail would keep freezing and it would

  • Hitachi Travelstar HD always spinning?

    After following some advice from here, and reading many past threads, I installed a new Hitach Travelstar 7200rpm 100Gb HD into my Ti. The installation was a little fiddly but I got there in the end. Since I installed it ive noticed a constant "spinn