How to toggle bubble chart Item's visibility?

I have a bubble chart. I need to toggle the visibility of a particular bubbleSeriesItem (specific data point) ?
Thanks,
Tanu

Hi Tanu,
You can try this..provided you only have only positive values on y-axis.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        <![CDATA[       
        import mx.collections.ArrayCollection;
        [Bindable]
        private var expensesAC:ArrayCollection = new ArrayCollection( [
            { Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 450 },
            { Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600 },
            { Month: "Mar", Profit: 1500, Expenses: 500, Amount: 300 },
            { Month: "Apr", Profit: 1800, Expenses: 1200, Amount: 900 },
            { Month: "May", Profit: 2400, Expenses: 575, Amount: 500 },
            { Month: "Jun", Profit: 2400, Expenses: 120, Amount: 1500 } ]);
        //Say if I want to hide items for May and Jun    
        private function hidePoints():void
         for each(var obj:Object in expensesAC)
          if(obj.Month == "May" || obj.Month == "Jun")
           if(parseInt(obj.Expenses) > 0)
            obj.Expenses = -obj.Expenses;
         expensesAC.refresh();
        private function showPoints():void
         for each(var obj:Object in expensesAC)
          if(obj.Month == "May" || obj.Month == "Jun")
           if(parseInt(obj.Expenses) < 0)
            obj.Expenses = -obj.Expenses;
         expensesAC.refresh();
        ]]>
    </mx:Script>
<mx:HBox>
  <mx:Button id="btnHide" label="Hide Points" click="hidePoints()" />
  <mx:Button id="btnShow" label="Show Points" click="showPoints()"/>
</mx:HBox>
    <!-- Define custom color and line style for the bubbles. -->
    <mx:SolidColor id="sc1" color="blue" alpha=".3"/>
    <mx:Stroke id="stroke1" color="blue" weight="1"/>
    <mx:Panel title="BubbleChart Sample Example" height="100%" width="100%">
        <mx:BubbleChart id="bubblechart"
            height="100%" width="100%"
            paddingRight="5" paddingLeft="5"
            showDataTips="true" maxRadius="20"
            dataProvider="{expensesAC}">
            <mx:verticalAxis>
    <mx:LinearAxis minimum="0" />
   </mx:verticalAxis>
            <mx:series>
                <mx:BubbleSeries
                    displayName="Profit/Expenses/Amount"
                    xField="Profit"
                    yField="Expenses"
                    radiusField="Amount"
                    fill="{sc1}"
                    stroke="{stroke1}"
                />
            </mx:series>           
        </mx:BubbleChart>           
        <mx:Legend dataProvider="{bubblechart}"/>           
    </mx:Panel>
</mx:Application>
Thanks,
Bhasker Chari

Similar Messages

  • How to configure a Chart item in VC model

    Hi
    I am having problem in configuring a chart in VC model.
    In my VC model my query output or chart input is Cal Month/Year (Last 12 Months) and revenue. So there will always be 12 rows in output
    My requirement is to draw a Column chart for the above query output so that in X-Axis Cal Month/Year
    I made the following setting/config for chart item
    Chart Type: Column
    Data Series: Stacked
    Category Axis: Cal_year_month_ext_key
    Value Axis: Blank (Default Settings)
    Data Series: @revenue
    When I compiled, Deployed and executed the modeu2026output is
    In X axis all the 12 months are displayed but only the first row value is being displayed in the graph for all the months
    Please update me on how to configure a graph
    Thanks

    Hello,
    If you have only calmonth in the rows and revenue in your columns of your bi query
    pls try using a column chart with "clustered" data series rather than a stacked one
    since you have a single data series .
    Rgds

  • How can I make a Chart Item ?

    I read this post :-
    chart item in oracle forms 10g
    but that not what i need ...... what i need is simple explanation of *how to build a Chart item based on Data Block ?*
    I'm using DB 10gR2 , Developer Forms 32 Bit Version 10.1.2.0.2 (Production)
    and Windows XP SP2 64-bit

    It is existing because to support the chart items your created in old versions of forms. However, you cannot use it for "Creating New Charts". It has become useless because, you have other powerful / more featured charting mechanism is available (one of which is BI Graph). So, why do you want to go for Old Chart Items, which has less features than using a full fledged BI Graph?
    -Arun

  • How to integrate Sliding picture menu with Bubble chart

    Hi
    I have a Bubble chart as below for sales
    X axis = Amount (ex- 2500045)
    y axis = Deal age (ex- 15)
    z axis = stages (ex- quotation/negotiation/closed/lost)
    I have datas for 5 sales rep with different stages
    Next is a Sliding picture menu
    This has pictures of the above 5 sales rep.
    Now how to integrate these two. that means if I click one sales rep picture data of that salesrep should reflect in bubble chart, likewise if I click on other sales rep his data should appear in the bubble chart
    Can any experts help on this.
    Thanks
    KS

    Could you explain a bit more what it is exactly you're trying to accomplish.  How are you trying to integrate the openbox menu with tint?
    For example: right-clicking free space on tint panel brings up OB menu.
    Current workaround works (tint not stretched to screen width - I'm clicking empty space on sides of tint panel) but I was hoping for more "elegant" solution.
    According to tint manual:
    "3.7 Mouse
    customize mouse action with : none, close, toggle, iconify, shade, toggle_iconify
    mouse_middle = none
    mouse_right = close
    mouse_scroll_up = toggle
    mouse_scroll_down = iconify"
    Why not just use the hotkey to bring up the openbox menu?
    Not being able to do everyday tasks efficiently with a mouse is a big no-no.
    Besides that, combo of OB + Tint + Trayer is great.
    Last edited by mute (2008-10-10 22:42:56)

  • Make Flex Plot Chart items toggle

    Hello,
    I made an application for generating a plot chart based on previously calculated data (X,Y). After plotting the data on the chart, I tried to make the items (dots) to show a label (through addChild an external custom label component) when a user click on the dots (for example: if a user click on a chart item, the corresponding ID number will show beside the dot).
    Although everything works fine, I can't make the items toggled (for example: if a dot is already clicked and label ID is visible, on next click on the same dot I want to hide (removeChild) the label component which correspond to that item)...
    I tried almost everything, but with no success... A simple example  will be of great help for me...
    Thanks in advance,
    Nikola

    Anyone??

  • How to configur Drill down on Bubble Chart

    Hi,
    Can anyone please hel me with examples - how to confihure drill down on bubble chart.
    that means,
    1) whenever the user clicking the bubbles - the pop up window should display some notes related to that bubble
    and also in another requirement
    2) whenever the user click the bubble - the pie chart should display the values related to that bubble.
    please help me on achieving the same..

    If the Bubble size is constant we can do this.But as you know Bubble sizes varies from once to one place..It will be tough scenario if you want to do it here..Instead take a label based menu and try to use dynamic visiblity .And show labels in there which contains the text for the respective labels..

  • How can I fit the chart in the center of the chart item ??

    I created a chart item in the Form, in which the attached chart is created manually using Graphics. When I run the form, the OG.OPEN function is called and the chart is displayed. However, it can only show a part of it. I want to know how can it can be fit into the size of the chart item, so that the whole chart can be shown on the screen automatically. Thanks !!

    Dear bowiecpy
    Pls let me know how to do it Plz
    Regards Lakmal

  • How do you set the number of visible items in the popup box of a JComboBox?

    Hi,
    Do you know how to set the number of items that shall be visible in the popup box of a JComboBox?
    I have produced an implementation of an autocomplete JComboBox such that following each character typed in the text field, the popup box is repopulated with items. Normally 8 items are visible when showing the popup box. Sometimes even though the list of items is > 8 the popup box shrinks in height so that 8 items are not visible.
    Thanks,
    Simon

    Below is my JComboBox autocomplete implementation.
    The problem seems to occur when the list of items is reduced in number, the button selected and then the list size increased, the popup box does not automatically increase in size. I have tried setMaximumRowCount � but does not resolve the problem.
    To see how it works:
    1)     click in text field.
    2)     Type 1 � the full list of items are shown.
    3)     Type 0 � the list has been narrowed down � the popup box is greyed out for remaining items.
    4)     Type Backspace � the full list of items is redisplayed.
    5)     Type 0 � to narrow down the list.
    6)     Select button � the popup box is invisible.
    7)     Select button � the popup box is displayed with 2 items.
    8)     Select Backspace � here is the problem � the combo box list contains all items but the popup box has been shrunk so that only 2 are visible.
    9)     Select button � popup box is invisible.
    10)     Select button � popup box is as expected.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.util.Enumeration;
    import java.util.Vector;
    import javax.swing.plaf.basic.*;
    class Test
    private JComboBox jCB = null;
    private JTextField jTF=null;
    private String typed="";
    private Vector vector=new Vector();
    public Test()
    JFrame fr=new JFrame("TEST ComboBox");
    JPanel p = new JPanel();
    p.setLayout( new BorderLayout() );
    ComboBoxEditor anEditor = new BasicComboBoxEditor();
    String[] s = new String[30];
    for (int i=0; i<30; i++) {
    s[i] = (new Integer(i+10)).toString();
    jTF=(JTextField)anEditor.getEditorComponent();
    jTF.addKeyListener(new KeyAdapter()
    public void keyReleased( KeyEvent ev )
    char key=ev.getKeyChar();
    if (! (Character.isLetterOrDigit(key)
    ||Character.isSpaceChar(key)
    || key == KeyEvent.VK_BACK_SPACE )) return;
    typed="";
    typed=jTF.getText();
    fillCB(vector);
    jCB.showPopup();
    jCB = new JComboBox();
    jCB.setEditor(anEditor);
    jCB.setEditable(true);
    boolean ins;
    for (int x=0; x<30; x++)
    ins = vector.add( new String(s[x]) );
    fillCB(vector);
    jCB.setSelectedIndex(-1);
    fr.getContentPane().add(p);
    p.add("South",jCB);
    p.add("Center",new JButton("test combo box"));
    fr.pack();
    fr.show();
    public void fillCB(Vector vector)
    typed = typed.trim();
    String typedUp = typed.toUpperCase();
    jCB.removeAllItems();
    jCB.addItem("Please select");
    for(Enumeration enu = vector.elements(); enu.hasMoreElements();) {
    String s = (String)enu.nextElement();
    if (s.toUpperCase().startsWith(typedUp)) {
    jCB.addItem(s);
    jTF.setText(typed);
    public static void main( String[] args )
    Test test=new Test();
    Many thanks,
    Simon

  • Calculated Item with bubble chart???

    Hello! When I choose pivot table and chart pivoted results I can't choose bubble chart, I would like to choose it to do calculated item to see in bubble chart. Is possible to do this???
    Thanks a lot!

    Sure looks as Skull said that you want it in the condition area.
    However, if you were trying to create a calculation comparing the 2 dates, you'd probably want to use the DECODE or CASE (case much easier) and have both dates wrapped by the TRUNC function.
    ie:
    case when trunc(my_date) > trunc(sysdate) then 'Y' else 'N' end
    Russ

  • How to get text lables in x axis for xcelsius bubble chart

    Hi
    How to get text values in x axis for xcelsius bubble chart
    I have data as follows
    x axis: closed/qualification/lost
    y axis: deal age
    z axis: amount(bubble size)
    Thanks

    If you are using Xcelsius 2008 SP3 you will be able to do this.

  • How to Create or Modify Chart Items in Developer 9i

    Can any one tell me how to create or modify the Chart items in Developer 9i and Set its x-axis and y-axis values as this is done in developer 6i through Graphic Builder. More over I want to give the information that Developer 9i successfully compiles the 6i forms having chart items but when it is run, the chart is not displayed at all.
    Any Help......
    Inayat Qazi

    Dear viewers! I m waiting for any reply in response to my last thread but uptil now there is no help from any friend. So I am reminding my problem. Please if any one tell me How to create graphs/Charts in Forms 9i as there is graphic builder for this purpose in Forms 6i.
    Thanks in advance
    Inayat Qazi

  • How to change the colors for individual bubbles in a bubble chart?

    I have a report where in a bubble chart needs to be shown with different colors for bubbles available in the chart. I cant find any option to select individual bubbles and format the color options.
    Any guidance or suggestions solving this would be much appreciated.
    Thanks,
    Vinay

    Thanks JB for your reply, I see in format chart data there is are two sections:
    1. Positional
    2. Conditional
    In Positional - I have the type and color changes for the bubbles but if I change any color in that all the bubbles are simultaneously getting the same color code.
    Not sure if there is any other setting. Please share me your thoughts on this.
    Thanks again

  • Obiee 10g - How to Increase the default size of Bubble chart radius axis

    Hi,
    I have an requirement of creating bubble chart in obiee 10g.
    When i was developing the bubble chart i noticed that there is no option of increasing the size of the bubble.
    When the measure value is low the bubble is not getting displayed.
    Kindly help me with any solution.
    Regards,
    Abdul

    Hi Alok_Aswal,
    In SQL Server Reporting Services 2008, the Bubble chart has several custom attributes which allow us to control the size of the bubbles. "BubbleMaxSize" and "BubbleMinSize" attributes allow us to define the size of the bubble in the chart series. The values
    set are in percent of the whole chart size. We can find those attributes in the property pane by selecting bubble series and expanding 'CustomAttributes' properties.
    And based on my research, the Marker size has a wide range, but for some reason once we get to around 8 the bubble in the legend will not grow any bigger. So in your scenario, we can set the Marker size to 8pt, then set the appropriate “BubbleMaxSize" and
    "BubbleMinSize" based on the chart size to make the size of both the bubble are the same. For example, we can also set “BubbleMaxSize" and "BubbleMinSize" to 8, then manually adjust the chart size until both the bubbles have same size.
    Beside, we can delete the original legend, and drag a tablix to the right of the chart. And then insert the corresponding data and color to tablix to let it looks like a legend. For more details information, you can refer to the link below to see Mike’s
    post:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cbf2f48e-fe40-4c1b-b82a-d40fd269f2ef/setting-custom-colors-on-a-column-stacked-bar-chart?forum=sqlreportingservices
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SSRS 2008 Bubble chart - How to set the default bubble size?

    Hi,
    I have a bubble chart. I want to set the size of the bubble in the chart and the size of the bubble in the legend display box to be same. I increased the size of the marker to increase the size of the bubble in the legend display box but it is not increasing
    after 8pt. In my chart the size of the bubble is not dependent on any variable or parameter. It is the default size. Is there any way that i can make the size of both the bubble same?

    Hi Alok_Aswal,
    In SQL Server Reporting Services 2008, the Bubble chart has several custom attributes which allow us to control the size of the bubbles. "BubbleMaxSize" and "BubbleMinSize" attributes allow us to define the size of the bubble in the chart series. The values
    set are in percent of the whole chart size. We can find those attributes in the property pane by selecting bubble series and expanding 'CustomAttributes' properties.
    And based on my research, the Marker size has a wide range, but for some reason once we get to around 8 the bubble in the legend will not grow any bigger. So in your scenario, we can set the Marker size to 8pt, then set the appropriate “BubbleMaxSize" and
    "BubbleMinSize" based on the chart size to make the size of both the bubble are the same. For example, we can also set “BubbleMaxSize" and "BubbleMinSize" to 8, then manually adjust the chart size until both the bubbles have same size.
    Beside, we can delete the original legend, and drag a tablix to the right of the chart. And then insert the corresponding data and color to tablix to let it looks like a legend. For more details information, you can refer to the link below to see Mike’s
    post:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cbf2f48e-fe40-4c1b-b82a-d40fd269f2ef/setting-custom-colors-on-a-column-stacked-bar-chart?forum=sqlreportingservices
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Toggle between Web Items using an Image link in WAD 7.0

    Hello,
    i want to toggle between Web items using an image link: e.g. on my template I have a visible table and a hidden chart, now when I click on a small chart image I want the table to get hidden and the chart to get visible. I know that this is possible using a button group, but I need to make this possible using an image.
    My approach is the following:
    1. Using a script item with 2 commands of type SET_ITEM_PARAMETERS from the command wizard, from which one command hides the table and one command makes the chart visible.
    2. Writing a hyperlink which calls up the script using the image as source.
    Now my problem:
    This works only if I'm using ONE command of type SET_ITEM_PARAMETERS in the script function. So I can either make the chart visible or hide the table. When I insert a second command in the java script nothing works anymore. However, I need to use both commands at once in order to make it useful. I don't know how to program in javascript, can you help me out?!
    Thanks,
    Norbert
    PS: I could show you the javascript code which was created automatically by the web application designer including both commands, but as I've just seen it in the preview it looks totally messed up since it doesn't get formatted corrected.

    Hi Norbert,
    There is an easier approach. In the button group item, you can insert an image and a description. Just open the parameters of your button there you will find the parameter 'icon'. Insert an image there and leave the 'caption' empty.
    Best regards,
    Janine

Maybe you are looking for

  • Video Control Functions

    I've read several threads from different sites concerning the video controls on published projects out of Captivate 4. I am also having the problem of not being able to FF/RW from the video controls once the project is published. Has there been a sol

  • Set of Unique Codes in the Last 24 hours.

    Hello. I am trying to figure out a rather confusing calculation and some advice will be greatly appreciated. I have a table that has the following fields: Person_ID, Event_Timestamp, Event_Code_1, Event_Code_2, Event_Code_3 So the table should look l

  • Auto-provisioning new users with GRC 10.1

    There is some lack of clarity at my client on auto-provisioning new users into SAP systems with GRC 10.  Here's what they want and I'm telling them they need SAP IdM. The client will regularly have upwards of 500 new users on an on-going basis.  Thes

  • How to Search database  through JSP

    I ve created JSPs. How do i carry out search in my Oracle database? Can nebody help me with some code or some link where i can find some help.

  • An oddly specific problem

    Alright, I'm having a problem with links. ONLY in internet explorer and ONLY on pages containing flash content, the borders on ONLY my image links turn the default bright blue. I've done several tests, and know for sure that this is what's wrong. I'm