How to use the d3.js library with Apex Charting

Hello.
I am using Apex 4.1.0 with Oracle 11gR2 and Oracle App Server (mod_plsql).
I'm trying to incorporate the d3.js library (a visulaization framework) in my Apex charts but am not having much success.
I found this article in which David Mann uses the library within an Apex 4.x application:
http://ba6.us/d3js_application_express_basic_dynamic_action
I replicated his exact steps in my own application but without success. I do not see how he was able to get his application to work. Indeed, the tutorial does not even use a dynamic action despite what the article title says.
Has any one used the d3.js library with their Apex application. If so, would you be willing to share how you went about it?
Thank you very much.
Elie

EEG wrote:
Hello fac586.
Thank you very much for responding/helping.
In the article I referenced I did note David's statement about using a "modern" browser with d3.js (one that recognizes css3 syntax); otherwise, the framework will not respond. And so, I was careful to run my Apex application in IE9.x as well in Firefox 16.x. But all I see is an empty region with a title. No chart. Nothing.
I suspect my one of my problems here is in getting the chart to refresh every "n" seconds. For this, I think the dynamic action would be used, though I'm not sure how to go about doing so.That's included in the sample code (line 99). Strangely Dynamic Actions don't seem to include a native timer event...however there is a plug-in.
More problematic, though, is that I am not seeing any chart whatsoever in the region. I would have expected to see some chart data, even if it is not automagically refreshing.
I've created my example in my EEG workspace on apex.oracle.com:
Workspace: EEG
Username: [email protected]
Password: galaxy (note: all lowercase)
Please see application 27083 called Elie_Goodies, page 25. This page has an associated tab called, appropriately enough, "d3.js Library". The Safari console showed a couple of JavaScript errors.
1. The URL used to include the d3 code in the blog article:
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>is returning HTML, not JavaScript. Changing it to that given on the d3js.org site:
<script src="http://d3js.org/d3.v2.js"></script>includes the correct script.
2. There was a syntax error in a script in the Run Code region. I think there was some kind of issue arising from copying from the blog article: it looked like line endings hadn't been respected as the code wasn't formatted properly. Pasting it from the blog into Coda's editor and then into the APEX Region Source text area fixed the format, and it then ran first time.
Thanks for the heads-up. I'll also be looking further into d3.

Similar Messages

  • Using the Standard Template Library with 5.0 using 4.2 compatibility mode

    Has anyone used the Standard Template Library with the 5.0 release of the complier using the -compat=4 flag ?

    It's not your system, unfortunately. It's iTunes 5.0. I have XP, a brand new drive and Nero. I can burn all sorts of CDs, just none from iTunes.
    I have gotten several emails from Apple regarding this issue, none of which helped. The last response I got said they were working on my problem. Right now, the best solution that I can come up with, although I'm not sure how to do it, is back up your songs as a data CD, uninstall 5.0 and reinstall version 4.9.
    If you go back a few days (or maybe a week) in the discussions, someone posted a link for 4.9. If you can do this and successfully install 4.9 you will have no problem burning CDs. I just haven't had any luck burning my songs as data. I have 4.9 on an older computer and can burn CDs for days. So all I have to do is get my songs to the old PC and I'll be in business.

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • My gen 3 iPod Touch seems to have duplicated all my music since updating to IOS 5 so that it now only holds half as much. What can I do about it? I'm using the same iTunes library with OS 10.6 and all software up to date.

    My gen 3 iPod Touch seems to have duplicated all my music since updating to IOS 5 so that it now only holds half as much. What can I do about it? I'm using the same iTunes library with OS 10.6 and all software up to date.

    Is the camera damaged? Could be a hardware problem.
    Try:
    Close the Camera app in the multitasking bar, then try again.
    Restart/Reset/Restore your iPod. In that order.

  • How to use the eventing and databag with a WAS 6.20 ?

    How to use the eventing and databag with a WAS 6.20 ?
    Is what there is a good guide for these services?
    Thank's

    In the raise event you can pass the value
    like below.
    <SCRIPT>
    function raiseEvt(value1){
    if(window.document.domain == window.location.hostname){
    if ( document.domain.indexOf(".") > 0 ) document.domain = document.domain.substr(document.domain.indexOf(".")+1);
       EPCMPROXY.raiseEvent( "urn:com.sap:BWEvents","BWiViewevent", value1, null );
      // alert('tree domain'+document.domain);
    </SCRIPT>
    and in the
    subscribe event you can get the values like below.
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
          document.forms[0].gp_hidden.value = eventObj.dataObject;
    </script>
    Also look at the following link for a complete documentation.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Enterprise%20Portal%20Client.pdf
    Regards
    Raja

  • Does anyone kwow how to use the Korg M50 editor with garageband?

    does anyone kwow how to use the Korg M50 editor with garageband?

    Moved from the Creative Cloud to the Photoshop forum. They will be able to help you here.

  • How to use one I-tunes library with multiple windows users (family) on 1 pc

    On our family pc we log in with different accounts. We want to use I-Tunes but all have the same library. I tried to create a library not in the users directory, but in the All Users folder that is accessible for everyone. However, when I import the music in the library for one user and set the same location for another user, I-tunes does not recognize the library. So everyone has to create it's own library.
    What are the best practices to overcome this?

    Keep in mind that what you have done now is you have multiple iTunes libraries accessing the same media folder. Meaning, that each account can have their own ratings, playlists, etc. but more importantly, each account does NOT know what the other account does, so if your daughter adds a CD to her account, it will go into the shared folder, but it will NOT automatically go into your wife's iTunes library. She would have to add it manually. Likewise, if one account deletes music from their library and tells iTunes to remove it to the trash, the other accounts will not know and iTunes will still try to access the file from the shared location even though the file is now trashed.
    Each account has their own database files (.itl files in the iTunes folder) which stores this stuff.
    If you want to have everyone use the exact same library which means the same ratings, playlists, etc. then you need to move the database files into that same location and set each iTunes account to read the same data.
    How to open an alternate iTunes Library file or create a new one
    http://docs.info.apple.com/article.html?artnum=304447
    Patrick

  • How to Use the Sun Fortran Library

    I wish to use the Sun Fortran Library of functions, but I am having trouble compiling my program. I would appreciate some help on selecting the proper compiler options, code modifications, etc.
    My OS is Fedora 10 on a 64-bit system. I use the latest Sun Studio Express. I have used the Sun f95 compiler for quite some time as well, but this is my first use of one of the functions from the Sun Fortran Library.
    Here is my first attempt after doing some unsuccessful research of my own on this issue:
    PROGRAM test
    IMPLICIT NONE
    REAL*8 x, y
    REAL*8, EXTERNAL :: d_lgamma
    x=2.0
    y=d_lgamma(x)
    y=EXP(y)
    WRITE(*,*) x, y
    END PROGRAM test
    Here's how I tried to compile:
    f95 -lm test.f95test.o: In function `MAIN_':
    test.f95:(.text+0x91): undefined reference to `d_lgamma_'
    Obviously I am not doing this correctly. Is it possible that the Sun compiler and libraries have not been installed correctly on my system? How can I test if this is case?
    Thank you for your help with this matter.

    The routine d_lgamma_ is not supplied as part of Sun's Fortran product.
    Sun's Fortran team does not maintain the library that contains that
    routine. The team that does support the library has not yet ported it to
    Linux. Different teams have different priorities.
    In this case, there is a simple workaround. The C routine
    #include <math.h>
    double
    d_lgamma_(double *x)
    return (lgamma(*x));
    implements the routine d_lgamma_.
    Bob Corbett

  • HT1688 I am trying to find answers about how to use the earphones that came with my new iPhone 4s. Does this work similarly as a Bluetooth or do I need to still buy one. The printing in the manual is SOOO small, it is too hard to read!

    Does anyone know how to use the earphones( plugs) that come with iPhones?
    Mine is still fairly new and I am just learning how to use certain things.

    They're pretty straightforward. You plug them into the headset jack (the hole on the top left of your phone). You put the buds in your ears. All sounds, except for the phone ringing will now come through the earbuds.

  • How to use the POST method In Oracle APEX 3.1

    Hi,
    In APEX if we are submitting the page the parameters( Variables ) will pass through URL.
    How to hide the these parameters from URL??
    I Hope POST method will solve this problem.
    How to use the POST method in APEX???
    Help me out to solve this problem.
    thanks in advance.
    Cheers,
    Shan

    In APEX if we are submitting the page the parameters( Variables ) will pass through URL.No they won't. Submission POSTs the <tt>wwv_flow</tt> form.
    Sometimes a branch may be performed after submission, generating a URL in which parameter values are visible. To avoid this, use the save state before branching option.
    Other actions&mdash;like using navigation lists, or clicking a link in a report&mdash;will perform a GET using parameters in the URL. In these cases using Session State Protection is advised.

  • How to use the windows API GetCaretPos with FireFox? It works with IE

    I want to get caret position from a windows desktop application using the Windows API GetCaretPos. It works in any windows Application and in IE. It worked also in FireFox for some minutes in version 3.6.8 but than it stopped working. Can anyone tell me how to make it work?
    == This happened ==
    Every time Firefox opened

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Did this fix your problems? Please report back to us!

  • I don't understand how to use the System Font Panel with iMovie.

    I need an explanation of how the System Font Panel works. I guess there's a way to get some of those fonts to the iMovie Font Panel, but I can't see how.
    Thank you.

    I have had good success with the System Font Panel. Now all of a sudden, I only get part of it. Any suggestions on how to restore the entire panel? There are no change size options in the corners like in some dialog boxes. I was going to paste what I have here, but for some reason, paste is not available.

  • How IPAD use the Printer which connected with the Time Capsule

    I connnected a printer to time capsule. And I can use the printer in Windows. But I can't use it on IPAD and IPHONE.
    So are there any solutions?

    iOS devices can only print directly to AirPrint printers. Wireless printers or printers connected to a Time Capsule are not necessarily AirPrint capable.
    To print directly from an iPad / iPhone you will need an AirPrint compatible printer or another device to act as a print server. That can be a Mac computer running Printopia ($19.95 with free trial) or handyPrint (donation - supported). The Mac must be "on" but may be asleep for them to work. Equivalent PC options exist but you're on your own finding them.
    You can also buy this standalone print server:
    http://www.lantronix.com/it-management/xprintserver/xprintserver.html
    The xPrintServer Home Edition will support a directly connected USB printer. The Network Edition will support any network printer.
    These options enable you to use any printer available to your Mac, even older ones that may predate AirPrint by decades.
    Otherwise you will need to buy an AirPrint printer or multifunction device.

  • How to sync the iTunes songs library with other two computers thru iPhone?

    I have three Apple computers, the main being iMac 24", on which I usually purchase music from iTunes and import from my CDs. Thus, it has the biggest collection of songs, roughly about 1200. I also sync my iPhone 3GS 32 GB with this comp, and songs fill in slightly more than 6 GB on iPhone. But then when I sync my iPhone with the MacBook Air or my old PowerBook G4, about 2 GB of songs disappear, reducing the songs library to what is on the computers, while I'd like to transfer all songs (newly purchased and imported) from the iPhone to those comps, too, which are BTW, respectively authorized.
    Seems to be a simple issue, and I read all Help content, and tried all iTunes Menu functions, but can't solve it! Any help from real Apple experts?

    here are some reads that may be helpful:
    http://www.andrewgrant.org/2008/03/30/how-to-sync-an-iphone-with-two-or-more-com puters.html
    http://www.ismashphone.com/2009/05/how-to-sync-your-iphone-to-multiple-computers .html

  • How to use the new MacBook 13'' with Built-in 7-hour battery

    Hi,
    I just bought the new MacBook, it is my first Mac, and having the Built-in 7-hour battery I don't know if I can plug it in most of the times without doing any damage to the battery.
    On other portable computers, I just take the battery out and than plug it in and use it, but in this one that can not be done.
    So, what to do? Try to always drain and recharge fully, or it is no problem to plug it in when the battery is fully charged?
    I read that you should let it sleep(when it goes to sleep because it doesn't have battery)for 5 hours before charging it so it really drains. Is that really necessary?
    Also after it goes to sleep and I plug it in to charge, should I let it charge in Sleep Mode, or should I Shut it down and let it charge?
    What has been your experience with battery life? The first time I used it, it lasted for 4hours, is this normal and it will get better with 3 or 4 fully charges/draines?
    Thank you very much for your help.
    Pantuf

    Hey guys, I understand your concern that you're not getting 7 hours out of your battery but let me put a couple things into perspective and also offer you some info from Apple's website that may or may not explain why you aren't getting the full 7 hrs.
    First mgb545, 5.5 hours is killer for laptop battery, but nonetheless you paid for it for the 7 hour battery so I don't fault you in any way for wanting what they said you would get.
    Second, the MacBook is Apple's "sub $1000" notebook. At first mention of that you think, "alright, it's under a thousand bucks!". It is, it's just $999...
    My point is that it's an advertising game. The MacBook can get +up to+ 7 hours on a single charge but not everybody is doing the same things or has the same configuration as when Apple was testing their machines. You might have a Time Machine HDD backing up (which I don't recommend nor do I think you guys do since you didn't mention it) or some other USB peripheral that takes power which would lower the battery's life. However, I think there is
    This is straight an easier explanation... This next blurb is the "fine print" from Apple's website right on their MacBook page about how they got 7 hrs.
    +"Testing conducted by Apple in October 2009 using preproduction 2.26GHz Intel Core 2 Duo-based MacBook units. Battery life depends on configuration and use. See www.apple.com/batteries for more information. The wireless productivity test measures battery life by wirelessly browsing various websites and editing text in a word processing document with display brightness set to 50%."+
    That all being said, I think or at least hope you'll find your answer there. For starters, it says "various websites". Who knows if those were basic HTML or Flash heavy sites or a combination of both? The other stipulation of this is brightness. Do you guys have your brightness at 50% or is it higher?
    Try this, I know the weekend just passed, but if you find that you have 7 hours where you don't need your laptop, leave it on, make sure it doesn't go to sleep or screen saver, play with it every so often, leave wi-fi on, make sure your brightness is at 50% and then see how long it lasts.
    One last thing, when you say you're getting 5.5 hrs out of your battery, how low are you letting it go to? I'm assuming when Apple says "a single charge" they mean it. So if you're getting 5.5hrs when it goes down to 8 or 10% you also need to factor in the extra time you might gain from that.
    Hope this help, let me know how your computers are set up, I'm curious to know if this will resolve or at least account for your lack of 7 hrs because me just recently got the 13" MBP and it doesn't get 7hrs either.
    -David

Maybe you are looking for