Charting Question : How to manipulate Legend's labels

I'm using a PieChart Control that uses dynamic data.
<mx:PieChart id="gendersChart">
     <mx:series>
          <mx:PieSeries nameField="gender" field="count"/>                   
     </mx:series>                   
</mx:PieChart>
<mx:Legend dataProvider="{gendersChart}">
For example, nameField value is = "male" and "female" for two wedges of pie chart, that is fine.
But
Legend control renders "male" and "female" as well, takes the values from the same nameField.
How can i change those dynamic values at runtime? is there any legend label function or something?

I would have thought the legend would update when you update the chart series.
You can create a custom legend and update it manually or bind the labels in the custom legend to the values you want. There's doc on creating custom legends here:
http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf69084-7c3e.ht ml

Similar Messages

  • Dynamic Charting question - On maximum rows and omiy label interval values

    Hi,
    I was wondering if it was possible to define a application variable and then reference it from within a Chart series definition.
    I frequenctly need to go in and exapnd the maximum number of rows for my chart series definitions to a value greater than
    15. And, if I have a Chart with multiple series it seems to make sense that they all have the same value. This made me think
    of trying to use some sort of variable. I tried using a hidden page item. However, Apex seemed to want a static numerical value
    and so I needed to just hard code the value for now. Has anyone had success with somethin else?
    Another issue I have is with the label display. When ploting time series data that allows the user to define a date range its hard
    to know up front how to set the Omit Label Interval. An ida solution would be to define a number of desired points that the chart
    can handle and dynamically assign omit interval based on some sort of formula. Again, the static value assignment makes sense for some
    date inputs and not so much for others.
    Thanks for any suggestions!

    Thanks for your reply.
    Not sure how to change the Chart Type to Custom XML
    For example, for one of my charts under Chart Settings the Chart Type is set as 2D Line.
    I don't see Custom XML as an option on that drop down.
    I do see some XML code under Region Definition | Source. Is that what you are referring to?
    Thanks!

  • How to Create Legend and Label Graph using VBS

    Hi,
    I've scoured the internet before I had to resort to asking my question here. I hope someone can answer my question.
    Using VBS, how can I create a legend of the channels used in the graph and label the axis in the graph? Thanks in advance!
    Solved!
    Go to Solution.

    I've managed to figure out how to create the labels...
    Call GraphObjOpen(D2AxisXObj(1))
    D2AxisXTxt = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@]" ' Defines the x-label
    Call GraphObjClose(D2AxisXObj(1))
     Now to figure out how to create the legend. If anyone can help me, that'd be great.
    ...And now I feel like a downright idiot.
    After more scouring I managed to find what I need
    Call GraphObjOpen("2D-Axis1")
    '------------------- Swith legend on -------------------------------
    D2LEGDRAW =1
    D2LEGTXTTYPE ="Free text" ' "ChannelName" or other keywords
    D2LEGTXTFREE ="My free legend"
    Call GraphObjClose("2D-Axis1")
    'redraw
    Call Picupdate()

  • FR Chart Question: How to display % next to numbers?

    Hi FRville residents,
    I am building a report that is mapped to the Actual/Budget column. In the Grid, I added % sign through FR formatting. When I map this column in my chart, and display the value, the chart shows values only. For example let say for Region 1, Actual/Budget is 50%. My chart is showing 50.
    Is there any way to add the % sign in front of the numbers in charts?
    Thanks,
    A

    Hello!
    I know how to set headers and subheaders for charts and I did it.
    I want to show values of "DATA FIELDS" in pie chart. And also want to hide text "Sum ORDERS.ORDER_AMOUNT" which has been created automatically.
    P.S. I'm working with CR4Eclipse 2.0
    regards, Lev

  • How to set legend of strip chart in CVI8.0

    Do somebody know how to set legend of strip chart in CVI8.0? I know that in CVI8.5 SettraceAttributeEx() can used to set legend of strip chart, but in CVI8.0, there is no the function. Thank you very much.

    Hi Ravi,
    If I am not wrong You are referring to article <b>Queues for Prioritized Message</b>. But this is about how to Prioritize message inside XI.
    What I am intresetd in is to set a message priority (for example "2")for the message going to MQ. That is when the message reached the detination queue the priority of this message should be 2 in the queue.
    Thanks
    Abinash

  • Charts question / limitation?

    I have been tasked with pulling together a chart that conveys results of a customer satisfaction survey that contains 6 questions.  Each question has a measurement score on each of 1 to 5.
    What I am trying to do is for each question, I want to stack the bars, and show all questions.
    The chart above is only an example. What I need the chart to look like is outlined below.
    Title  - Survey Results - I know how to change titles and labels.
    X - Axis - want each question to be a stacked bar, I know how to add the label value for each color and change the label.
    I can get as far as showing the correct scores for one set of survey results, but it appears that CR has a limit of two items for the top "On Change Of"
    items.  I am only needing to use the items that are numbered 1-3
    Can what I am attempting be done in CR 2011?
    Glen

    Hi Rudolf,
    What you could do is pass the array which you feed to the graph via the array subset function and control the index and length to limit the number of stacked displays.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Tricky Stacked Bar Chart Question

    This question is written as clearly as I could think to write it. It's a bit bewildering, but I'd really appreciate if you could take the time to think about how I can do this!
    I have data like so:
    Column 1: X-axis labels (People's names),
    Column 2: Units Type 1,
    Column 3: $Amount Type 1,
    Column 4: Units Type 2,
    Column 5: $Amount Type 2
    3 Rows each start with a person's name (the X-axis label), followed by their data corresponding to the above columns.
    I want to make a total of 6 stacked bars:
    Units Type 1 and $Amount Type 1, for each of the three people. Then,
    Stacked on top, Type 2 Units on Type 1 Units and Type 2 $Amount on Type 1 $Amount (for their respective people).
    Units are between 0 and 100 and $Amounts are between $0 and $1,000,000.
    Is it possible to set 2 y-axis scales on the same chart?
    How can I set which columns are stacked on what?
    If it's impossible, just say so. That will help too!
    Thanks again,
    Mike

    Here is a suggestion.
    It requires three superposed charts.
    Chart 2 and Chart 3 have a transparent background.
    Only Chart 2 display X axis values.
    Only chart 1 display Y axis values
    The Y axis values for Units are inserted by hand in a text block.
    Yvan KOENIG (from FRANCE vendredi 5 décembre 2008 10:53:07)

  • Flash Chart : Percentage values in the pie chart and  values in the legend

    Hi All,
    Query is :
    SELECT null link
    ,GN.region Region
    ,ROUND(100*ratio_to_report(COUNT(DISTINCT GN.submittedbyemail)) over (),2) value
    FROM goodnews_stories GN
    GROUP BY GN.region
    I use the above query to display the flash pie chart percentage values.
    The values are displayed in percentage in legend as well as on the chart.
    I need to display the values in the legend and percentage values in the chart.
    How this can be achieved ?
    Regards,
    Archana

    Hello,
    Can we do this using apex? I have observed in legend as well as on chart it displays the same values which are generated by the sql query.
    Regards,
    Archana

  • I have a macbook pro-how do i create address labels?

    I have a Macbook Pro- how do I create address labels?

    Look to the right on this page under 'more like this'.
    Feel free to ask further questions, but then please state what verson of OS X you are running.

  • How can I make address labels, preferably matching Avery sizes, in Pages please?

    How can I make address labels, preferably matching Avery sizes, in Pages please?  Please don't tell me there is no labels facility!!

    If you have your addresses set up in Address Book, the logical place for them, that is also the logical place to print them from.
    Pages will only use one data set per page, although there are ways around this. But then that wasn't your question.
    Peter

  • How do i create mailing labels for an avery template using pages

    how do i create mailing labels for an avery template using pages.

    mcc,
    The first topic in the "More LIke This" box to the right of your question is a rather comprehensive address label printing discussion. Does it answer your question?
    Jerry

  • How do i change axis label object type from label to text? (to allow wrapping)

    In the example of a barChart, how does one change the LABEL type from "Label" to "Text"?
    I am trying to allow for long labels to wrap (ie. multi-line labels), but the default object type of labels is "Label" (which are single-line only).
    I have been researching this issue all day, and have enountered a similar situation for changing the Legend component labels where a method override is implemented in a custom itemRenderer.
    But I have not been able to figure out how to do this for an Axis label.
    Any help would be greatly appreciated!  
    J

    Yes, thank you.  I am aware of the AxisRenderer.... but I'm not sure how to implement it to change the label type from "Label" to "Text" to allow for wrapping.
    I guess what I'm looking for is a good example....  

  • How to Put Legend for Multi Series Stacked Graph...?

    Hi Experts,
    Please guide me how to put Legend for Multi Series Stacked Graph...?
    Its very URGENT...!!!!
    Thanks in advance...
    Regards,
    Manoj

    I searched the forum using "jcombobox multiple columns". The first posting I read had a link to a posting with 4 different solutions.
    Why is it so hard to search the forum before posting a question????

  • Beginner Question: How to put 5 V on an output?

    Hi everybody,
    I am an absolute beginner here, a Biology student that has to do electronics in Labview now...
    I want to do as much of this myself as possible, but need truly beginners hints, hoping to be clever enough to put it together myself with your information.
    I need to control some outputs, and monitor some inputs. I am focusing on the outputs at the moment.
    Questions:
    How do I make a block in my block diagram that can put a variable voltage on an output? I need two controls, one that puts a voltage on an output of 0 to 10 V continuously, the other puts a voltage on an output of 0 to 5 V in increments of 0.1 V
    Any hints will be highly appreciated. I have Labview 6 to work with. Pointers like 'look at p
    age XX of the manual' will do, but descriptions here, or through my mail... anything will be highly appreciated.
    Thanks in advance

    In article <[email protected]>,
    "Erado" wrote:
    > That's the beauty of this, I am not entirely sure (yet) I am going to
    > get a good look of the setup in about a month, but they want me to
    > prepare a concept VI before then. To me that made little sense, but my
    > comments on it hit a brick wall...
    Well, for me and my past gigs this has been a very common situation. When
    I worked for telecom we would have to develop apps for instruments that we
    wouldn't receive for six months. Luckily we had the basic concept of how
    they were supposed to run and this was adequate for development. It
    sounds like you're in a similar situation.
    > What I do know is that over two of the terminals there is a 5V voltage
    > applied in steps of 0.1 V. So I should put in something that makes it
    > possible for me to control this output in 50 steps of 0.1 V.
    Lemme see if I understand you from this post and your first one. You
    would like to buid a user interface that includes the following:
    1) A boolean control that gives these two options:
    a) output a continuous voltage in the range of 0-10 volts b) output a
    ramping voltage starting at 0 (or 0.1) volts and ending at
    5 volts using 0.1 volt increments with a dwell time of x mseconds
    2) A boolean to stop the application
    (perhaps another one to pause it)
    3) Several numeric controls:
    a) numeric control for the output voltage b) numeric control for the
    dwell time (optional) c) numeric control for the voltage increments
    (optional) for if the
    user wants to use values other than 0.1 volts
    4) An indicator that shows what the measured output voltage is. This is
    good for verifying your output signal. A chart would be nice.
    This is a top down approach which is helpful for laying out the
    application's user interface. The next thing you want to do is build some
    subVIs to simulate your voltage signals. Once you get some hardware you
    can simply replace these simulation subVIs with the real ones that
    actually communicate the hardware.
    I'm not sure if your measuring the output voltage too. I kinda just
    assumed this but that would require another subVI. I won't tell you how
    to build the subVIs (I can't take all the fun out this) but I hope I've
    pointed you in the right direction.
    Merry x-mas!
    -Kevin
    PS: learn how to play with control references. they're very convenient
    when you need to update the front panel indicators with data from a subVI
    sitting in its own continuous loop. it avoids global variable abuse.

  • HT1420 i forgot my answers to my security questions, how do i setup new questions and answers?

    I have forgotten my answers to my security questions, how do i setup new security questions and answers?

    Welcome to the Apple Community.
    Start here (change country if necessary) and navigate to 'Password and Security', reset your security questions using the link provided, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help, you don't receive a reset email or you don't have a rescue address, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

Maybe you are looking for

  • Workflow Validation - Need Help

    I'm fairly new to video editing. Everything below I figured out through trial and error until I found a sequence that seems to work well. I just want to know if it's the best I can make it. Storage space is a non-issue. I have no intention of burning

  • Opening a new window when a JMenu Item is clicked

    hiii.. i have a main window.it has two menu items.File and Capture.When i click on Capture menu's item, a new window should appear which should have many JComponents such as textbox,labels etc on it .I know this has to be done in ActionPerformed of t

  • Serial number for install

    I purchased Photoshop Elements 11 & Premiere Elements 11 on December 2012. I am just now wanting to do the installation. I dont know why did I waited so long, its just but been a hectic year. I see now that Elements 12 is available. Should I not even

  • Trying to purchase a book on my iBook but when I put my password in it keeps coming up 'unknown error'

    Trying to purchase a book on my iBook, but when I put my password in, it keeps coming up ' unknown error'

  • Virtual Box showing: VT-x/AMD-V hardware acceleration

    Hello, I am using HP probook 4530s. When I try to start a guest of 64 bit in virtual box it is showing following message: VT-x/AMD-V hardware acceleration is not available on your system. Your 64-bit guest will fail to detect a 64-bit CPU and will no