XML Charts - Unwrapped

I made the package available for download here:
http://htmldb.oracle.com/pls/otn/f?p=31517:58
There are three additional changes:
1. x- and y-axis titles may be specified,
2. no UTL_FILE package access necessary by default,
3. functions, for converting axis values may be specified.
A demo is available here:
http://htmldb.oracle.com/pls/otn/f?p=31517:74
Denes Kubicek

Hello
I´m playing around with the xml-charts for a few days, but cant get them to work.
I think i make some very simple mistake.
Installation according to the readme-file was ok.
Granted all things required.
Made a debug-dir.
No errors or invalid objects there.
created a new page in my demo application.
created a hidden item
created a computation with static assignment for the item.
created a report with the same query and it works.
created a pl-sql-content with the provided block. checked it against that, what the "SELECT xml_chart_pkg.get_chart_plsql FROM DUAL;" returns. Looked equal.
running the page, show me (after a while) a orange background with the following message:
Loading<xml_chart_pkg.chart_region_pr?app_user_in=APEX_PUBLIC_USER...
(i´m not able to read more, because the message is cut on the edge)
debug = 'Y' shows no error (any more) but nothing is in the created oracle directory
The session tells me that the sql is in the hidden item.
And it tells me, that i have collection some values in the collection similar to my test-report.
Collection Name | Sequence | C001 | C002
CSTACKEDCOLUMN230582657841003510010 | 1 | OHare | 500
CSTACKEDCOLUMN230582657841003510010 | 2 | LaGuardia | 4300
CSTACKEDCOLUMN230582657841003510010 | 3 | Bradley | 500
CSTACKEDCOLUMN230582657841003510010 | 4 | Logan | 790
CSTACKEDCOLUMN230582657841003510010 | 5 | Hartsfield | 47798
CSTACKEDCOLUMN230582657841003510010 | 6 | Dulles | 1240
CSTACKEDCOLUMN230582657841003510010 | 7 | Lambert | 790
h3. My environment is:
oracle db 11g
apex 3.2
installed with mod_plsql not epg
all running on windows 2008 server x64
h3. my sql in the hidden item is:
select cu.CUST_LAST_NAME as CUSTOMER, sum(o.ORDER_TOTAL) as ORDER_TOTAL
from DEMO_ORDERS o, DEMO_CUSTOMERS cu
where o.CUSTOMER_ID = cu.CUSTOMER_ID group by cu.CUST_LAST_NAME
h3. my pl-sql for the chart is:
BEGIN
xml_chart_pkg.xml_chart_pr(
item_for_query => :P10_SQL_HIDDEN, --item storing your chart query
chart_type_in => 'stacked column', --your chart type
sort_series_in => 'ASC', --how to sort series
width_in => 600, --width of your region
height_in => 450, --height of your region
debug_xml_in => 'N', --using debug option
xml_output_dir_name_in => 'chart_debug', --debug output directory
chart_template_in => 'MY_TEMPLATE,SWITCH_COLORS', --templates to be used with your chart
chart_standard_ignore_in => 'N', --ignore all standard settings
link_type_in => 'P', --link type P for popup and R for redirect
page_to_pass_values_to => '10', --page to pass values in the link
request_in => 'SORT', --request to pass within link
items_to_pass_values_to => 'P200_ITEM', --items to pass values to, comma delimited
values_to_pass_to_items => '_category_', --values to pass to items, see XML reference
link_pop_up_w_in => '1000', --link popup window width
link_pop_up_h_in => '800', --link popup window height
chart_background_color_in => '#ededd6', --region color
unique_id_in => NULL, --unique string to identify your chart if the same chart
--type is used on the same page
turn_caching_on => 'N', --if your want to keep the session result per chart,
--use collection to store the result set
default_directory_xml => '/i/charts/', --if your want to specifiy another directory,
-- you need to determine this parameter
axis_val_conv_function => NULL, --if your want to convert axis values, you may include
--any function here and it will convert your values to
--whatever (standard functions or your own custom)
x_axis_title => NULL, --title of the x axis
y_axis_title => NULL --title of the y axis
END;
I hope i have not over-read the solution in another thread.
Thanks for any help.
Edited by: Scubus on Aug 20, 2009 7:16 PM
Edited by: Scubus on Aug 20, 2009 7:17 PM

Similar Messages

  • Passing values to XML chart..... !!!  URGENT !!!

    Hi experts,
    I am trying XML chart. If i hardcode the values for x-axis and y-axis as shown below,
    everything's working fine.
    <?xml version="1.0" encoding="utf-8"?>
    <ChartData>
    <Series label="Signal">
    <Point>
    <Value type="x">2</Value>
    <Value type="y">3.92222</Value>
    </Point>
    But, i want to pass the values for x-axis and y-axis from an table. I tried using <%= table-field %>,
    But its not working....
    Plzzz  help me out.....

    refer to this thread
    Problem in accessing an ABAP variable in XML code
    its the same question.

  • XML Chart installation problem

    Hi,
    I am trying to do a installation for XML Chart Package, and hopefully I can use it to make my charts display more flexible.
    I have download the file from http://www.maani.us/xml_charts/index.php?menu=Download.
    However, when I run xml_chart_pkg.sql, I got below error message.
    Any idea?
    p.s,I will Oracle 9.2.0.6 database, and APEX 2.2
    SQL> alter package XML_CHART_PKG compile body;
    Warning: Package Body altered with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY XML_CHART_PKG:
    LINE/COL ERROR
    0/0 PLS-00908: The stored format of XML_CHART_PKG is not supported by
    this release
    21/7 PLS-00114: identifier 'AP26WEV3LRCCSFF5QEBZOWG4PVOMCF' too long
    21/7 PLS-00707: unsupported construct or internal error [2702]
    Thanks,

    Hi Jinyu
    This is the java code loaded in the database using loadjava called by a wrapper oracle stored procedure
    import oracle.xml.parser.schema.*;
    import oracle.xml.parser.v2.*;
    import java.net.*;
    import java.io.*;
    import org.w3c.dom.*;
    import java.util.*;
    import oracle.sql.CHAR;
    import java.sql.SQLException;
    public class SchemaUtil
    public static String validation(CHAR xml, CHAR xsd)
    throws Exception
    //Build Schema Object
    XSDBuilder builder = new XSDBuilder();
    byte [] docbytes = xsd.getBytes();
    ByteArrayInputStream in = new ByteArrayInputStream(docbytes);
    XMLSchema schemadoc = (XMLSchema)builder.build(in,null);
    //Parse the input XML document with Schema Validation
    docbytes = xml.getBytes();
    in = new ByteArrayInputStream(docbytes);
    DOMParser dp = new DOMParser();
    // Set Schema Object for Validation
    dp.setXMLSchema(schemadoc);
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.setPreserveWhitespace (true);
    StringWriter sw = new StringWriter();
    dp.setErrorStream (new PrintWriter(sw));
    try
    dp.parse (in);
    sw.write("The input XML parsed without errors.\n");
    catch (XMLParseException pe)
    sw.write("Parser Exception: " + pe.getMessage());
    catch (Exception e)
    sw.write("NonParserException: " + e.getMessage());
    return sw.toString();
    This is the code i used initially for validating a xml file against single xml schema (.xsd) file
    In the above code could u tell how to specify the second schema validation code for the incoming xml.
    say i create another Schemadoc for the 2nd xml schema.
    something like this with another parameter(CHAR xsd1) passing to the method
    byte [] docbytes1 = xsd1.getBytes();
    ByteArrayInputStream in1 = new ByteArrayInputStream(docbytes1);
    XMLSchema schemadoc1 = (XMLSchema)builder.build(in1,null);
    DOMParser dp = new DOMParser();
    How to set for the 2nd xml schema validation in the above code or can i combine 2 xml schemas.
    How to go about it
    Rgrds
    Sushant

  • Xml charts

    Hi
    I m using xml charts from maani.com running on Oracle XE Release 2.2
    I have made a static xml file and runing it thru a html region.
    I want to generate charts based on a query.How to go about it???
    Shefali

    i tried using it on xe but its showing this error:
    ORA-04067: not executed, package body "DEMO.XML_CHART_PKG" does not exist ORA-06508: PL/SQL: could not find program unit being called: "DEMO.XML_CHART_PKG"
    Debug:
    1: begin
    2: BEGIN
    3: Xml_Chart_Pkg.xml_chart_pr(item_for_query => :P4_ITEM,
    4: chart_type_in => 'stacked bar',
    5: sort_series_in => 'ASC',
    6: width_in => 450,
    7: height_in => 420,
    8: chart_template_in => 'SERIES_SWITCH,SERIES_COLORS_1' || ',' || 'dissolve',
    9: chart_standard_ignore_in => 'N',
    10: default_directory_xml => '/i/charts_library',
    11: axis_val_conv_function => 'MY_FUNCTION',
    12: x_axis_title => 'MY_TITLE_X',
    13: y_axis_title => 'MY_TITLE_Y' );
    14: END;
    15: end;
    Have already saved the package,granted permissions(even though using in the same schema).
    I have made a schema in system account
    SQL> grant execute on xml_chart_pkg to public;
    Grant succeeded.
    But still the problem is thr...Can u suggest wht i m doing wrong??
    Shefali

  • Xml chart graph

    hi all Is it possible to declare two different axis ranges for two BARS ( lines) in CHART BAR GRAPH
    I mean for ex
    X Axis for BAR1(BAR1 (LINE) is COLUMN A output)
    Y Axis for BAR2(BAR2 (LINE) is COLUMN B output).
    in chart graph.
    Edited by: maddy on Nov 30, 2012 9:57 PM
    Edited by: maddy on Nov 30, 2012 10:05 PM

    Hi,
    Check this links that might help you..
    https://forums.oracle.com/thread/1018488
    http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
    Here the Exact solution from Oracle
    In the XML PUBLISHER ADMINISTRATOR Resp..
    Click the administration..
    then Click HTML Output
    Then in the Base Image URI Give the url of your application for example
    http://Test.Test.com:8000/OA_MEDIA/
    And then
    Image File Directory give this as per your application setup
    /u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
    Thanks & Regards
    Srikkanth.M

  • Xml chart

    I just wondered someone could help me out with a problem I've got. I am quite new in BW, but my team recently finished the first phase of a project (a nice looking management cockpit). I have been learning a lot, but I have a lot to learn.
    I will place you in context. We need to change a chart's column color depending on the values chosen in a navigational block in our web template. How can I do this??? Can someone give me a step by step procedure????  Can you tell me which documentation to attend???

    That's good.
    Here are the steps I would take.
    The following service will allow you to get an xml representation of a query or query view:
    Web Service for Accessing Query Data, documented here ==> http://help.sap.com/saphelp_nw04/helpdata/en/d8/3bfc3f8fc2c542e10000000a1550b0/frameset.htm
    and further discussed here ==> BW 3.5 Query view web service
    The following web log shows you how to parse xml with BSP ==> /people/brian.mckellar/blog/2004/06/25/bsp-programming-rss-httpclient-xml-xslt
    Once you figure out how to parse the xml, you can refer to the  following web log on how to pass the xml to the IGS ==>
    /people/thomas.jung3/blog/2005/09/08/igs-charting-altering-the-customizing-xml-at-runtime
    Good luck and please post any solution you develop !

  • XML Charts - download preliminary package

    If you are interested in testing, you may download the preliminary package here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:58
    I tried to explain it as good as my time allowes me. However, I am interested in
    you opinion and will try to help if I can to set it up right.
    Denes Kubicek

    Hi Denes,
      Very nice charts !!!
             Had installed as per instructions, making sure that packages valid and 125
             records imported to table xml_chart_settings.
             But when creating chart using sql query in readme.pdf as :
    P1_ITEM ( hidden item)
    SELECT deptno,
                 TO_CHAR (hiredate, 'MON')|| ' / '|| TO_CHAR (hiredate, 'YY') hired_date,
                 COUNT (empno) headcount_per_dept,
                 TRUNC (hiredate, 'MONTH') sort_col
      FROM emp
    GROUP BY deptno,
    TO_CHAR (hiredate, 'MON') || ' / ' || TO_CHAR (hiredate, 'YY'),
    TRUNC (hiredate, 'MONTH')
    ORDER BY TRUNC (hiredate, 'MONTH')
    and PLSQL (anonymous block)
    BEGIN
      xml_chart_pkg.xml_chart_pr(item_for_query => :p1_item,
      chart_type_in => 'stacked[b] bar',  ---P.S. without bar display wrong chart type
      sort_series_in => 'ASC',
      width_in => 600,
      height_in => 450,
      debug_xml_in => 'N', 
      xml_output_dir_name_in =>'CHART_DEBUG',
      chart_template_in => 'MY_TEMPLATE:FFFF00',
      chart_standard_ignore_in => 'N',
      link_type_in => 'P',
      page_to_pass_values_to => '200',
      request_in => 'SORT',
      items_to_pass_values_to => 'P200_ITEM',
      values_to_pass_to_items => '_category_',
      link_pop_up_w_in => '1000',
      link_pop_up_h_in => '800',
      chart_background_color_in => '#ededd6',
      unique_id_in => NULL,
      turn_caching_on => 'N'
    END;
    When run, the screen displays orange rectangle and after 30 seconds displays:
    Loading <xml_chart_pkg.chart_region_pr?app_user_in=DEV1&app_id.............
    in the middle of rectangle.
    Went to reference website but got more confused.
    Had been trying for couple hours without success to solve the above.
    Please advise.
    Couple of questions :
    1. The Chart_Debug directory, when using turn on, screen error out displaying directory    not found.
        Had tried to using 'c:\Chart_Debug' and creating it in various oracle's path directories  without success.
        Where should this directory be ?
    Thanks & Regards
    Zack                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Cannot preview  charts on application while i can preview from rtf

    hello,
    i use oracle reports an Bi publisher add-ins for reporting. i have a simple xml chart which displays data comes from xml. when i preview it from rtf(word) i can see it.
    but when i load it to application E-Bussiness Suit and run the concurent . i cannot see the chart in the report. is it a problem of Xml publisher or do i have to change something?
    if anybody can help me it will be very usefull for me.
    thanks in advance,
    Lezgin

    I've had the same issues. For me, trashing the permissions didn't resolve anything. The only work-around I've found is force quitting/relaunching the Finder. I have to do it every day, sometimes twice, but at least I can drag, copy and double click on files to launch an app.
    Hope that helps.

  • Sparkline chart not visible in obiee mobile app using ipad

    Hi,
    While trying to test our dashboard on IPAD 2, I am noticing that I am not able to view sparkline charts in the IPAD. I understand that since sparkline charts are built using JQUERY and Apple devices don't support jquery, therefore this doesnt work. Can someone please suggest any workarounds, so that we can get the sparkline charts working in the IPAD?
    Thanks,
    M
    Edited by: 918276 on Mar 1, 2012 4:56 PM

    Hi,
    Viewing the reports generated by OBIEE on the phone/ipad devices requires further configuration of the OBIEE presentation server as the devices presently does not support Flash displayed on web pages. So reports that contain Flash components like charts are not displayed correctly.
    We can modify the instanceconfig.xml file to display charts in a custom graphic format like PNG or JPEG instead of flash.
    Include the following in <Server Instance> section of instanceconfig.xml
    <Charts>
    <DefaultImageType>PNG</DefaultImageType>
    </Charts>
    It is recommended that you configure a separate presentation server to cater to the mobile device users as displaying charts in PNG or JPEG disables some of the interactive features offered by Flash.

  • How to display a goal line in a Flash 2D Line Chart?

    Hello,
    I am using Apex 3.0.1 and have a Flash 2d Line Chart displaying a ratio that varies from 1.0 to 1.6 for every month for a year. I need to draw a goal line at 1.2 to show the goal for the ratio. Also, I have grid lines enabled for the y-axis.
    Any pointers/tips on how to accomplish displaying this goal line would be really useful.
    Thanks and Regards,
    Dev

    I'm having the same problem!
    APEX is relatively new to me. CUSTOM XML for tweaking charts is even more recent. I tried to get a goal line to work in a line chart as you described but I have had no success. I really require a target/goal/reference line in a vertical bar chart but getting it to work in a line chart would be a welcome first step.
    I have tried the following 2 samples of code without success:
    <objects>
    <line value='94' text='Target' text_position='right' color='0xFF3300' size='1' alpha='100'/>
    </objects>
    and
    <objects>
    <trend start_value='94' end_value='94' start_argument='' end_argument='' value='' color='0xFF3300' thickness='1' alpha='100'/>
    </objects>
    ==> in the following blocks of the CUSTOM XML:
    <chart .....</chart>
    <chart..<line_chart .....</line_chart>..</chart>
    <workspace> .. <chart_area .....</chart_area> ..</workspace>
    <workspace> .. <y_axis .....</y_axis> ..</workspace>
    <workspace> .. <grid> ..<values .....</values ..</grid> ..</workspace>
    <workspace> .. <grid> .....</grid> ..</workspace>
    Any idea where I am going wrong or what could be missing? Maybe I'm not putting the <objects> parameters in the correct place in the code?
    System Info:
    Product Build: 3.0.1.00.07
    NLS_CHARACTERSET: WE8MSWIN1252
    DAD CHARACTERSET: UTF-8
    JOB_QUEUE_PROCESSES: 10
    Database Version Information
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Thanks for any help!
    Lawrence

  • Bar chart and Line chart in a single chart??

    Hello,
    Was wondering if there is any way to create a bar chart and line chart in a single Flash or SVG chart? If not, are there any plans to introduce such a chart type in the future releases?
    Regards,
    Dev

    Dev,
    I don't think you can do that using standard Flash or SVG. However, you can do this
    using my XML Chart Package
    http://htmldb.oracle.com/pls/otn/f?p=31517:58
    and the instructions given on
    http://www.maani.us/xml_charts/index.php?menu=Gallery&submenu=Composite
    You can modify the package to do that for you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • CFCHART xml attributes

    I have CFMX7 and I've linked my cfchart to a custom xml
    style:
    <cfchart
    format="flash"
    style="jio_bar">
    But other than adding
    placement="right" to the <legend isVisible="false"
    showColumnLegend="true"> tag, I have not been able to find a
    difinitive list of xml attributes (along wtih their possible
    values) to use for customizing my xml charting style. I've looked
    in the LiveDocs, and I could find all the attributes for the CF
    tags (CFCHART, CFCHARTSERIES, etc.) which is helpful, but I really
    want a very customized look as much as possible. WebCharts3D
    doesn't add much to the CFCHART capabilites either, so I really
    need to find the available parameters for the xml style file.
    Thanks,
    Jonathan

    Thanks for the reply. When I was referring to the WebCharts3D
    app, I only read about it, and based on the list of attributes on
    the LiveDoc, it didn't seem to have anything more than what CFCHART
    offered. I doubleclicked on the webcharts.bat, which is on a
    network drive, and it only opened a CMD window and then closed, and
    I'm not able to see the actual app. :( Is there another way to
    download the utility locally to my machine to use it?

  • Chart label skipping

    Hi everyone,
    I've got an xml chart (Area) and I'd like to be able to do the following:
    display grid lines for every record
    display a label for every 48th record.
    My data is in the form of 48 time periods = 1 day, so ideally I would have a grid line for every time period, but only one label per day.
    Currently, I am only able to display one gridline for every label.
    Thanks in advance!
    Kieran

    Me too, in my SVG pie chart, the last row legend text was truncated. just like:
    deal size > 70k - 92.5%
    deal size
    I actually expected in the second row, deal size <= 70k ...
    What happened? and how can I control this, moreover the legend was displayed in the left upper of the region and cost a lot width in my screen. Can I change to display the legend in other place, eg. the bottom of the region or the chart?
    Anyone can help us about this?

  • Dynamic chart type

    Hi,
    I know it's possible to generate a chart using a function returning a query. What I need to know is that if it's possible to dynamically choose the chart type using a parameter.
    For instance, I have a chart and the user can choose using a select list if he wants the chart displayed as pie or bars.
    Thanks,
    Paulo

    Oh. The details of your situation really help. Now are you looking at SVG charts or XML charts? Are you looking at "native" ApEx or at integrating some charting software outside of ApEx?
    Could you create a page for each type of chart you want to support, have 6 to 10 frames on your user's dashboard allowing the use to select the type of chart (i.e. which page to display in the frame) and what the data criteria is for that chart?
    Mike

  • Chart adustments

    Hello All,
    I am having an issue with charts. My setup is Apex 4.1.1 Internet Explorer. I currently have drilldown charts
    setup to pass values to the next page for the next chart to render the new information. Here's my issue
    when I pass 2 to 4 values instead 5 or more the chart renders with thick bars for the bar graph. Question
    is there a way to fix the chart width and height to automatically adjust based on the number of values
    rendered?
    thanks!!!

    I've had a similar problem and I think I've found a solution.
    I found an almost solution in the Oracle forums (dynamic chart size but it suggested entering a few variables in the Custom XML. Happy to do that, but the location it suggests doesn't exist. So off I toddled to AnyChart and read its manual and a few live examples, tried to put the height and width into the chart definition in the same way AnyChart does, but that caused a parsing error in Flash/Apex.
    I also tried popping a variable into the chart width definition box in Apex (4.1.1) which results in it complaining that the value must be numeric and non-zero/null.
    What seemed to work was the following:
    I have a variable all ready to go (P9_CHART_WIDTH) and the Chart XML on the Chart Attributes page looks like this (you need to allow Custom XML):
    <chart plot_type="Column" name="Chart_Name" height="&P9_CHART_HEIGHT." width="&P9_CHART_WIDTH.">
    ...some more code...
    </chart>
    And within the HTML on the Region Definition page, put in the same variables for height/width respectively e.g. change height="#HEIGHT#" to height="&P9_CHART_HEIGHT." in both places in the HTML.
    What you'll also need to do is put a computation in the "Before Header" section of the Page Rendering to calculate the value for P9_CHART_WIDTH before the chart is rendered. Set up P9_CHART_WIDTH as a "Static Assignment" Source Type. Put the calculation code to calculate P9_CHART_WIDTH in the Computation.
    Hope this helps!
    Edited by: 957346 on 06-Sep-2012 03:49

Maybe you are looking for

  • How  to use url iview???

    how  to use url iview??? HI all I need to use url iview as back button in the same page with saptransaction iview. url iview to used as back button to the home page. pl suggeest how to use url ivew....what sort of properties need to be  used.

  • Charecter Mode Report Proble.(Urgent)

    Hi, I am using report 6i. Now i am generating a charecter mode report. Tha report in the Bitmap mode it is generating properly. But the same report in the charecter mode comming STAR in place of Data. When i change the Font size it also now comming P

  • Asynchronous web service call using PL/SQL

    Hi Guys, i'm using Apex 4.1. Is that possible to invoke a web service asynchronously within PL/SQL code block ? If so, How can i access the return value of the service when execution of that web service completes ?

  • Problems using Solaris.

    I am a new user of Intel Solaris .I faced few problems after using Solaris 8. I am very new to Solaris or unix system,I sincerely seeking help from experts like you guys here. 1. I partitioned my hard disk to use with window 98 and solaris together.

  • How can I close a tab when the close button is not highlighted?

    I don't know how to close a tab without the x in the upper corner. The support page stated I should right click on the tab for the close button but it is not highlighted in my drop down menu.