Question about stacked graph from DB

Hi There.
Ive come up against an interesting issue in my current project. In my prototype I have a stacked column chart (just one column) with the 'sections' of each column being defined as in the Flex docs, i.e. I have 3 column series I will call col1, col2, and col3. This works great but now my problem is that when I start getting data from the DB, I could have any number of column series as I have in the DB data pairs in the form of; col1 - 23, col2 - 34, col3 - 14... And there can be x number of records. Has anyone got any references or ideas about how to go about this?
Thanks in advance.

Getting on with this I can say I have made (some) progress.
The file looks as follows:
<mx:ColumnChart id="columnChart" type="stacked" dataProvider="{this.chartData}" width="507" height="100%" x="781" y="0">
     <mx:horizontalAxis>
          <mx:CategoryAxis categoryField="category" dataProvider="{this.chartData}"/>
     </mx:horizontalAxis>
</mx:ColumnChart>
And the AS part:
private function createChartSeries(event:ResultEvent):void
     var temp:ArrayCollection = event.result as ArrayCollection;
     chartData = new ArrayCollection();
     var i:int;
     chartData.addItem({name:"val1"});
     chartData.addItem({name:"val2"});
     for (i = 0; i < temp.length; i++)
          var series:ColumnSeries = new ColumnSeries();
          series.xField = "name";
          series.yField = temp[i].call_type.toString();
          series.displayName = temp[i].call_type.toString();
          chartData.getItemAt(0)[temp[i].call_type.toString()] = temp[i].cost;
          chartData.getItemAt(1)[temp[i].call_type.toString()] = temp[i].duration;
          columnChart.series.push( series );
     columnChart.dataProvider = chartData;
     columnChart.invalidateSeriesStyles();
     columnChart.series = columnChart.series;
[Bindable]
public var chartData:ArrayCollection;
The event.result is as follows:
[{type:"t1", val1=10, val2=30}, {type:"t2", val1=20, val2=3}]
Now call the "createChartSeries" function the y-axis updates, there are 2 columns (well the grey bit down the bottom), but there are no names (the x-axis values) and the actual data columns do not show up.
Can anyone help me with this one?

Similar Messages

  • Question about tranferring data from iPhone 3gs to iPhone 4

    I just had a couple quick questions about transferring data from my old phone from my new iPhone 4. The reason i am wondering is because i am worried about whether i will encounter any problems when doing so.
    First off i have already sold my phone today, i reset all data and settings from the phone and gave it to my buddy so its gone. I did a full sync and backup yesterday so all the necessary files should be on my computer(windows 7). Now, im basically wondering if i will run into any problems if i restore my iphone 4 from a backup. My 3gs was running 3.1.2 on att. Now i know IDEALLY i would have updated it to iOS 4 before backing it up and used the newest version of itunes, but i did not. Does anyone think this will be a problem for me?
    Now with that out of the way, my biggest fear is losing my old data(text messages and notes mainly because i am a pack rat for those type of things) so id like to be SURE that none of my old backups will be deleted in any scenario. The reason i dont just restore it right now is because i want my new phone to be as clutter free as possible. I am going to be putting on here only the apps that i used often and would basically like to transfer over the BARE minimum; texts, notes, and highly used apps... So i guess my main question is can you transfer over only certain things like texts and notes after setting up the phone as a new phone. And if i were to set up the phone as a new phone what would happen to my old backups? Would i be able to selectively restore?
    Im afraid that it might not be a possibility to transfer only certain things even though it should be.. i should be able to select a text messages folder and put it on my new phone and be done with it... But anyway i dont want to rant. Can anyone explain to me how this all will work?
    ULTIMATE GOAL: Transfer only texts, notes, certain apps(and their data) and NOTHING ELSE.
    MOST IMPORTANT THING: Not losing texts and notes. I can deal with putting all the old **** on my new phone and cluttering/slowing it down if i NEED to.
    Thank you in advance, sorry for the long post.

    If the most important thing for you is keeping old text messages, notes, and voicemail, then you'll need to sync the phone from your existing backup. I know of no other way to access those items.
    Once you have synced to the new phone, check that you have those items that were important. Then you can reconnect your phone to iTunes, and change the sync settings to remove the apps or other items you no longer want to keep on the phone.
    iPhone backups are stored by iTunes; you can see them by opening your iTunes preferences, clicking on "Devices" and then looking in the window. You can delete old backups from here. I don't know how you can open/read the backups though.
    I don't expect you'd have any problems syncing from your old phone's backup, but it's definitely an either/or situation. Since you got rid of the old phone already, it's too late to email yourself your notes, or copy the text messages. Your previous backup is your only solution.

  • Question about receiving mesage from those not on ...

    I have a question about recieving message from those who are not on my contacts
    I enable anyone to contact me through IM and call. a  friend who I did not yet add as a friend (not in contact)call me by mistake.  he sent message of apology to me, say "sorry for mistakeing call,"
    but, i did not recieve such mesage, even thoughh i got notification of call, why did not i recieve his mesage if i Can receive IM from anyone not on contact list??
    i try to send him mesage to test. He also did not see my mesage show up  ,, on his screen it only show that he call by mistake and that he sent mesage ((which,  i never recieve).
    i try this on some of my friend's friend who has enable all call and IM through, they also did not recieving mesage I sent them however can see notification of call i make.
    does this mean, Only you can see mesage of those in contact list even though you recieve from any body? am i misunderstand How skype is working? Please enligthen me, thx...
    thx for info.....

    I'm not sure I understand you entirely, but you could put the CDs on the computer with a CD ROM drive and then boot that computer as a firewire drive to the computer without a CD ROM drive and then copy your music over.

  • Question about intensity graphs

    Hi all Labview gurus and lovers,
    I have a question to all of you. Last time I encountered with the interesting problem connecting to the building of the intensity graphs from the measurements. Suppose I have a matrix of numbers actually the voltages that I give to piezo motors. Afterwards I get some data from the measurement and I build some intensity graph from that data. And I want that every measurement will corresponding to voltage that I gave to the piezo motor. So I want to build the intensity graph as I dictate to the program to build it.
    Example: I want to scan area ,some square from x=0.5;y=0.5 to x=-0.5;y=-0.5. and I did some algoritm that builds me some matrix of numbers depending on resolution of the picture; for instance if the resolution is 256, so the number of x will be 256 just like y=256 kinda 256 lines. Afterwards I say to the intensity graph that Xmax is 0.5 and Xmin is -0.5 just like Ymax=0.5 and Ymin =-0.5; also I deliver to him x and y offset and multliplier. So when I see how it builds my gaph I dont see that it starts from the [0.5 0.5] point as I want it. So my question is: how can I be sure that it will start from the point I want it to start?  And how can I dictate to the graph to start to build the graph from the point I want? Because the problem happens when I want to zoom some area. When I zoom some area it gives me something different from what I expect to get.
    thank you.

    dimani4 wrote:
    ... also I deliver to him x and y offset and multliplier.
    What is your definition of deliver? I don't understand.
    All you need to set is the offset and multiplier to define the linear relation between array indices and axis values.
    In your particular case you would set x0=0.5 and dx= -1/256 or similar (might need a small tweak)
    In summary, x0,dx define the mapping of array indices to real values. These never change for a given set of data. Xmin,Xmax, etc define the visible area. These are modifiied during zooming and are purely cosmetic.
    dimani4 wrote:
    When I zoom some area it gives me something different from what I expect to get.
    You should learn how to ask efficiently. Attach a small example with some typical data in a diagram constant. Tell us what you get and tell us what you expect to get! In the above sentence "different" is not sufficient as a description, since both sides of the equation are undefined!
    LabVIEW Champion . Do more with less code and in less time .

  • Question about Stacking

    Hello Everyone,
    I have a quick question about stackwise plus technology. I would like to confirm that there is no redundancy at the ethernet switch port in terms of a physical problem. The reason I ask is that we are deploying stacked switches shortly to ensure high availability but curious to know whether anyone has seen issues with physical ports failing and not the chassis/PSUs. I understand that Etherchannels can be used but we have security cameras that cannot suffer any outages and would be connected to a single port on the stack. I'm guessing that my option is to monitor the Switch Ports statistics via SNMP and move the camera to another port if this ever happens.
    Thanks in advance.
    Cheers.
    Evan

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    Sure, ports can fail without the whole switch failing, but edge redundancy, such as using dual links (often configured as a bundled channel), between the host and two stack members addresses both switch port failure and stack member failure.
    Unless your security cameras support dual links, your going to have a single point of failure at the edge port.
    Next best options, as you've already noted, would be to have, on-line, "warm" spare ports that you can quickly repatch into.  Ideally you have enough spare ports to allowing repatching in case a whole switch member fails.
    (BTW, when you have spare ports, you don't have to set aside a whole stack member, sitting empty.  For example, instead of having a dual stack with only one switch member populated, and the other not at all, split the populated ports across both stack members.  That way, if a stack member fails, you don't lose all your hosts, only half.  [With cameras, depending on their views, you might be able to overlap their coverage across multiple stack member.])

  • Question about Offset printing from Indesign

    Hello everyone, I have a question about printing too a DPX rip platemaker from Indesign. When I print my file to the rip, it seems to bold the text when it should not be bold, I do not know if this is an Indesign or rip error, but if anyone has a solution I would be grateful for any assistance.
    I dont know if it's necessary, but the OS with Indesign is Mac OSX, printing to a ripmate on Windows 2000.

    Have you applied an outline to the text?
    Try unoutlined text
    Is the text near an effect like drop shadow or other filter?
    Move the text to top layer or above any effects.
    Is it just this file or any file?
    Need to figure out if it's just this job or all of them or at least let us know.
    Have you got the fonts installed at the RIP end, perhaps it's rasterising text that the RIP has not got the font?
    You could try exporting to PDF first, that would embed the fonts in the PDF.
    Let us know if any of this helps?

  • Creating stacked graph from multiple rows

    Hi!
    I am trying to create a stacked bar graph from multiple rows. My data looks like this:
    Date_Time Error_Code Count
    16-01-2011 12:00 100 10
    16-01-2011 12:00 200 15
    16-01-2011 12:10 100 5
    16-01-2011 12:10 200 7
    16-01-2011 12:20 300 20
    16-01-2011 12:20 400 6
    I want to stack the count of each error_code on top of each other for every time group.
    Is this possible?
    Br
    Casper

    Hi,
    can you try
    - select the graph in the Structure Window or the visual editor
    - open Property Inspector
    - Press Pencil Icon
    - Click "Swap Bars with x-Axis"
    Frank

  • Question About Adding Ram from other laptop to T-series Thinkpad

    Hi,
    I have a question about adding additional RAM. Right now I have a 4gb ram stick in the t510. I have an acer laptop which I do not need and there is a 4GB ram stick onboard (maybe two 2gb ram sticks) there in that older laptop. Would it be possible to add one stick of 2gb ram (or 4gb i need to check if it is 2 or 1) from the acer to the lenovo thinkpad making the total ram in the thinkpad over 4gb????
    Thanks in advance

    Hi Richk,
    Yes, I am using a 64-bit operating system. I am running on windows 7. And as for reported incompatibilities....technically taking a RAM from another laptop and placing it in the laptop should be the same as purchasing a RAM card from ebay or something and putting into the laptop right?

  • Some question about receiving messages from Skype ...

    Hello there, 
    I have a question or two about recieving messages from Skype users, who are not on my contact list" 
    1. If I have enabled to only receive messages from people in my contact list, will they be notified when they try to send me an instant message, that they need to add me first?
    2. Will I still be able to see messages sent by contacts who are not in my contact list and them see my messages*, if we are both in a Skype conversation group but not on each other's contact list? *The messages either one of us posts in the Skype group conversation
    I appreciate the information
    Thanks
    Solved!
    Go to Solution.

    1. The person sending this message will not receive any notification about failing message delivery. The message will just disappear in nowhere.
    2. Messages exchanged in group chats will be seen both by you and the other person, even if this person is not in your Contact List.

  • Question about Removing Permissions from the System Folder with chmod

    Hi
    I have a question about the removal of permissions from the System folder (and sub directories and files).
    Background
    Since installing a new HD, clean install of 10.6, application of updates and moving over backed up user directories I have had several issues with permissions.
    I have read several threads on this and using disk warrior and other tools I have been able to fix most of the issues.
    The Problem
    The issue that remains is a permissions check using Disk Utility keeps reporting
    ACL found but not expected on "System".
    followed by an extensive list of sub directories and all.
    Attempts to repair take hours and the same errors are reported.
    Found Solutions
    I have read about changing and/or completely removing the ACL from the permissions from the System using two different commands:
    sudo chmod -R -N ./System/* ( to remove all ACLs)
    or
    sudo chmod -R -E ./System/* ( to replace all ACLs )
    My Question is ( to the UNIX gurus):
    What is the difference between the usage with -E and -R and which is the best approach for a Systems directory and (subordinates)?
    Many thanks!!

    OK
    So I misread on the your instructions about the PW reset, did it, no harm in that. I did also select the options to reset all the permissions for all the accounts and the ACL issues were not resolved. My bad, I forgot to note that.
    You do suggest getting and expert opinion but alas these are rather elusive. In most cases the Apple solutions is to do a complete reinstall... I have found that unless you completely wipe a drive and rebuild everything there are often artifacts left behind. Since I have full and redundant back-ups I would rather explore and hack a little instead of a dull old system reinstall. The irony is the system issue I had was it was the result a reinstall and combo update on a new drive. I recognize the risks of entering the realms of the System folders but I am willing to explore knowing full well that I have a path to recovery.
    Thanks again for your insights. I come to the forums looking for insights and ideas but not a lecture...

  • Question about transferring files from a Mac

    Hi there!
    I want to ask about the new iPad mini (and or the iPad 3) especially with transferring files from a Mac.
    I normally just do the "normal" way of transferring files (.doc files, .mp3 files or .mp4 video files) i.e. via the USB port of my Mac. But is there a faster, easier and a wireless way to do it?
    Please advice.
    Thanks.

    onslaught wrote:
    I couldn't find Dropbox on the Mac App Store but i could find Dropcopy in there.
    Stupid question: will i need to also install Dropcopy on my iPad 3/iPad mini in order for my files to be transferred?
    Yes, it will need to,install it on any machine you wish to use it on.
    also, you should spend some time on the Drobbox website to see how it works. You won't find it in the Mac App Store, but can still easily using it on a Mac.

  • Question about transferring data from 3GS to iPhone 5

    I upgraded from 3GS to iPhone 5.  Before reading any articles on transferring data through iTunes, I configured my 3 email programs, contacts and calendar (Google).  The Apple instuctions state that I should backup 3GS FIRST, then restore to iPhone 5.  Question is, if I do the backup and restore AFTER having configured my mail programs, will that cause problems, such as creating duplicate accounts and contacts?  I am especially concerned about creating duplicates in my contact list, which would be a semi-horror if I had to delete every other one of over 1,700 names.  Perhaps I should delete my email accounts and contact list BEFORE restoring to my iPhone 5, basically start from scratch?

    When restoring the device, whatever is currently setup on the device is irrelevant.  Everything currently setup on the device will be erased.

  • A question about Waveform graph

    Hello everyone.. I have made a waveform graph to measure pressure with my DAQ NI-9237. The problem is the time value in the x-axis shown on the picture below. It only shows the measurements from 0 to 1, but i need from 0 to 4 seconds. 
    Thanks in advance
    Oesen
    Best regards
    Oesen

    Hi Oesen.
    It's because you convert your data to a double, which does not contain any information about the time. Instead, simply delete the 'Convert from Dynamic Data' and wire in the dynamic data directly to the chart. The Waveform Chart supports this datatype as well.
    Another solution is to keep the 'Convert from Dynamic Data', but instead of converting the data to doubles, you convert to a waveform. You do this by dobbel-clicking on the function and select 'Single Waveform' in the list. I personally think this is the best solution, since you are now able to work with your data in a way the dynamic datatype won't allow you. Try and wire the waveform to 'Get Waveform Components' and see how data is stored.
    You can read more about the waveform datatype here:
    Using the Waveform Data Type in LabVIEW
    http://digital.ni.com/public.nsf/allkb/B965F316364​DE17B862572DF00363B10
    I hope this information is helpful.
    Best Regards
    Alex E. Petersen
    Certified LabVIEW Developer (CLD)
    Application Engineer
    Image House PantoInspect

  • Question about stacks

    i've been with aperture since 1.0 so forgive my ignorance on this. I vaguely remember pre 2 that with stack you could do a search (either keyword, star, or whatever) and it would list all the photos that match that and the one in stacks you could open the stack and view the ones that weren't part of the search.
    Let me try to explain my problem, perhaps that will help with the understanding. I have a fairly large library, a bit over 50,000 photos. there are hundreds of folders and projects and everything is very nice and neat. I have keywords and ratings on most of the images in my library, but I'm running into an issue regarding images in stacks that are not keyword or rated.
    as an example, let's say I have a stack that has five photos in it, each rated one through five, with five being the stack pick. The stack is collapsed and life goes on only later I do a search for say all the 3 star or greater photos. In that search there are times when I want to open up the stack and see the rest of the photos to, in case say I wanted to upgrade the rating on something I'd missed.
    Case i point, I have a smart album right now that's looking for photos with a certain keyword. The album has 'about' 300 photos in it. I say about, because roughly half of those are stacks. My problem is I want to add the same keyword to all the photos in the stacks but I can't view the other photos in the stacks because they don't have that keyword.
    I would really like to figure this out. Anyone have any suggestions or hints. Maybe I'm just missing the button or not seeing some setting that I'm supposed to click

    The notion of "stacks" only has meaning in the context of a project, IMO. It was originally part of the Ap design as a means to keep light-table work habits a part of Apple's digital workflow solution. I find it most useful during culling/selection, but not much beyond that point.
    What you are attempting to do is very reasonable, but in my experience the only way to do this is to visit each respective project as you find candidates with your global rating search. It would be easier if Ap allowed a "reverse" lookup directly from a selected image....maybe in Ap3??
    I know this is not an attractive option for you, so maybe others will have a better suggestion.
    Good luck.
    cheers,
    david

  • Questions about "Restore System From Time Machine"

    Looking to fix an apparent system corruption problem on my work machine, I discovered the "Utilities > Restore System From Time Machine" option of the Leopard installation disc. I have some questions that are not answered in http://support.apple.com/kb/HT1177:
    1. Does this option erase the hard drive and install a fresh system from DVD, or do I need to do that in a separate step?
    2. What about software updates - when are they applied?
    3. Will third-party system extensions be reinstalled OK?
    4. I tried launching the process on my home machine, just to see how it works. At work I have a dedicated disk for Time Machine, but at home I have a Time Capsule, serving two Macs via Ethernet. I've also configured the TC to give us a shared volume; so in normal operation I have two network volumes, <Username>, containing Time Machine's sparsebundle file for that user's Mac, and "Shared". When I boot from the installation DVD and run "Utilities > Restore System From Time Machine", the backup volume list only shows the "Shared" volume. If I select it, I'm prompted for my TC username and password; I enter it, TC spins up, and then nothing. I cannot continue the restoration process, and reselecting the "Shared" volume does nothing. ???
    Thanks in advance for your help.
    -- Phil

    For the record, here's what I've found out so far:
    1. The "Restore System From Time Machine" option seems to want to restore everything, including the system, from the Time Machine backup. I wanted a clean system install, so I did an "Erase & install" followed by a "Restore from Time Machine" in the Migration Assistant. That got me most, but not all, of my settings back; exceptions include the printer configurations, the desktop picture, and the Dock settings.
    2. Software updates can be applied after the new system is rebooted.
    3. Most 3rd party extensions seem to have been restored OK, but some (like MacFuse) were not.
    4. I'd still be grateful for any hints concerning how to get "Restore from Time Machine" to work with a Time Capsule.
    -- Phil

Maybe you are looking for

  • Can I Make Font SIze Respond to Container Resize?

    I have a JDialog. I added a JPanel as the content pane. I use a GridBagLayout for all JPanels. The content pane also has a ComponentListener, and I use its componentResize () method to sense when user drags the Dialog to a new size. There are two sub

  • Moving Exchange 2010 Mailbox replicated databases path in DAG environments.

    Hi there, I’m trying to get some feedback on the topic of moving Exchange 2010 Mailbox replicated databases path in DAG environments. Here is the situation: I currently have a 3-Node DAG (Node 1 and Node 2 are in my main datacenter, and Node 3 in my

  • Yet another MBA connection question

    I just purchased my MBA in July and it started off working beautifully. Just in the past month or so my internet connection has gotten a bit lousy. My Airport says I have a full connection to the internet yet pages either never load and sit in intern

  • F4IF_SHLP_EXIT_EXAMPLE

    Anybody used this function in HELP SEARCH?

  • Soundtrack Pro Immediately Crashes

    I start it and it immediately says: The application soundtrack pro quit unexpectedly. Mac OS X and other applications are not affected. Every other app is fine, and i do not have install discs for logic anymore, what should i do? Process: Soundtrack