Pie Chart summarizing grid data

New to Flex.  Searched for a method to build a pie chart based on a column in the grid we've created.
So Far:
The grid gets created based on info passed in a form.
I can get two pie charts to be created based on specific columns in the data.
The pie charts currently have 1 slice per row of data.
Am I missing an easy way to build a Pie Chart that summarizes this?
Instead of One Pie Slice per record, how do we get one pie slice per unique value in the data column?
For instance:
a datagrid of   source IP | Dest IP | Dest Port | Action
I'd like a pie chart showing the percent of data per source IP.
Is there something built in to Flex to handle this?

Cool...  So if my XML looks like this:
<options>
<option>
  <datetime>2008-04-21 14:15:49</datetime>
  <origin>stone</origin>
  <action>reject</action>
  <rule>default</rule>
  <srcip>192.168.93.64</srcip>
  <dstip>192.168.201.10</dstip>
  <dport>988/tcp</dport>
</option>
</options
And datagrid dataprovider is {eventData},
eventData = event.result.option as XMLList;
would it be:
var ipSummary:Object = {};
for each (var record:Object in eventData) {
  ipSummary[record.srcip] = (ipSummary[record.srcip] || 0) + 1;
var pieData:Array = [];
for (var key:String in ipSummary) {
  pieData.push({ srcip: key, activityCount: ipSummary[key] });
The PieChart would look like:
<mx:PieChart id="piechart2" dataProvider="{pieData}" showDataTips="true">
<mx:series>
  <mx:PieSeries id="pieact" displayName="Source IP" field="activityCount"/>
</mx:series>
</mx:PieChart>
Obviously I'm New at Flex...  

Similar Messages

  • SAP BO XCelsius : Drilldown from pie chart to raw data ( Excel Spread Sheet) in Xcelsius

    Hi,
    I am working on a dashboard where my requirement says, Drill down data from Pie-Chart to Raw data ( Excel Spread sheet).
    Clicking on one pie should show me the required data in Excel format
    May I know if this is possible to create from Dashboard design tool SAP R4
    Thanks
    Javeed

    Hi Javeed,
    Drilling data from pie charts is very much possible. The data drilled down can be shown either in spread sheet format via components called "Scorecard" "List View". But if its specified that you need the current data drilled down to a separate excel spread sheet only then, you may need to use the third party components for it.
    There are many such components available for free. There are components available which are paid as well. You will have to find out which ones are free. Check out the threads below.
    How to export data out of Xcelsius to Excel
    CSV Connector
    http://pentaho-bi-suite.blogspot.sg/2013/12/exporting-table-component-to-excel-or.html
    Export Data from Dashboards | Just-BI | Business Intelligence
    SAP Dashboard Components - Multi Colour Column Chart, Hierarchical ComboBox &amp; Export To Excel Manufacturer from Beng…
    SAPexperts | Give Dashboard Users the Ability to Export Data to Excel at Run Time
    I hope this derives you to come conclusion.
    Thanks,
    Sara

  • Can illustrator populate a pie chart from excel data?

    I was wondering if there was a way to import excel datat into illustrator, then it populates a vector pie or bar chart for me?  Is this even possible?
    Thanks in advance,
    Jenny
    http://texturedwallpaper.org

    you can copy/paste data from Excel to Illustrator

  • Pie Chart Issue(Bug)

    Hello All,
    In the Pie chart the below data is mapped
    Range    Value
    <6         12
    6-12      23
    >12       15
    But in the preview while mouse over on the pie chart it is not showing the "<6" any time.
    but it is showing ">12"
    The problem with the Symbol "<" .
    Did anybody noticed that.
    Let me know how to solve this one.
    Thanks
    Santhosh V

    Hello David,
    Is that showing correctly in your machine ,How come man,
    Just have look in the samples of the Xcelsius File->Templates->HR->Componsatation ,
    Run that Dashboard in that dashboard observe when ever your changing in the combo box to "Tenure" In the pie chart observe the value  for the "<=25 Years" Label is not showing in the Pie chart when ever the user mouse over on the pie chart.
    Thanks
    Santhosh V

  • Pie-chart drill-down

    Hi,
    I have created a pie chart on my report. I want it so that the user can double click on a segment of the pie and drill-down to view some detailed logs. The logs just being a list of details from the records like "name" "age" etc.
    I have read some stuff on subreports and linking, but im not quite sure wether this is the way to do this or if there is an easierway without all that subreport linking malarchy.
    Is there an easier way? and if so, could you please provide me with a step-by-step as im fairly new to this whole crystal reports thingamajig. Thanks
    J

    Hi James
    You can get a drill down on your pie chart once you apply groups in your report and create chart based on those groups.
    For example: I create a report to display the last year sales for all the cities in a country. I want a drill down onmy pie chart for the cities. I do the below:
    1. I create two groups on Contry and City.
    2. Now I create a pie chart. In Data tab of Chart expert select the group for City in On change of, and show value Last year sales.
    3.Place the chart on group header of Country group.
    4. Refresh the report, now I would get the drill down for the cities for every country in the Pie chart.
    For more information please refer to Crystal Reports Help.
    Hope this helps!!!
    Regards
    Sourashree Ghosh

  • Bar of Pie Chart and Age Population Chart ?

    Hi,
    I've got the last version of numbers and I'am asked for an assignement to do a Bar of Pie Chart and an Age Population Chart.
    I tried everything and searched on the internet but couldn't manage to find what I'm looking for.
    Could anyone explain how to do those ?
    Thanks

    Hi Vic,
    So "Bar of Pie" wasn't a typo! Looks like Jerry (and I) had a different interpretation of what you were trying to do.
    What you have there is two separate charts, using two separate (but related) sets of Data.
    The Pie chart uses the data listed on the table to the left below—individual numbers for the pets whose count is three or greater, and a grouped count for the others.
    The Stacked Bar chart uses a separate data set, listed on the second table—the individual counts for those pets represented fewer than three times each.
    Here's a variation.
    Charts are using the default colours as assigned by Numbers.
    See the Numbers '09 User Guide for details on reformatting the charts.
    Regards,
    Barry

  • Appleworks SS pie chart labeling

    I cannot override the "Series 1-7" labels that serve as the default legend in my pie chart. The data wedges in color (with their percents) are fine, the title of the chart is fine. I just want to put four cells of names (column A) in place of the "Series" messages.

    Hi 'rider,
    Welcome to Apple Discussions and the AppleWorks forum.
    Select the cells containing the names (in Col. A) and the cells containing the data (in col. B). Press command-M to Make chart.
    Select Pie Chart, then Click the General button.
    In the General pane, click the radio button for Series in: Rows, and check the box for Use numbers as labels in First column.
    Click OK.
    Regards,
    Barry

  • Discoverer plus pie charts

    hi,
    when i use pie charts for reporting data in discoverer the value of fields(each slice) r displayed as decimal values(eg:56.00) which i need to be a whole number(56) without decimal places. how can i set the field type or pie chart options to satify my requirement? help me out in this.
    Preetha.

    We just uninstalled the Jinitiator and reinstalled it again and its working fine now.
    Thanks
    --Kumar                                                                                                                                                                                                               

  • Pie chart - drill down/up with HierarchicalCollectionView

    y'ello,
    I started to build really simple pie chart with drill down data feature. I decided to use hierarchicalCollectionView, to access children even parent of clicked item, but one problem I realized right now is that pie chart displays only data type ArrayCollection, and hierarchicalVollectionView and method openNode() can be used only Array data type, so when I debugged I realized that can not use openNode(hitData.item)  wih ArrayCollection data type b'cuz flash player pop-ups error window.
    Please, chcek short source code. I thought I can make hierarchy from ArrayCollection but can not use openNode() method that next I need this method later access parent or children. Simply when I click on one wedge, drill down, again, when I click, again drill down...when I click Ctrl+click get one level back then again and again....plese help me gurues
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.charts.HitData;
                import mx.charts.events.ChartItemEvent;
                import mx.collections.HierarchicalData;
                import mx.collections.HierarchicalCollectionView;
                [Bindable]
                public var cars:ArrayCollection = new ArrayCollection([
                    {type:"BMW", t_count: 150, children:[
                        {type:"1 class", t_count: 18, children:[
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Compact", t_count: 8}
                        {type:"3 class", t_count: 14, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Compact", t_count: 8}
                        {type:"5 class", t_count: 7, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Sedan", t_count: 8}
                        {type:"6 class", t_count: 15, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                        {type:"7 class", t_count: 8, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34}
                        {type:"X3 class", t_count: 22, children:[
                            {type:"Sedan", t_count: 11},
                            {type:"Coupe", t_count: 9},
                            {type:"Touring", t_count: 5},
                            {type:"Compact", t_count: 17}
                        {type:"X5 class", t_count: 9, children:[
                            {type:"Sedan", t_count: 33},
                            {type:"Coupe", t_count: 18},
                            {type:"Hatchback", t_count: 7}
                        {type:"X6 class", t_count: 11, children:[
                            {type:"Coupe", t_count: 18},
                            {type:"Combi", t_count: 31},
                            {type:"Hatchback", t_count: 8}
                    {type:"Mercedes", t_count: 120, children:[
                        {type:"A class", t_count: 5},
                        {type:"B class", t_count: 12},
                        {type:"CLS class", t_count: 18},
                        {type:"CL class", t_count: 23},
                        {type:"C class", t_count: 12},
                        {type:"E class", t_count: 19}
                    {type:"VW", t_count: 320, children:[
                        {type:"Passat", t_count: 10},
                        {type:"Polo", t_count: 25},
                        {type:"Golf", t_count: 45},
                        {type:"Touareg", t_count: 15}
                //HCV from hierarchical data
                private var hView:HierarchicalCollectionView = new HierarchicalCollectionView(new HierarchicalData(cars));
                //event handler
                private function drillDownUp(event:ChartItemEvent):void{
                    if(event.hitSet && event.hitSet.length){
                        //DRILL UP
                        if(event.ctrlKey){
                            var hitItem:HitData = event.hitSet[0];
                            var parent1:Object = hView.getParentItem(hitItem.item);
                            var parent2:Object = hView.getParentItem(parent1);
                            if(!parent2){
                                myPieChart.dataProvider = hView.source.getRoot();
                            else{
                                myPieChart.dataProvider = hView.getChildren(parent2);
                        //DRILL DOWN
                        else{
                            var hitItem:HitData = event.hitSet[0];
                            if(hitItem.item.hasOwnProperty("children")){
    //                            hView.openNodes(hitItem.item); //here is problem!!
                                myPieChart.dataProvider = hView.getChildren(hitItem.item);
            ]]>
        </mx:Script>
        <mx:Panel title="PieChart DDD Test - Trh predaja automobilov - 2009">
            <mx:PieChart id="myPieChart"
                         dataProvider="{cars}"
                         itemClick="drillDownUp(event)"
                         showDataTips="true">
                <mx:series>
                    <mx:PieSeries field="t_count"
                                  nameField="type"
                                  labelField="type"
                                  labelPosition="inside"/>
                </mx:series>
            </mx:PieChart>
            <mx:Legend dataProvider="{myPieChart}" direction="horizontal"/>
        </mx:Panel>
    </mx:Application>

    Hi Jan,
           thanks for reply,sorry i am quite new in this forum not familiar with tabs and navigation,can you please elaborate/steps to find the business card
    thx
    Anwy

  • Display of colors of categories in a pie chart in WAD... BW 3.5 ...

    Hi All,
    I am facing a problem that in WAD, i am using Chart web item. I have gone for a pie chart where i have 4 categories to be displayed. I have selected 4 different colors for them.
    Category 1 --> A --> Red
    Category 2 --> B --> Blue
    Category 3 --> C --> Green
    Category 4 --> D --> Violet
    Here after finishing the design of the web template, when i execute in browser, i am able to see 4 legends displayed under the pie chart but the data is available only for first three categories. And the colors displayed for the legends are not in four number. The color of the legend of the category which is not having data is overlapped by the next one.
    The display of the colors in the legends after the execution is like this:
    Category 1 --> A --> Red
    Category 2 --> B --> Blue
    Category 3 --> C --> Green
    Category 4 --> D --> Green
    The color of the legend 4 is violet but it is showing as Green as the data is not available for that category. Can any one plz help me in this regard how to get the display of all the colors though the data is not available for that particular category.
    Thanks in advance...
    Regards,
    Koundinya Karanam.

    Hi,
    Any idea?
    Is there any WAD expert? Plz help me out in this...
    Regards,
    Koundinya Karanam.

  • No data in Active sessions pie-chart and availability is 0%

    Hi All,
    Does anyone know why my Enterprise Manager cosole in Oracle 10g installed on windows xp professional is not showing any data? Availabilty is always 0% for the instance ORCL and the active sessions pie-chart is always showing 0.01 since May 17,2005.
    Can anyone tell me how to configure EM so that instance ORCL and the active sessions start showing data again?
    Thanks

    Hi,
    Kindly activate the data request. Post that, Under "request available for reporting" a symbol will appear which means that the data has been moved to Active table and is available for reporting at further levels.
    And you can then check for contents in the active table of the DSo, you should get the records.
    Change log: Contains the change history for the delta update from the DataStore object into other data targets, such as DataStore objects or InfoCubes. It makes sense in case of delta uploads.
    Regards,
    hemlata

  • When copying a Pie Chart from one Excel tab to a new Excel tab, the chart data is still referring to the original table

    Hi,
    In Excel 2007, I have a pie chart on sheet 1. I want to make a copy of the pie chart from sheet 1 and past into sheet 2, and change the table data in sheet 2 to get new chart recalculated based on new table values in sheet 2.
    However, the chart in sheet 2 is still pointing to the table data in sheet 1.
    All the cells in sheet 1 have relative cells.
    Please advise.
    Thanks - Bijan

    Hello Wind,
    As teylyn suggested:
    "An Excel chart is hard-wired to its data source. You can copy and paste a chart to a different sheet and it will still refer to the initial source data."
    So I did create the template and used in my 2nd tab which worked perfectly. However, I had an issue with merged cells which I am using for my data, and tylyn suggested that I provide the excel file that I am working with, and I did.
    So now I need help as how to make merged cells work when I try to create a pie chart from template based on new data (which reside in mergerd cells).
    P.S. I cannot resize my cells to make the data and labels fit into one call, so I have to have merged cells.
    Thanks
    Bijan

  • Pie Chart: How to capture data pertianing to the section  whereUser clicked

    In the UI there is a 1) Pie chart and a 2) table with search fields below the pie chart both displaying related information.
    we have a requirement to allow the user to click on various sections of the pie chart lets say it has two sections 1) one showing number of people with insurance as 75% and 2) another people without insurance as 25%. when the user clicks on the area representing 75% then the search fields related to the table should be automatically populated with the data related to that region of the pie chart (75%) lets say if there is drop down that allows the user to search for people "with" and "without" insurance then it should be set to "with insurance" since the user had clicked the area in the pie chart that pertains to percentage of people with insurance. basically, looking for some examples that would help us find out how to implement this feature since new to ADF?

    Use clickListener in Pie Chart.
    For details, check the documentation:
    http://jdevadf.oracle.com/adf-richclient-demo/docs/dvt/tagdoc/dvt_pieGraph.html
    Thanks,
    Navaneeth

  • Why can't I access the data when I right click my pie chart any longer?

    I don't know what happened but I need to change some data in my pie chart but I nolonger get the data option when right-clicking the chart...

    then I guess at some point it has been ungrouped, which makes it simply a collection of objects, rather than a graph. you're supposed to get this message when that happens. did you see this at any point? when did it stop being editable?

  • Active sessions showing no data in pie-chart

    Hi All,
    Does anyone know why my Enterprise Manager cosole in Oracle 10g installed on windows xp professional is not showing any data? Availabilty is always 0% for the instance ORCL and the active sessions pie-chart is always showing 0.01 since May 17,2005.
    Can anyone tell me how to configure EM so that instance ORCL and the active sessions start showing data again?
    Thanks

    What errors were you seeing in the log files, i am experienceing the same issue but the listener appears to be fine.

Maybe you are looking for

  • ORA-00933: SQL command not properly ended

    I am attempting to create a view in oracle 8.0.6 but get the error message ORA-00933 SQL command not properly ended, can anyone help?: SQL> create view AJT_SCHEDULES01 as 2 select SCHDL_REFNO, STRAN_REFNO from SCHEDULES order by STRAN_REFNO desc; sel

  • Error message when opening itunes; won't update or uninstall itunes

    a few months ago, i downloaded the new version of itunes and safari together. once downloaded, my computer restarted and wouldn't turn back on. i repeatedly attempted to run my computer but, once it was turned back on, it just stayed on a solid black

  • How do you know if someone is hacking into your internet services

    I found several websites that I have never been to under settings in safari advanced settings. How did these get here and what can I do to stop it.

  • IPhoto to iDVD slideshow

    I have 268 photos that I want to make into a slideshow. I understand how I can make a new slideshow in iDVD and simply add the folder of photos from iPhoto and let iDVD do its thing. However, I've read many posts about quality (or lack thereof) so I

  • How to use ANTLR 4 in visual studio 2010 .

    I need to generate parse tree for a C language program in c#.NET.I am using ANTLR4 for this.There are many java tutorials available for ANTLR4 but I want for C#  .