Get colors and text from Legend or chart?

It seems to be impossible ( or at least I cannot find a way to ) to wrap the labels in the Legend control.
so I will have to write my own legend control that can do this.
In order to create a Legend control I will need to get a array of the colors used in the Chart ( or legend) and apply these to the new legend control. Can anyone advise how I can do this?
thanks

Hi Natasha
I have tried:
for each(var item in myChart.series.legendData ){
trace("series item is : " + item);
And
for each(var item in myChart.series.items){
trace("series item is : " + item);
UPDATE: I have also tried:
trace ("legendData is : " + myChart.series[0].legendData); 
trace("items is : " + myChart.series[0].items);
for each(var item:Array in myChart.series[0].legendData){ 
trace("series item is : "+ item);
And again the trace statement in the for each loop is never reached, and the other trace statements are empty (besides the initial string), yet I can see in the variables window of Eclipse that there should be data.
And I have a breakpoint on the trace statement, yet in both cases the breakpoint is never reached. I am not getting any error message.
Also, when editing, when I put the '.' after myChart.series I do not get either legendData or items in the 'intellisense', just methods. Perhaps the intellisense is very limited.
Anyway, can you advise on another way to get the colors and labels from a chart so I can create my own legend, which can wrap the labels?
Many thanks

Similar Messages

  • My phone has been smashed I need to get records of all my iMessages and texts from the last month. How do I get these?

    My phone has been smashed I need to get records of all my iMessages and texts from the last month. How do I get these?

    Do you have a backup of your iPhone which contains these messages?
    If so, you can restore a new iPhone from that backup during setup.
    If not, the messages are gone.

  • I updated my 4S iphone and now I am getting all the texts from another iPhone on my plan.  How do I stop this?

    I updated my 4S iPhone and now I am getting all the texts from another iPhone on my plan.  What do I need to do?

    I'm not completely clear on the GSM / LTE network frequencies in US vs Argentina, but I do know that cross-compatibility can be an issue when buying from one country and using in another. Apple products in particular have this problem. What this sounds like to me is that the phone is not compatible with Argentinian networks; or your friend had an AT&T phone and jail-broke it. This is against the end user licensing agreement, and when the phone is next updated is likely to jam the phone.
    Sorry but you lost your money.
    Wasted*

  • When I copy and paste from an online chart, some cells that had dashes or hyphens in them in the online chart paste into Numbers cells as dates, e.g., 12-13 pastes as Dec. 13, 2012.

    When I copy and paste from an online chart, some cells that had dashes or hyphens in them in the online chart paste into Numbers cells as dates, e.g., 12-13 pastes as Dec. 13, 2012.  I have tried changing the cell formats for that column from "automatic" to "text", but that doesn't fix it.  Is there a way to copy/paste this information without changing the original characters?

    If you know how many rows/columns you are planning to paste, then make the table that big BEFORE you paste.  In addition select all cells in the table by selecting any cell, then type the key combination <COMMAND>+a (for select all.
    Then use the cells inspector to make the cells formatted as text:
    I hope this helps

  • Coping Color Coded Text from PLSQL Editor

    Does anyone know a way to capture the color coded text from the Reports PLSQL editor so it can be pasted into MS Word? A normal copy and paste does not copy the color and I would like the color coded text as part of the report documentation.
    Thanks

    The correct subject is:
    Copying Color Coded Text from PLSQL Editor

  • How do I get email and text message notifications when my phone is locked?

    How do I get email and text message banner notifications on my iphone when the phone is locked? When I had iOS 6 I could get notifications with sound and banner. Now that I have iOS7 I can't see notificaitons when the phone is locked.

    See if this support document about Notifications helps. http://support.apple.com/kb/HT3576

  • How can I get pictures and music from an ipod touch to an iphone

    how can I get music and pictures from an ipod touch to a iphone 4s, tried alot of things but not having any luck

    Use this to get the items in your iTunes library and then sync to the other device
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    Or choose Window > Arrange > Tile
    And, you of course can copy/paste without tiling.

  • PSE 8 Organizer: Bug in "Get Photos and Videos from Files and Folders"

    In PSE8 Organizer, I have a weird bug that occurs when I am using Get Photos and Videos from Files and Folders on certain folders on my hard drive. If the "Files of Type" filter is left as the default ("Media files (photos, audio, video)"), whenever I click on a file in the file browser, three or four files or folders seem to disappear from the folder. I can keep clicking on different items until every file and folder has apparently vanished from the folder. Looking in Windows Explorer, the files and folders are still there, and if I switch the "Files of Type" filter to "All Files", everything reappears and the behavior no longer occurs.
    I'm not sure why only certain folders show this behavior. It may have something to do with the types of files or folders in the folder I'm looking at, but I'm not sure.
    Has anyone else seen this happen?

    Are you on Win 7? If the files in the Get Photos dialog disappear after you select them,confirm if the names of selected files/folders is shown under the File name . If yes, you can import these files by clicking Open. You should find the issue addressed in E9.
    Thanks

  • Someone is using faebook to run java script to get data and email from me in windows 8

    someone is using faebook to run java script  to get  data  and  email  from  me in  windows  8

    Is this a developer question?
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

  • How can I get contacts and calendar from outlook on my desktop to my new ipad 4

    How can I get contacts and calendar from outlook on my desktop to my new ipad 4

    Move the cursor over the icon and click the X that appears.

  • How can i stop my macbook from getting my kids texts from their phones attached to my itunes?

    how can i stop my macbook from getting my kids texts from their phones attached to my itunes?

    APPLE ID for each device family member itunes
    http://www.apple.com/support/appleid/basics/

  • HT1766 Can I get back deleted text from two months ago

    Can I get back deleted text from two months ago

    I would contact your phone provider. The only way that you can recover text messages is by a count ordered subpoena.

  • HT4623 I just download in settlings (general) and did not get contacts and pictures from iphone.  How do I do that?

    I am trying to down load my new ipad and used general settings and download as directed, but did not get contacts and pictures from iphone.  What do I need to do?

    I do not know how you "down load my new ipad ". You purchase an iPad. Maybe this will help:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • TS4268 My husband and I use the same apple ID, after the update he started getting all my texts from me to other people and from other people to me. Anyone know how to turn this off?

    My husband and I share the same apple ID for purchasing apps and what not, ever since the update he started receiving all my texts  from other people and I am not even getting them half the time. Any thoughts on trying to fix this would be appreciated. I tried turning off imessage but then he got no texts at all.

    Make sure that on each of your Settings>Messages> Send and Receive Addresses have only the appropriate phone number and email checked at the left.  If his is checked on yours click on his it will uncheck

Maybe you are looking for

  • How do I remove my old iPhone from "Find My iPhone"?

    How do I remove my old iPhone from the device list?

  • Acrobat Reader Permissions

    There are several people in my organization that receive an email with 2 pdf attachments. Two of these people are not able to open one of the pdf's. When they try they get the following error: "Cannot create file: (filename). Right-click the folder y

  • Simple way to create a Helix (Spring) shape?

    I normally try to create shapes from primitives using the Pathfinder tool etc. but I can't think of a way to create a helix easily. Has anyone found a way to do this? Thanks Richard

  • Panther Install on G3 without DVD Drive

    I just sucessfully upgraded my Beige G3 from Jaguar to Panther with DVD's. I have another G3 desktop with the original CD Rom Drive that is running Jaguar that I would also like to upgrade to Panther. Is it possible to install Panther perhaps using a

  • License key help

    I downloaded Lightroom and I was sent a license key but when I tried to use this number during setup it isn't long enough.  I've tried putting it in exactly as I received it, with and without the letters, with and without the dashes, nothing works.