Flash chart / custom XML

Hello everyone,
I was wondering if you could point me to a sort of "user's guide" or "developer's guide" for Anychart (the component that Apex uses to generate flash charts).
The "documentation" I found on their site (http://www.anychart.com/products/anychart/tutorials/xmlreference/index.html) can hardly deserve that name as it does not provide much detail.
Thank you,
Pablo

Hello Anton,
Thank you very much for the link. Anyways, I still wasn't able to find what I was looking for. Do you know if there's a way to add a line between the caption and its corresponding slice in a 3D pie chart? Regrettably, when there are a few values that represent a small portion of the pie, their captions overlap.
Thanks again,
Pablo

Similar Messages

  • Apex Charts custom XML integration

    Hi All,
    I found a chart in Anycharts.com and downloaded its XML.I wanted to integrate this chart with apex. But the XML,which i downloaded uses data from a .csv file. How to integrate this XML with apex. I found we can edit the default XML in the chart generated by. But How does XML take the values from the query which we write. There is only #DATA# at the end of the chart generated by apex and no clue on how and in what format this Data comes.
    Please help me out.
    Thanks,
    Ajay

    Ajay -
    Others may be able to explain this process better than I but I'll give it my best.
    The #DATA# tag that you see in the default custom xml for a chart is a substitution string. When your page is rendered, APEX runs the queries associated with your chart and then creates XML based on the chart type of the series. Next, it takes this XML that it generated and puts it in the chart custom XML where that #DATA# tag is located.
    There are other ways to get custom data into your chart. You can create the XML yourself in a page item and then insert the contents of that page item into the custom XML of the chart. This can be an advanced topic, but it really isn't too bad once you get the hang of it. The following link contains some pretty good examples of the things you can do. It even shows you how to format your SQL to obtain similar results. Custom XML generation is in the MISC tab. http://apex.oracle.com/pls/apex/f?p=36648:1:2979429292819853::NO I am not responsible for putting this page together, another forum member is, and perhaps they will chime in.
    Hope this helps
    Austin

  • Chart, custom xml max lenth issue

    Hi all.
    I have a flash chart where i am using custom xml.
    The problem i am facing is when i am reaching the limit of data which can be entered into the custom xml text area.
    Is there any way around this?
    Is it possible to include an external xml file for use with the chart?
    Cheers.

    Hi,
    I created a simple workaround but still it can't be the best way to avoid this error.
    Watch this forum thread: AnyChart gantt with custom xml and more then 32k
    Tobias

  • Dynamic custom XML in resource gantt

    Hi all,
    I want to create a Ressource Gantt Chart based on a dynamic XML - Source.
    Here is what I have done so far:
    1. Create a Table GANTT_INFO:
    CREATE TABLE GANTT_INFO
    EMP_ID NUMBER,
    TASK VARCHAR2(255 BYTE),
    PARENT_ID NUMBER,
    START_DATE DATE,
    END_DATE DATE,
    STATUS NUMBER,
    ACTIVITY VARCHAR2(80 BYTE)
    2. Insert some values into the table GANTT_INFO
    3. Create a new region based on <chart><flash chart><gant><resource gantt> with the following SQL - Query
    SELECT NULL LINK,
    EMP_ID,
    TASK,
    PARENT_ID,
    START_DATE,
    END_DATE
    FROM GANTT_INFO
    order by emp_id
    4. Copy static XML - Source in the Chart XML as custom XML
    Now I want to generate this XML - Source dynamicly using a DB - Procedure called by a Application Process and link the result into the Chart XML as custom XML.
    Is there a possibility?
    You can see the example here:
    http://apex.oracle.com/pls/apex/f?p=35902:1
    User: demo
    Pwd: demo
    Thanks.

    Hi fiedlerm,
    If you carry out a search on the forum on the topic of handling CLOBs, you'll see that many others have posted about this topic. For example, this particular thread - Returning a Clob to an Application Item - refers to my late colleague, Carl Backstrom's extremely useful packaged application, which demonstrates the use of AJAX to save & edit over 32k of text in a textarea, called "Save Large Value" on our Packaged Applications page on OTN: http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html#LARGE. Carl's example can be modified to make use of my previously suggested On Demand process, for the generation of your chart data. In the process you would need to create a collection called CLOB_CONTENT, and add the data clob to that collection, and also remove the setting of the textarea page item from the end of that process. The clob_Get() JavaScript function in Carl's example would then retrieve that clob value from the collection. Currently that value is being returned to the P3_TEXTAREA item on pg 3 of the application, however you could modify this to suit your needs and reference your own existing page items. Your chart custom XML will reference the textarea page item now holding the data retrieved via the clob_Get() call, and your data will be displayed on your chart.
    I recommend downloading & installing the "Save Large Value" example, and try modifying that to suit your needs. I hope this helps.
    Regards,
    Hilary

  • Changing the custom XML for a flash chart dynamically

    Hello
    I am wondering if anyone has found a way to change the custom XML
    for a flash chart dynamically.
    For instance.
    On the www.anychart.com website their is a gallery with charts.
    I have studied one called "2Dlinetimechart. It has hours on the X-axis.
    When I view the XML for this chart.
    I found this enrty
    - <block color="0x0080C0" border_color="0x0080C0" name="Sales dept.">
    <set value="0" argument="0" name="00:00" />
    <set value="1" argument="0" name="01:00" />
    It uses the tag value to set the position on the X-axis. But the tag name to set the labels on the X-axis.
    I have not found a way to do this in application express 3.0.
    Therefore I wonder if I can change to XML dynamically, and build my own block based on the input I have.
    Or even build a chart, based on a xml that I create first then sends to the object that renders the chart.
    Hope this makes sence ?
    Ulf
    PS this is related to my question about
    http://forums.oracle.com/forums/thread.jspa?messageID=1887210?
    using dates on the x-axis.
    But would by nice to know a general method to rebuild the xml-file dynamically so I can change the chart within the limits of the xml-definition.

    String value = ResultSet.getObject("myfield").toString();
    String opvalue = "15";
    <OPTION Value=15 <%=((opvalue.equals(value))?"selected":"")%>>

  • Apex 3.1 and Custom Flash Charts

    I am having difficulty getting to the point where my custom flash charts can be displayed. I have Oracle 10.2, over OHS to Apex 3.1. I cannot post any of the config files or code here because it is a different network, so I realize it will be hard to troubleshoot; and I apologize in advance.
    I would use the canned Flash charts, but my application displays data much like MS Outlook's multi-user calendar does. The chart has to be color coded, similar to Outlook's Busy vs Tentative etc. It has to show multiple events at various times, including overlapping times. And it has to handle schedules for multiple people. Lastly, there are of course gaps in the schedule, because no day is comprised entirely of meetings. That is why I felt I had to do it manually.
    I wrote XML/SVG code to do this previously, with HTML DB 1.5, and it worked fine. But Flash is the way we are going now, and I can't use SVG anymore. (Besides, Adobe says SVG will no longer be supported next year.)
    I followed the thread of April 07 in which MAdelfio posted suggestions, but I can't get it right. I did everything listed except I never included the <data>...</data> code, because I am not sure where it goes. I have a custom written stored proc, exactly like in the thread, and I pass it all the args that apex_util.flash wants. I get a malformed XML message when I try to display the chart. That seems like it should be a very straight forward error, but I can't figure out where to look. I have been using 1.5 for about a year, and last month upgraded to 3.1.
    Any suggestions on how to troubleshoot this? Or, failing that, any simple examples that display Flash charts in which the code was generated by a stored procedure?
    Thanks,
    Michael

    I'm sorry about not being able to provide all the info you need. Since it is on a totally separate network, with no access to the outside world, the only way I can do it is to print and retype everything. So I was hoping that someone could just provide suggestions as to where to look rather than providing answers. I understand that it is impossible for you to solve my problems, especially when you have been given no real information. And I don't want to keep you guessing -- I'd love to be able to just show everything and ask for help; I just can't.
    Anyway, I am trying to use only those facilities provided with Apex. I do not have any 3rd party tools except for Perl. I am using the standard shockwave flash plugin for Mozilla. The way I did it with SVG was to create a stored procedure that generated an XML file. I put a button on the page that ran the stored proc and then redisplayed the page, with an HTML region. That region included an iframe, where the source was a perl script that merely regurgitated the SVG script (for some reason I could not get the iframe to accept XML as a source, so I created send_svg.pl, which merely outputted the named SVG file).
    The format I followed was in this thread: Re: Custom Flash Charts
    I even created a replacement proc for APEX_UTIL.FLASH with the exact output as the thread, knowing that even if it worked I'd still have a ton of work making it produce my chart. But once I can get the infrastructure right, I feel I can write the flash XML.
    Maybe the easiest thing is to scan that thread I referenced and tell me if it is still accurate? That is, could anything have changed in 3.0.1, or should it still work? It is possible, maybe even likely, that I made a mistake retyping all that stuff, so maybe just verifying that it SHOULD work is a good start.
    Thanks again, and sorry again.
    Michael

  • Substitution in Custom XML section of a chart

    Hello,
    I am trying to do a substitution inside of "Custom XML" section of a "Resource Gantt" chart using &P5_GANTT_XML. (dot at the end - thanks fac586)
    The substitution doesn't work! In the "Show XML" I can see null instead of expected value.
    Seems this substitution is working in this demo http://apex.oracle.com/pls/apex/f?p=36648:60:3572101667083478::NO:::
    Any idea?
    Regards,
    Gabriel
    DB: 11.2.0.1.0 EE
    Apex: 4.0.2
    Server: Solaris 10 Sparc
    Client: XP SP3
    Browser: Firefox 3.6.13
    Flash player: updated to latest version
    Edited by: gabosu on Jan 5, 2011 11:07 AM
    Edited by: gabosu on Jan 5, 2011 11:10 AM

    In the thread
    Re: Page item value in Flash chart XML
    dated NOV-2007
    Patrick Wolf wrote:
    there seems to be something strange going on with the substitution of page items in the Custom XML. I already noticed that several weeks ago, but didn't pay much attention to the problem.
    Have a look at the following application at http://apex.oracle.com/pls/otn/f?p=15535:5
    username: demo
    pwd: patricks_demo_workspace
    It has a page item P5_TEST with a static assignment of "this is a x label". Everywhere where I reference it with &P5_TEST. or :P5_TEST during the rendering of the page the correct value is substituted as you can see on the example page.
    Only the flash charts seems to use a NULL value! I have done a
    ...x_axis name="before-&P5_TEST.-after" smart="yes"... in the Custom XML.
    Why is there this different behavior of substitution? Or do I miss something?
    I made the same behavior - the substitution is triggering somehow but the result is NULL.
    Example:
    into Custom XML
    <test>start-&P5_GANTT_XML.-end</test>
    is returning
    <test>start--end</test>
    and
    in the same time &P5_GANTT_XML. is working fine into the title of the region.
    Edited by: gabosu on Jan 5, 2011 12:21 PM

  • Custom Flash Charts

    Hi,
    I'm having some problem due to margins in Custom Flash Charts. APEX 3.0.1
    First i created a new chart (Horizontal 3D Column) that I let all margins to 0 but inside the rendered Flash it shows a lot of blank space between the x-axis and the bottom of the chart, tried negative values with success.
    Then I changed to Customize the Flash Chart, and the margins are not "used" anymore, like APEX is not using the values is the margin fields, and i can't figure out how can I put the values of the margins that I wan't to inside the xml/object/embed...
    This is my first post but I'm working with APEX since the APEX 2.0 and we have an application of managing credit cards, private labels and other types, here in Brazil.
    TY,
    Guilherme

    Guilherme,
    You are correct, the chart margins are not used anymore when you select "Use Custom XML". So, like the other regions that no longer apply, they should not be shown when that option is selected (and this is a known and logged bug).
    To achieve the same effect as the margin settings, you can edit the chart XML, and change the values inside the <chart_area> tag. Or you could disable custom XML (losing any custom changes you have made), find the margins you like, then enable custom XML again (the new custom XML will respect the new margins).
    - Marco

  • Flash Charts - How to manipulate the #data# replacement string in XML

    I have a problem with the XML file for a flash chart. I am trying to display a 2dColumn chart of an SQL query with the general form:
    select null link, x as name, sum(y) as value from z group by (x);
    this generates multiple rows, which are displayed as a bar in the chart. So far so good. The problem is, that each row is defined as a block in the chart, but only one name entry is created "value", which is displayed in the legend of the chart.
    I can display the block names on the x-axis of the chart, however, I can't rotate them, so that they don't overlap in the display, which I would be able to do with names. I assume, that the blocks are defined in the #data# replacement string of the XML file. I would like to change the generated XML replacement string from the SQL to make each row selected a different name, and only have one block ("value").
    What would be the easiest way to achieve this?

    user587996,
    There's no way to manipulate the #data# replacement directly, but you could generate your own XML (see Re: Apex changing nulls to zeroes when creating Flash Charts for one way to do it).
    When you say "I can't rotate them, so that they don't overlap in the display" -- have you tried the Labels Rotation chart attribute, or is that not working?
    - Marco

  • How to pass apex item value into custom xml for chart or guage?

    Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
    Which was not answered.
    Roel - Thanks. Its working - but in a semi quotes in the custom XML
    <pointers>
    <pointer value= '&P5_RUNNING_TOTAL.'
    <label enabled="true">
    <position placement_mode="ByPoint" x="50" y="15" />
    <format>{%Value}{numDecimals:1}</format>
    <background enabled="false" />
    </label>
    </pointer>
    </pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
    (Re: AnyChart - set Dial axis intervals dynamically?
    Edited by: P.Ranish on Dec 13, 2012 6:23 AM

    P.Ranish wrote:
    Is there any update for this question ???
    Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
    Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
    Roel wrote:
    Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX

  • Chart Issue,  tooltip separator / on custom XML sustitution not working

    I did not find the way to declaratively change the Tooltip label separator in the chart, I see the XML contains this:
    <tooltip_settings enabled="true">
                <format><![CDATA[{%Name}{enabled:False} - {%Value}The problem is the "-" minus sign as separator between the label and the value - even if the Y axis show where the 0 is, some user might see them as negative number.
    On option is to use custom XML. In that case, since I'm using &ITEM_NAME. in the chart title, this is not replaced.
    Any idea how to overcome on these issue?
    Thanks,
    Peter

    I did not find the way to declaratively change the Tooltip label separator in the chart, I see the XML contains this:
    <tooltip_settings enabled="true">
                <format><![CDATA[{%Name}{enabled:False} - {%Value}The problem is the "-" minus sign as separator between the label and the value - even if the Y axis show where the 0 is, some user might see them as negative number.
    On option is to use custom XML. In that case, since I'm using &ITEM_NAME. in the chart title, this is not replaced.
    Any idea how to overcome on these issue?
    Thanks,
    Peter

  • 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.

  • Setting Custom XML = Yes in resource gantt chart removes start & end dates

    I'm having a strange issue with a Resource Gantt chart in Apex 4.0.2.
    I built the chart using the Wizard and changed nothing from the defaults. Everything looks/acts fine on the chart when Use Custom XML = No. But I wanted to change a couple things like cell alignment and width, so I set this to Yes and modified the column attributes in the XML code. After doing so, when running the report, the values for Start Date and End Date are not showing. This is happening in both the datagrid and the tooltips, but the timeline is still showing the right information (ie a bar from start to end), so I know it still knows what the correct start and end dates are.
    Thinking I accidentally messed something up, I deleted the chart and recreated it (again, from the wizard). This time, I went back and only set Use Custom XML = Yes but did not change anything within the XML code itself. To my surprise, the dates were still missing. If I set it back to No then they reappear.
    Has anyone seen this before and/or know a way to fix it?
    Thanks,
    ~ John

    Hej John,
    APEX itself is using a field substitution "&DATE_FORMAT." to insert the date format into the XML file. This field substituion is used in may location in the default XML. APEX standard action is to substitute it with the value specified in the Gantt Setting "Date Format". This substitution takes place many places in the default XML file.
    Enabling custum XLM also means disabling APEX XML handling, the substitution does not take place, the "&DATE_FORMAT." contains in this case a null value.
    The default XML file, which can be viewed in apex developer mode, looks like:
    Start Date: {%ActualStart}{dateTimeFormat:&DATE_FORMAT.}
    The runtime XML, which can be viewed in debug mode, contains something like:
    Start Date: {2011.07.21 00:00:00}{dateTimeFormat:}
    ...a null value is not a valid AnaGantt date format.
    Two solutions:
    a) insert a correct AnyGannt date formatter in the custom XML like
    Start Date: {%ActualStart}{dateTimeFormat%YYYY.%MM.%dd %HH:%mm:%SS}
    or
    b) create a field DATE_FORMAT on page containg the chart and intialize it with the AnyGantt date formatter like %YYYY.%MM.%dd %HH:%mm:%SS".
    When running the page the substitution will take place usually.
    Regards,
    Benny

  • Flash Chart Legend Location Question

    Under Chart Attributes, Display Settings there is a raidio button for the legend display. Either None, Left or Right. I'm wanting to move the legend to the bottom or top to allow more width for the actual chart data. Any way to do this? I'm not real familiar with flash.

    Never mind, found it. X & Y axis in the custom xml.

  • Flash Chart Legend Not In Capitals

    I have created a flash chart based upon a function returning sql. The chart displays fine but the legend column names for some reason are converted to initial capitals from all originally being in capitals, eg "SERIES" now equals "Series". I really need the legend to display all capitals as it is in the sql.
    For example:
    The function returns a string similar to this .......
    select NULL as "LINK",
    WEEK as "LABEL",
    VALUE1 as "VALUE1,
    VALUE2 as "VALUE2"
    from MY_TABLE
    order by WEEK
    When the flash chart is rendered on the page the legend displays the two series values as "Value1" and "Value2". Somehow the chart ignores the capital case of the column names and applies initial capitals only over riding the original case.
    There appears to be no over ride for the legend case so where is it coming from ? It shouldn't make any difference but the chart type is a "3D column" style. Not sure if this is a XML question or maybe a Flash Player issue.
    Regards,
    Jack.

    I had the same problem.
    To fix it:
    1. Find a font that is strictly caps. I used Felix Titling.
    2. Edit the flash chart & under the chart attributes set USe Custom XML to yes.
    3. Scroll down almost to the bottom and find the legend tag.
    4. In the font tag for the legend substitute the font you chose.
    This will capitalize ALL the letters in the legend.
    I don't know how to selectively capitalize letters.
    Bob Richards

Maybe you are looking for