How do I create a line chart direct from xml or convert xml to ArrayCollection

The xml is simple:
<data>
<row name="Q1">
<expenses>64</expenses>
<revenue>98</revenue>
<profit>34</profit>
</row>
<row name="Q2">
<expenses>44</expenses>
<revenue>28</revenue>
<profit>64</profit>
</row>
<row name="Q3">
<expenses>14</expenses>
<revenue>58</revenue>
<profit>54</profit>
</row>
</data>
it's dynamically generated as a string so could be created in xml format, or ArrayCollection, or any other format that works. However I can't find a example of using xml as the datasource that works. I've tried to convert it to an ArrayCollection first but that didn't work either.
Alternatively I could store the data as a string "Month: "May", Profit: 2400, Expenses: 575, Amount: 456", then:
expensesAC2.addItem({Month: "May", Profit: 2400, Expenses: 575, Amount: 456 });
works but:
var settings:String = resultXML.row[0];
expensesAC2.addItem({settings});
doesn't work. Any suggestions, or links to a tutorial that works would be really appreciated?

Hi all,
This issue was resolved off-line, however, I wanted to note a few points that were shared with me.
Learnings from Forum discussion:
Best practice is to use a combination of INDEX and MATCH functions instead of Vlookups.  Using the VLOOKUP function can result in a very slow dashboard if using a lot of data. 
Also, when using the Filter Component note the destination field as the filter component does not copy the first filter value at all so you have to adjust by one column to accommodate for this (two columns if you have 3 filters etc).

Similar Messages

  • How can I create a PDF catalog direct from my website?

    I need to be able to easily create a PDF catalog/brochure direct from my website. Can I use the .xml file that I use for the Google Merchant Centre feed to create a catologue as this would seem to be a quick and easy solution. We have 1200 products so creating a PDF catalog from scratch will take a lot of time and effort.

    This forum is only to discuss how the forums operate, not products
    If you go to the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for an Adobe product to use
    You might check the Acrobat forum

  • Unable to create a Line chart

    Hi Friends,
    I am trying to create a Line Chart based on CalMonth, where I want to show no. of SalesOrg denoted by different lines separately according to their monthly sales.
    Please help.
    Regards,
    Jatin

    Hi,
    To create chart this is the process..
        1.      Before you begin publishing a chart, you need to specify which chart type ( Line chart in your case ) you want to display. You can determine how the data provider is to be built by using the class of the chart type.
           2.      Select an existing query or design a new query with which you can generate a suitable view of the data, that is, a suitable data provider.
           3.      Start the publishing process and create a new Web item of type Chart.
           4.      We recommend configuring the properties of the chart Web item as follows:
    &#9675;       Expanded hierarchy nodes should be hidden.
    &#9675;       Totals should be suppressed.
    &#9675;        If you want to swap the data providers in the chart, you should assign the Swap Display Axes property to the chart. The columns and rows are then swapped automatically when the chart is generated. You do not need to change the view on which the chart is based.
           5.      When you edit the chart, the Web Application Designer or Web Application Wizard first shows the default setting, that is, a column chart.
    &#9675;       Firstly, format the chart using the wizard so that the most important settings and the number of displayed data series and data points correspond to your data provider (see also Formatting a Chart Using the Wizard). Assign the required chart type to the chart and format the chart as required.
    &#9675;       All chart elements that you can format are displayed in the list of properties on the right of the screen. You can modify the properties as required here.
    Also go through these links.
    line chart..
    [http://help.sap.com/saphelp_nw70/helpdata/EN/7e/daf830b46411d2961200a0c9308b1f/frameset.htm]
    Formatting chart..
    [http://help.sap.com/saphelp_nw70/helpdata/EN/7e/daf830b46411d2961200a0c9308b1f/frameset.htm]
    Hope it helps..
    Regards,
    Priti

  • How can we create dynamic pie chart in jsp

    hi im a new jsp programmer and i just want to know how can i create dynamic pie chart in jsp

    http://sourceforge.net/projects/jfreechart
    - Saish

  • Create a line chart

    I wont to create a line chart using a a PL/SQL script. If is possible, i wont put this script inside a report created using Web DB, as an action that it must run after the show of the report html page. Is possible to make that? what i can do?
    Thanks a lot!
    null

    PL/SQL has no graphical capabilities whatsoever. However it is possible to represent values like this
    X A ----
    B --------
    C -----
    012456789
    Y
    in which for each row (the X axis) a substr() of the value '----------' is created using a value from the query (the Y axis).
    Is that clear? Let's try an example. To print graphically the lengths of a column:
    SELECT col1 as "X", substr('----------',1, length(col1)) as "Y"
    FROM your_table;Not very pretty I grant you. But if you want pretty you'll have to use Oracle Graphics (now part of the Developer toolset) or java.
    Good luck, APC
    null

  • How do I create a line-Map animation effect

    How do I create a Line-Map animation effect?
    i am trying to highlight a 'Route' on a map.

    Are you using PSE or Premiere Elements? You can't do this in PSE. For PRE, better to ask in their forum, since very few of us here use it:
    http://forums.adobe.com/community/premiere_elements

  • How do i create a playlist in itunes from my iphone 4s?

    how do i create a playlist in itunes from my iphone 4s?

    denisefromnj wrote:
    On my iphone 4s I have 2 songs in the purchased category that I want to manually move into an existing playlist.  I can not figure it out.
    If the existing playlist is a regular (non-smart) playlist, then you can edit it directly on the iPhone. Just select the playlist and you should see an "Edit" button at the top, above the songs.  If you don't see that, then it must be a smart playlist since those can't be edited on the device. Once you tap the Edit button you would then navigate to the song you want to add and press the blue + sign to the right of the song, then press Done when you're finished.
    One caveat though, if you auto-sync your iPhone, the changes you make will not be preserved -- the playlist will revert to how it was next time you sync to iTunes.  So if you want to edit a playlist on your iPhone and then transfer it to iTunes, you have to create a new (empty) playlist on your iPhone, add the playlist that you wanted to edit to the new playlist, then add or delete more songs to the new playlist.  When you auto-sync, the new playlist will transfer to your iTunes library.
    But if you manually manage your iPhone, the playlist should remain in its edited state even if you connect to your library (but admittedly its been awhile since I tried manual mode).

  • How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?

    How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
    Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
    I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
    Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
    I need to know details. Thanks.
    USE master
    go
    EXEC sp_addlinkedserver
         @server  = '{Linked Server Name}'
        ,@srvproduct = '{System DSN Name}'
        ,@provider  = 'MSDASQL'
        ,@datasrc  = '{System DSN Name}'
    EXEC sp_addlinkedsrvlogin
         @rmtsrvname = '{Linked Server Name}'
        ,@useself  = 'False'
        ,@locallogin = NULL
        ,@rmtuser  = '{Oracle User Name}'
        ,@rmtpassword = '{Oracle User Password}'

    You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
    You should not use MSDASQL or any DSN.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How can I create a java.awt.Image from ...

    Hi all,
    How can I create a java.awt.Image from a drawing on a JPanel?
    Thanks.

    JPanel p;
    BufferedImage image =
        new BufferedImage(p.getWidth(), p.getHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = image.createGraphics();
    p.paint(g);
    g.dispose();

  • Hi! How can i stream a free movie directly from my iphone to my Apple TV?

    Hi! How can i stream a free movie directly from my iphone to my Apple TV?

    Welcome to the Apple Community.
    You can send movies to the Apple TV using Airplay in many cases. Not sure what you mean by free movie, so I can't tell you whether it's likely to be compatible or not, please tell us more.

  • How do I download and access music directly from an external hard drive

    How do I download and access music directly from an external hard drive through iTunes

    Hello Docwa
    Check out the article below to move your iTunes Media folder to an external drive so that way you can have the media externally. If you have not added the media yet, go ahead and move the folder if you do not have enough room on your computer so you can import the music
    iTunes for Mac: Moving your iTunes Media folder
    http://support.apple.com/kb/ht1449
    Regards,
    -Norm G.

  • How can you create a writable PDF document from a PPT presentation ?

    How can you create a writable PDF document from a PPT presentation ? Upper part with the image , lower part with a free space in order to take notes for students during presentation or course.
    Thanks.
    B

    You can make a PDF file out of you notes and handouts but using the Adobe PDF printer.
    Open your PowerPoint Document then go to “File” “Print”
    Select ‘Adobe PDF” Printer
    Under slides, select which way you want to print. Note it will not print to a printer but to a PDF file.
    After then go into printer Properties and Setup PDF properties, do the following: (see second image below)
    Default: PDF/A 1-b
    Adobe Security: none (change as needed)
    Adobe Output folder: Prompt for Adobe file name
    Adobe Page size: Letter (change as needed)
    Check the following check boxes
    View Adobe PDf Results,
    Add Document Information,
    Rely on system fonts only,
    Delete Log files for successful jobs.
    Select OK
    A pop will ask you where you want to save the document. The file extension should be PDF. After giving the file name select okay and the file should popup as a PDF. Down side is if you want to speaker notes included then you will have to do another file, like wise with just screen shots then combine into one PDF document.
    I used Acrobat IX Pro. So to do this you need Acrobat IX or X Pro.
    Hope this will help.
    Tiger26

  • How do I create a single PDF Portfolio from an Outlook 2011 email with multiple non-pdf attachments?

    How do I create a single PDF Portfolio from an Outlook 2011 email with multiple non-pdf attachments?
    Email has 3 attachments--some are not pdf. I'd like all three converted into pdf files along with the email itself, and all appear in the email's pdf portfolio.

    I would also like an answer to this question. 
    I am trying to convert an Outlook email to a PDF, then all attachment are appended to the PDF as pages instead of attachments. 

  • How do i create a table of contents from bookmarks?

    How do I create a Table of Contents from the list of bookmarks?  How do I format a Table of Contents?

    Hi Brent!613,
    I think you may have landed in the wrong forum. Are you using Acrobat? If so, this thread from the AcrobatUsers.com may be useful: https://answers.acrobatusers.com/Create-Table-Contents-pdf-Bookmarks-q192651.aspx
    Best,
    Sara

  • How do I create. A single PDF from multiple files? PDF pack on iOS

    How do I create. A single PDF from multiple files? PDF pack on iOS
    The primary reason I signed up for. PDF Pack was to create a single PDF from multiple image files and other PDFs .
    Is this possible? If so how
    thanks in advance
    rich

    Hi Rich,
    The combine files feature isn't available when you're using Reader for iOS. However, you can log on to the web interface at Adobe Acrobat.com using your Adobe ID and credentials, and use the Combine Files feature there.
    Please let us know if you need further assistance.
    Best,
    Sara

Maybe you are looking for

  • ERROR:Could not read archive file - during Processing Base System Part 2

    Hi there, What I have: * I have problem with installation of the Mac OS X Panther v10.3 on iMac. * I have 3 original CDs (black with silver X). What I did: * I made new 1 partition and formated disk as Mac OS Extended (Journaled) over the Disk Utilit

  • Multiple selction in the dropdownlistbox

    Hi All Can any one help me out that I am implementing the Drobdownlist for box for the multiple selections and to save the selected items in a database table. I have written code for the oninputprocessing. But I am getting error. unable to proceed fu

  • Connection Error in Presentation Server log file - Socket:524

    Hi All, Earlier I had issues with starting presentation server , so i installed OBIEE again. I started all the services and Started oc4j. And i'm able to open the Administrator tool. But get error in IE while opening presentation server. When i opene

  • Mixing two hierachies

    Hi, i need to show some sales data on a query with profit center hierarchy on the rows. I need to show real data and plan data, the problem is plan data can have some new profit centers that are not on the hierarchy. Is there any way to have the real

  • My computer won't install to new laserjet m177fw printer

    bought a new laser jet m 177fw printer to replace old hp 1512.lap top connects fine wireless wise. but the old desk top computer connected with usb cable (not on line) used for word processing won't install. all starts ok when the disc is inserted an