Pie chart with resizable slice ?

Hello All,
Is it possible to create a pie chart with re-sizable slice.. ie user should be able to decrease  and increase  the area of any slice by just using mouse drag. If I increase area of any particular slice, other adjacent slice should automatically get reduced.  Please provide me some pointers on this .
Regards,
Dharmendra

Hi Deepak,
I had time dimension in the RPD.
I have stacked bar chart with same time dim like year & month in the report. when I go to legand and set navigation it is working fine. But not with pie chart.
I am not not sure what is the problem. When I click on Pie chart it is not navigating to the target report. Can it be any other issues..???

Similar Messages

  • Pie Chart with Legend

    Hey Experts,
    I have a small issue but cannot seem to find the solution. I have a pie chart with legends which I want to show side by side (horizontally). First pie chart and then legends. My requirement is that when the window is resized, the pie chart should also resize. I am able to show the chart and legends horizontally but when the legends list is long, the pie chart is always aligned in the center vertically. I tried setting all properties such as verticalAlign = "top", verticalCenter = "false", tried putting pie chart and legends in a separate VBox but nothing seems to work. Below is the code snippet.
    I believe others would have faced this problem. Can someone help?
    <mx:HBox width="100%" height="100%" verticalAlign="top" verticalCenter="false">
         <mx:VBox width="100%" verticalAlign="top" verticalCenter="false">
              <mx:PieChart id="pieChart" width="100%" height="100%" showDataTips="true" minWidth="200" minHeight="200" verticalCenter="false"/>
         </mx:VBox>
         <mx:VBox width="100%" verticalAlign="top" verticalCenter="false">
              <mx:Legend width="100%" height="100%" dataProvider="{pieChart}"/>
         </mx:VBox>
    </mx:HBox>

    Hi Dajji,
    Here is the code which resolves the problem...
    Note: In the code below I have removed the percentage width and height for PieChart.....that resolves the problem.....but the thing here is as you resize
    your browser window the piechart width and height will not change accordingly...? Do you need PieChart to change its dimensions as your browser window
    resizes...???
    However if you specify width="100%" and height="100%" for PieChart you never gonna acheive the PieChart to be vertically alined to top.....why because
    as you specified width="100%" and height="100%" for PieChart it occupies the total dimensions of the VBox but the actual visible portion dimensions are
    less... because within the VBox you also have the legends so Flex will assign the sizes proportionately....for PieChart and Legends..
    Hope you got my point...So you should remove the width="100%" and height="100%" for PieChart then you can acheive what you needed...
    <?xml version="1.0"?>
    <!-- Simple example to demonstrate the PieChart control. -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" height="100%" width="100%">
        <mx:Script>
            <![CDATA[         
            import mx.collections.ArrayCollection;
            [Bindable]
            private var medalsAC:ArrayCollection = new ArrayCollection( [
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 },
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 } ]);
            private function displayGold(data:Object, field:String, index:Number, percentValue:Number):String {
                var temp:String= (" " + percentValue).substr(0,6);
                return data.Country + ": " + '\n' + "Total Gold: " + data.Gold + '\n' + temp + "%";
            ]]>
        </mx:Script>
        <mx:Panel title="Olympics 2004 Medals Tally Panel" height="100%" width="100%" layout="horizontal" verticalAlign="top">
               <mx:VBox verticalAlign="top" height="100%" width="100%">
                 <mx:PieChart id="chart"
                     showDataTips="true"
                     dataProvider="{medalsAC}">         
                     <mx:series>
                         <mx:PieSeries
                             nameField="Country"
                             field="Gold"
                             labelFunction="displayGold">
                         </mx:PieSeries>
                     </mx:series>
                 </mx:PieChart> 
               </mx:VBox>                 
             <mx:Legend dataProvider="{chart}"/>
        </mx:Panel>
    </mx:Application>
    Thanks,
    Bhasker Chari

  • Pie chart With one value

    Hello Experts,
    I am new to apex.
    I want to plot a pie chart with only one value.
    that one value should look like a one slice in the pie chart.
    I tried it, but it showing as entire pie chart as one value.
    So Please help me in this regard.
    Its very urgent.
    Please.

    Hi,
    Try creating the entire chart using custom XML and PL-SQL, it will give you full control over the sql and xml . Take look at this thread Re: Help Needed : Changing the Color of Bar Graph Dynamically , Change the data_plot_settings to line and you can refer to the http://www.anychart.com/products/anychart/docs/xmlReference/index.html for more detail on the tags and syntax. Thanks.
    Regards,
    Manish

  • Pie chart with two measures and date dimension navigation not working

    Hi Experts,
    Pie chart with two measures and date dimension navigation not working. Any help is appreciated.
    Thanks
    V

    Hi Deepak,
    I had time dimension in the RPD.
    I have stacked bar chart with same time dim like year & month in the report. when I go to legand and set navigation it is working fine. But not with pie chart.
    I am not not sure what is the problem. When I click on Pie chart it is not navigating to the target report. Can it be any other issues..???

  • Pie chart with NULL values

    I have a report(pie chart) with year, State, Category(Electronics,Home Appliances, Grocery) and % profit margin. The requirement is in a state if any of the categories is NULL the other two should become null as well for that state so that the whole pie chart will disappear. For example if electronics profit margin is NULL for a chosen state then Home appliances and Grocery profit margin should become null for that state as well. Can anyone please advise how this can be accomplished.
    Thanks
    R
    Edited by: user1146711 on Jul 13, 2012 11:37 AM

    user1146711 wrote:
    I have a report(pie chart) with year, State, Category(Electronics,Home Appliances, Grocery) and % profit margin. The requirement is in a state if any of the categories is NULL the other two should become null as well for that state so that the whole pie chart will disappear. For example if electronics profit margin is NULL for a chosen state then Home appliances and Grocery profit margin should become null for that state as well. Can anyone please advise how this can be accomplished.
    Thanks
    R
    Edited by: user1146711 on Jul 13, 2012 11:37 AMTry this:
    --1) In addition to your mentioned columns, add 4 more "% profit margin" columns. (I am assuming this is a measures column.)--
    --2) In each of the first 3 columns, click on the fx button, then on the Filters button and create a column filter "where category = 'Electronics' for the 1st column, "where category = 'Home Applicances' for the second column, etc...--
    Each of the 3 columns in step 2 will contain the measure for the specific category, for the given year, some of which may be NULL according to your data.
    --3) In the 4th dummy column, make it a concatenation of the prevous 3 columns.--
    Because this is a concatenation, if any of the previous 3 columns are NULL, the sum will also be NULL. Make sense?
    --4) Then finally, put a filter on the 4th column, "Is not Null."--
    Now if any of the individual categories has a null, the whole state will be eliminated from your report. Hide the 4 columns. That's it.
    The above won't work as the values of every row will have NULLs due to the way I said to build the report.
    Okay, try this:
    1) Build a small report with Year, State, SUM(% Profit Margin) and a concatenated column Year-State.
    2) Put a filter on the SUM(% Profit Margin) column "Is Not Null."
    If there are NULLS in any of the four categories, because your database does not substitute a 0, then the sum will be Null and there won't be a row that corresponds to that Year and State. The only rows that should appear in this report are those states for the year, that had a value in all 4 categories. The last column, Year-State will be unique and be the identifier.
    3) Now build your main report with all your normal columns (Year, State, Category, % Profit Margin) and add a hidden column that is the concatenation of Year-State.
    4) On the Year-State column, put a filter "based on another request" and point it to the "Year-State" column of the small report.
    This should produce only rows where all 4 categories had a value in it for the given year.
    Edited by: David_T on Jul 14, 2012 7:49 AM
    Edited by: David_T on Jul 16, 2012 2:48 PM

  • Pie Chart with Portal 3.0.8.9.8

    I have two portal installations, one with version 3.0.8.9.8 and the other with version 3.0.9.8.0. I have enabled the beta feature "Image Charts From Query Wizard" on both installations. I can successfully create and display a pie chart on the newer version (3.0.9.8). However, on the earlier version (3.0.8.9.8), I can only create the pie chart but it does not display. That is to say, the pie chart creation is successful, but when I run it, it times out and never displays the pie chart. Has anyone experienced problems displaying a pie chart with 3.0.8.9.8? I need to create one on this older installation since it is the version my client is using.
    Thanks,
    Kendra

    Do you have any logged error in jserv.log. Can you isolate the action of running the chart in 3.0.8.9.8 and find out corresponsing logging messages in jserv.log and error.log.

  • Pie chart with Quartz 2D,

    Hi!
    I'm trying to create a pie chart with Quartz 2D, can't find out how to do it, maybe anyone can point me in the right direction?
    Thanks really much for your help!

    I'm going to start the same task, I'm just reading the quartz 2d guide, but I'm thinking you can draw semicircles paths transforming the % of your data in angles, then creating paths from the end of the semicircle to the center of the circunference. sounds good for you? any comments? how was your approach?

  • Pie chart from Largest slice of another pie chart.

    Greetings!
    I'm trying to come up with a method which will allow me to create a pie chart of the subgroups from the largest slice of an existing pie chart. The "parent" pie chart will change depending upon the parameters given in the report.
    declare @dataTable table (category varchar(10), task varchar(10), timeSeconds int)
    insert into @dataTable (category, task, timeSeconds)
    values
    ('Alpha','Scrub',100),
    ('Alpha','Sweep',100),
    ('Alpha','Polish',100),
    ('Bravo','Wash',200),
    ('Bravo','Dry',200),
    ('Bravo','Fold',200),
    ('Charlie','Paint',300),
    ('Charlie','Sand',300),
    ('Charlie','Spackle',300)
    In this example, when a pie chart is produced, Charlie would have the largest slice. I then want to produce a pie chart showing only the tasks contained within the Charlie category, but which has the flexibility to render if the Alpha or Bravo groups are
    the largest slice next time.
    Thanks

    For anyone else attempting the same thing: I wound up bringing in a reference to the largest slice using a subquery in the initial query, and using that column as a filter on the second pie chart.
    I was hoping for a solution from within SSRS itself, but settled on that. I'll leave the question open in the hope someone knows how to achieve the same result from within SSRS.

  • Creating a SVG Pie Chart With Different Portion Linking To Different URL

    Is it possible to create a SVG pie chart in which different portion will point to different URL. on HTML DB version 1.5.1.00.12
    For example i've tried something like this:
    on page 20 i have a svg pie chart
    select
    'f?p=&APP_ID.:21:#APP_SESSION#::::P21_DD_SALESORG:'||region,region,code from demo_region;
    i have a query in page 21 like this:
    select country from demo_country where region= :P21_DD_SALESORG;
    so when i click on a particular region on the pie chart on page 20 the value of item
    P21_DD_SALESORG on 21 should be set.
    but the value of P21_DD_SALESORG is always getting passed as NULL from the pie chart.
    I've tried it on HTML DB version 1.5.1.00.12
    Look for an early reply
    Thanks & Regards,
    Rupak
    Message was edited by:
    user445907

    hi user445907--
    your link column in your chart query seems to us the correct syntax, so i'd imagine the issue is with your data/query or the item name in question...
    check the query and data: make sure your query returns valid values to be passed of to P21_DD_SALESORG. if so, you should see your links correctly formed as you hover your mouse over the individual slices. if your links look good then check your item names.
    item names: if your links above look okay, then might you be setting the value of the incorrect item? please confirm that. after clicking a pie slice to get to page 21, check to see that P21_DD_SALESORG is correctly set by clicking the Session link in the developer toolbar.
    basically, i'm suggesting that because your link column in your query looks okay, you'd want to see at what point the NULL value is being passed/set. try tracing things from the chart query over to page 21 (and try going backwards if you have to). if you can't find the disconnect, please feel free to set up an example on an instance, where i can take a look.
    thanks,
    raj

  • Can you make a 'pie chart' with Lingo ?  or Java

    Question pretty much like the subject above says. Just a basic pie chart from two numbers
    Alright, I want a pie chart to give a visual of a percentage.  The percentage would be a value of 1-100 in a field cast member

    I do hope you realise that it takes more than two numbers (or one single value from a #field member, as you've supplied) to display anything representing a pie chart. For example what exactly to you want that #field value to represent? Radius? Circumference? Portion of 100%?, etc... And what is this mysterious 2nd number you hint at, but do not define?
    Please understand that while nobody would deny the integrity of any of Valentin's scripts/Xtras, you surely know that it takes much more than two numbers to represent a pie chart - or even a single slice of a given pie chart.
    But, I'll bet that his class can get you there. Just wanting you to think about what you are asking for here.
    BTW, what on earth does Java have to do with your question? Were you thinking about JavaScript when you typed the subject? You are aware that Java <> JavaScript (or even EMCA syntax), right? Were you serious about Java?
    Not a slam, just wanting you to think out loud.
    Mark "Cheers II, SD" Boyd
    Keep-On-Learnin' :-)
    .sigFile addressed at myself, but if the shoe fits...

  • Create Multiple Pie Charts with Drill Down capability(foreach in mainreport

    Hello All,
    i need to create a report with 4 pie charts, which should have drilldown capability. i tried to do that, and i can do only for two charts. i need for the rest 2 also.
    Please help.
    Thanks

    See this thread:
    BO Design studio Chart Component issue ...!! | SCN
    If Chart is bound to DS_1 and On Select event of chart is as below:
    DS_2.setFilter(dimension, CHART_1.getSelectedMember(dimension));"
    This works when you click a value on one chart it will select another.
    I haven't tried it with hierarchies.

  • XSL for a Pie chart with a very simple XML data file

    Hi All
    Using BI Pub Desktop 10.1.3.2.1 with Oracle Apps R12.1.3.
    I am trying to do a pie chart for the below data in an xml file. Normally this is pretty straight forward but with the below simple data structure I am a bit stuck, maybe thinking about it too much. Appreciate any help on what the xsl should like.
    xml file contains only the below. There is no other data in the file.
    <G2>
    <ITEM>ALL</ITEM>
    <AA>10</AA>
    <BB>20</BB>
    <CC>50</CC>
    <DD>30</DD>
    </G2>
    I want to be able to have a pie chart that shows the labels: AA, BB, CC and DD with the corresponding data values of 10,20,50 and 30.
    Thanks for viewing the question.
    Cheers Cel

    Please disregard. i went back to the original blog code and started over, and figured this out.

  • Pie Chart highlighting (immitating 3D Pie chart with ellipse shape)

    I have to create a pie chart using jdk 1.0. Since I have to make it looks like 3d, I used fillArc() to draw ellipse shape pie chart. I am having trouble highlighting the pie where the mouse is over. Using atan() to get degree of x and y mouse possition and compare to pie's degree works only for a circle but not for ellipse shape.
    Can someone tell me how I can verify xy mouse position with each ellipse pie piece?
    Also, I have to draw a label for each picese and the lavel has to point to each pie. I need to get the mid point, x and y possition, of perimiter of each pie.
    Can someone help me please?
    Thanks in advance,
    lala

    hi friends, i have developed the same appication like u but it is not 3D.so if u have 3D pie program them please send me code of programming at my mail id:
    [email protected]
    now as ur question,u can get the xy coordinate of mouse using mouseactionlistener.this u can use in ur applet coding.

  • Pie chart with both text and value

    Hi,
    I want the pie chart to contain both the text and value how is this possible when I look at the optiond for chart I was able to select only one thing at a time both not both the things at a time ,please let me know how is this possible
    Thanks
    Priya

    Hi Priya,
    this should be possible. In the Chart Designer in the properties of the Categories you must edit the Format string to e.g. "$Label$br0.00" (show the label, make a line break, show the value with 2 decimals). For more info regarding the format string see note <a href="http://service.sap.com/sap/support/notes/1064448">1064448</a>.
    Best regards
    Matthias

  • OBIEE 11g pie chart showing the slices by different measures

    Hi,
    We are using OBIEE 11g. We have a requirement to show PO Met Count , PO Under Count, PO Over Count as a slices in a pie chart. However Pie graph in 11 g is slicing only by a dimension and not by the above measures. This was possible in 10g. I want to know if this a limitation in 11g or is there a way around this.
    Regards
    Purvi
    Edited by: user13054333 on Dec 1, 2010 11:20 PM

    HI,
    I tried to slice by measure by dragging the column to slice size section. I have 3 metrics PO Under Count and PO Over Count which add up to total PO count. So I want my pie to ahve 2 slices one for PO Under Count and other for PO Over count. However when I drag the 2 metrics, it shows me 2 pies, one for Over and the other for Under count.
    Regards'
    Purvi

Maybe you are looking for

  • Mavericks Crashing once or twice EVERY hour!! Help

    Hi, I'm really struggling with my mac. It's crashing around every half an hour or so and I have no idea why. Ive taken it into the Apple Shop- no hardware issues, Ive done a complete re-install and transferred settings back on via migration assistant

  • FCP4 project slow to open - due to Motion 4?

    My FCP7 project takes a very long time to open up (compared to others that do not possess any Motion4 interaction such as the stuff detailed below). My project takes about 10 minutes to finally open up completely where others (such as wedding videos

  • HELP QuickTime Pro crashes in Mountain Lion

    I have recently updgraded to Mountan Lion from Snow Leopard and a few bad things happened. First of all i saw is that the Preview doesn't *preview* my .avi files and some other xvid.(never had this problem on SL) Secondly and more important: Working

  • Messages not showing correctly in Nokia PC suite

    Hello, I'm using Windows XP SP2 PC suite version is 7.1.40.1, English I use both data cable and bluetooth. My phone models are Nokia 2330 and Nokia 2730. My problem is that when I open the Nokia Communication centre in PC suite (messages), I see the

  • Cannot Tweet Picture in IOS 5

    Just got my new iPhone 4S but have a problem with the Twitter intergration. When I try to Tweet a picture from the IOS Menu it says "Connection Failed" or something similar, but this only happens when on Mobile Data it works fine when on WiFi. All ot