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

Similar Messages

  • Issues with multilevel pie chart drill down with push button

    I am new to Xcelsius. I am trying to build a multilevel pie chart drill down (one pie chart drilling down to another etc) and I am able to achieve that. Now I want to add a Back Button using Push Button so that I can go up.  When I preview, the Push Button goes into two state and I have to double click to go back.  Can anyone tell me what I am doing wrong. I am using the latest Xcelsius. [The source code is here|http://www.woofiles.com/dl-195360-3lTyVM8Z-piechartdrilldownwithpushbutton.xlf]
    Thankyou.

    Hi Murali
    This is exactly the same what i tried to do,
    Drill down to 4 levels State -> City-> store etc with 4 pie charts and similar push button to close each level to
    go back to previous chart, first run from 1 to 4 works fine, then after closing all the levels and when i am at the pie chart 1
    if i click any pie slice it will jump to Pie chart 4 straight,
    I tried tracking the issue, all i could find is some how the previous dynamic visibility values are back even after erasing
    the data with the PUSH button (Destination cell insertion with blank or 0).
    did you find a solution for this issue ?
    Thanks
    Chandra

  • 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

  • PIE Chart Drill down in bex report

    Hi Friends,
    In my bex report i have pie chart for year 2008.
    Shall I drill down on this report means if  i click on one part of the pie chart will i go to another report or another pie chart.
    Can any one pls tell me is it possible .
    Thanks & Regards,
    Ramnaresh.
    Edited by: ramnaresh porana on Dec 1, 2008 6:35 AM

    Hi ,
    Thanks for reply.
    how it is possible from context menu of the pie chart , i have seen the context menu of the pie chart but i did not get any related option for this one.
    Can you pls guide me.
    Thanks & Regards,
    Ramnaresh.

  • SVG Pie Chart drill down report

    I have created a svg pie chart report within a chart region. the chart contains url drill down.
    The urls work fine but it opens the result from the url in the same chart region on the same page.
    How can I get it to open on either a new page altogether or on another region on the same page.
    Regards
    iculhane

    How do you get the url drill down to work? Can you explain to me? I have a 3d pie chart, what I want is when I click one of the pieces, it will drill down to a report.
    Thanks,
    Helen

  • Pie Chart Drill Down Report

    Hello All,
    Please help. I created a 2D Pie chart. How do I get chart to drill down to a report based on the slice of pie I click. I've already created the report. I can't seem to get the link working.
    Artnette

    Artnette,
    See this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:156
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Pie chart drill down problem

    Hi,
    We are facing an issue with the drill implementation in the Pie chart of the dashboard. Initially, the drill functionality worked fine but now, we observe that the drill happens ONLY on the edges of the pie chart
    Now this behaviour is observed when we make following changes in the dashboard:
    1) If we add new filter in the existing qaaws connection for pie chart. (The problem persists even if we remap the qaaws connection)
    2) If we apply some color coding based on certain condition(formula) specified in the excel.
    if we revert the above conditions, then the Pie chart works fine
    We have tried the following things:
    1) deleting the existing pie chart and remapping the new one.
    2) Tried changing the destination cells for the pie chart.
    We are stuck up with this problem without any solution from a long time. We even tried redeveloping the whole dashboard but the problem persists.
    Version :Xcelsius 2008 SP3,fp3.1
    Thanks.

    This is actually an issue of the flash player.
    Installing Windows Flash Player 10.3 ActiveX control content debugger (for IE) will solve the problem.
    Or switch to Flash Player 10.1
    Windows Flash Player 10.3 ActiveX control content debugger (for IE) is available here: http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_ax_debug.exe
    For Netscape-compatible browsers, the version is available here: http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_plugin_debug.exe
    No need to remove the existing flash player.

  • Pie chart drill down in bex

    Hi Friends,
    In my bex report i have pie chart for year 2008.
    Shall I drill down on this report means if i click on one part of the pie chart will i go to another report or another pie chart.
    Can any one pls tell me is it possible .
    Thanks & Regards,
    Ramnaresh.

    Hi ,
    Thanks for reply.
    how it is possible from context menu of the pie chart , i have seen the context menu of the pie chart but i did not get any related option for this one.
    Can you pls guide me.
    Thanks & Regards,
    Ramnaresh.

  • Bubble Chart drill down issues

    I have a filter and a bubble chat with 7 series. The chart is showing up bubbles with different size and colors as per the settings when I chnage the filter
    The problem is with drill down
    I want to drill down to a Bar chart when I click on bubbles. Each bubble click will drill down data into that bar charchart as a pop up. I know how to do it as I have done it in the past with other components.
    But when I use drill down with bubble chart, I have to assign separate destination area for each series which makes it difficult to drill down into a chart. What i want is the bubbles to drill down data into a single row so that I can map the Y-axis of chart component to that row and X axis as fixed labels. But I am not able to do that. Moreover once inserted there is no way to clear the destination cells.
    However if I use data in range options in bubble chart then I can use drill down as I get only one series in that case. But that method also has limitations.
    1. I am not able to display series name on the bubbles. It doesn't make any sense to show bubbles without any labels.
    2. All bubbles are of same color.
    Is it possible to overcome above two limitations when using data in range option?
    Thanks

    Hi Tarun,
    as a workaround you could define a special area as mapping area for the X-Y-chart.
    This area is filled via excel formulas from the bubble chart drill down destinations. You can concatenate the values from the drill down target areas, like "=A4&A5" etc. Make sure to clear all cells except the actual drill down target cells.
    Hope this helps,
    best regards
    Heiko

  • Bubble chart drill down

    HI All,
    We have 4 levels like(Continent,Country,State,Dist). Our business Req is like drill down from entity at  one level to another entity at the following level.Each Entity has one to many relation ships with entities in the subsequent levels.
    For Ex: One Continent will be linked to many Countries etc..
    We are trying to find a solution where a click on particular continent will point to a dataset / Range of values.....
    Could any one tell us how to define a range of values....
    Thanks In Advance
    Nithila

    Hi Nithila Siva  ,
    This is quite same as all other chart drill down.
    Here is the explanations:
    You have 4 levels drill downs :Continent,Country,State,Dist that means you can have 4 bubble charts in the canvas.In the First chart display all the continents(ex: Asia,Africa etc..) select asia from the first chart it should display all the contries in the ASIA (india ,pakistan etc..) in the second chart and follow the same for rest 2 charts.
    How can we do this:
    From your raw data you need to filter the data and point it to different charts. you can do this by writing formulas in the excels ex : point the data of all the continents in the first chart and in the properties tab-> enable drill down->select row-> in the source give all the continents and point the destination to one particular cell,so if you select a continent that value will come and sit in the destination cell and then you have to write formulas comparing the destination cell.
    Hope this helps.
    let me know if you need any explanation on this.
    Cheers,
    Sudharam

  • Xcelsius Bubble Chart - Drill Down Issues

    Hi ,
    Product : Xcelsius SP 3
    I have a bubble chat with 7 series. The chart is showing up bubbles with different size and colors as per the settings.
    The problem is with drill down
    I want to drill down to a X-Y chart when I click on bubbles. Each bubble click will drill down data into that X-Y chart as a pop up. I know how to do it as I have done it in the past with other components.
    But when I use drill down with bubble chart, I have to assign separate destination area for each series which makes it difficult to drill down into a chart. What i want is the bubbles to drill down data into a single row so that I can map the Y-axis of chart component to that row and X axis as fixed labels. But I am not able to do that. Moreover once inserted there is no way to clear the destination cells.
    However if I use data in range options in bubble chart then I can use drill down as I get only one series in that case. But that method also has limitations.
    1. I am not able to display series name on the bubbles. It doesn't make any sense to show bubbles without any labels.
    2. All bubbles are of same color.
    Is it possible to overcome above two limitations when using data in range option?
    Please help if someone has encountered this issue. There has to be some solution for this.
    Thanks,
    Tarun

    Hi Tarun,
    as a workaround you could define a special area as mapping area for the X-Y-chart.
    This area is filled via excel formulas from the bubble chart drill down destinations. You can concatenate the values from the drill down target areas, like "=A4&A5" etc. Make sure to clear all cells except the actual drill down target cells.
    Hope this helps,
    best regards
    Heiko

  • SharePoint Performancepoint Analytic chart drill down

    Hi,
    Anybody can tell me?
    In SharePoint performance point analytic chart drill down.
    The drill down showing all the dimensions from the datasource but instead of that. I would like to show only the required dimensions only. How to configure it?
    Is it possible?
    Thanks & Regards
    Poomani Sankaran

    Hi Poomani,
    According to your description, my understanding is that you want the drill down to show only the required dimensions.
    Here is an article about this issue, please check if it is useful:
    http://denglishbi.wordpress.com/2012/03/28/using-perspectives-with-performancepoint-services/
    In addition, as this issue is related to SSAS, I suggest you create a new thread on SQL forum, more experts will assist you with this issue.
    SQL forum:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Chart drill-down support

    Hi, guys
    Is chart drill-down supported for the web app  in CR 2008/CR XI  and how is it activated ?
    regards, TST

    Hi
    I'm  using CR XI R2 for the web site
    The drill-down feature works fine in the preview mode in CR 2008 but not in the CR viewer. at the web site.
    I sort out the way to activate the zoom feature by set autodatabind  property to false.
    But I´m not able to activate the drill-down feature for the chart at the web site
    regards, TST

  • SharePoint PPS Hide null or blank value in performancePoint chart drill down.

    Hi,
    I am using SharePoint Performance Point Service. Hide null or blank value in Performance Point chart drill down.
    Thanks & Regards
    Poomani Sankaran

    Hi Hyaron,
    I am unable to reproduce the issue in my test environment. How did you add the drilldown feature? Were you doing that by setting visibility of the column or of the group? Please ensure to add the drilldown functionality by set the visibility of the workgroup
    from the Grouping Pane in the Report Designer.
    How did you add the Interactive Sorting on the headers of the two columns? Based on the drilldown functionality, the Interactive Sorting on the second column doesn’t work. So, you can move the Interactive Sorting on the second column. When configuring the
    Interactive sorting on the first column, you should set the parent group to sort, and sort by the field that the parent group groups by.
    Hope this helps.
    Regards,
    Mike Yin
    TechNet Community Support

  • Limits the PerformancePoint Analytic Chart drill down dimensions

    Actually my requirement is, how to limits the Performance Point Analytic Chart drill down dimensions.
    I am using SQL Server 2008 R2. Is it possible to achieve it in SQL Server 2008 R2 without 
    Perspective?
    I should not change my system from SQL Server 2008 R2 to SQL Server 2012 for
    Perspective.
    Is there any other way to achieve it.
    Thanks in advance.
    Thanks & Regards
    Poomani Sankaran

    Hi Poomani,
    In your scenario, you create a Performance Point Analytic Chart, now the requirement is that limit the Performance Point Analytic Chart drill down dimensions, right?
    As you know, to limit the drill down dimensions, we can created a perspective in the cube that limited the visible dimensions to those couple of dimensions. In your scenario, you said that you need change my system from SQL Server 2008 R2 to SQL Server 2012
    for Perspective, right? We can create a Perspective on SQL Server 2008 R2 version. The links below might help.
    http://technet.microsoft.com/en-us/library/ms345316(v=sql.105).aspx
    http://www.jamesserra.com/archive/2011/06/performancepoint-wish-list-change-a-datasource/
    If I have anything misunderstand, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Reboot before sysprep when I want to add an installation task with Office 2013

    Hi all, I want to buid a reference computer with a genuine Win7 wim file, correct drivers, uptodate patches, and usefull applications. So I use a "Build and Capture Task Sequence". The new reference image captured, I can use it with WDS or a media to

  • Is Verizon going to offer the 32GB and/or 64GB models of the Galaxy S 4?

    I have been waiting for months for information about this phone.  It has come out incrementally in very small bites and, slowest and most grudgingly of all, from Verizon.  Now, finally, Verizon has offered pre-order of the 16GB model.  I don't want t

  • Google Search box

    hi all.. anyone know how to not save recent searches in the google search box.. Next to the magnifying glass there is a down arrow that shows recent searches when you click it. thanks for any input.

  • Best way to achieve multiple paths with quizzes using Captivate 6?

    I'm looking for the best way to achieve multiple paths and quizzes using Captivate 6. Here is the scenario: The learner watches general slides 1 – 3 and then chooses between Path A, Path B, or both paths combined.  If they choose Path A then they wat

  • Dragging guides out crashes Indesign CC

    Hi, I've just updated to Indesign CC and whenever I try to drag guides out onto my document the programme crashes. Any ideas? I am on a Mac Pro 3.1 running Mountain Lion with a quadro 4000