Charting effects issue

Hi everyone,
I'm writing some software that makes use of Flex charting. I
really like the look that the Flex SeriesZoom class provides, but I
am having a problem--this works fine when I change the
dataProvider, but I am having trouble in cases where I try and
change the series itself. For example:
quote:
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
>
<mx:Script>
<![CDATA[
import mx.charts.series.LineSeries;
import mx.collections.ArrayCollection;
import mx.events.FlexEvent;
import mx.charts.chartClasses.Series;
[Bindable]
private var expensesAC:ArrayCollection = new
ArrayCollection( [
{ Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 450,
Net: 4206},
{ Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600,
Net: 4523},
{ Month: "Mar", Profit: 1500, Expenses: 500, Amount: 300,
Net: 2936 },
{ Month: "Apr", Profit: 1800, Expenses: 1200, Amount: 900,
Net: 5892 },
{ Month: "May", Profit: 2400, Expenses: 575, Amount: 500,
Net: 3478 } ]);
private function changeData():void{
var ser:Array = [];
var ls:LineSeries = new LineSeries();
ls.yField = "Net";
ls.displayName = "Net";
ls.setStyle("removedEffect", eff);
ls.setStyle("showDataEffect", eff);
ls.setStyle("hideDataEffect", eff);
ls.setStyle("addedEffect", eff);
ser[0] = ls;
linechart.series = ser;
]]>
</mx:Script>
<mx:SeriesZoom id="eff" relativeTo="chart"
elementOffset="20" minimumElementDuration="200"
duration="1000"/>
<mx:Panel title="LineChart and AreaChart Controls
Example"
height="100%" width="100%" layout="horizontal"
click="changeData()">
<mx:LineChart id="linechart" height="100%" width="45%"
paddingLeft="5" paddingRight="5"
showDataTips="true" dataProvider="{expensesAC}">
<mx:series>
<mx:LineSeries yField="Profit" displayName="Profit"
showDataEffect="{eff}" hideDataEffect="{eff}"
removedEffect="{eff}"/>
<mx:LineSeries yField="Expenses" displayName="Expenses"
showDataEffect="{eff}" hideDataEffect="{eff}"
removedEffect="{eff}"/>
<mx:LineSeries yField="Amount" displayName="Amount"
showDataEffect="{eff}" hideDataEffect="{eff}"
removedEffect="{eff}"/>
</mx:series>
</mx:LineChart>
<mx:Legend dataProvider="{linechart}"/>
</mx:Panel>
</mx:Application>
In the above case, the swf throws an exception upon clicking
on the chart which looks as follows:
quote:
RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/addChildAt()
at mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::$addChildAt()
at mx.core::UIComponent/addChildAt()
at mx.effects::EffectManager$/::removedEffectHandler()
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()
I assume that this is because I originally have 3 LineSeries
items and then I change it to only 1. I had thought that I should
be able to switch the series without problems by simply setting my
chart's series property, but apparently that does not work. What
would be the proper way of doing this?
To continue, I decided to try out creating three new
LineSeries to replace the old ones so that I could test the
removeEffect of the old ones. I no longer got the exception above,
but instead of zooming out, the series zoomed in and then
disappeared off the chart. I attempted using the dispatchEvent(new
Event("hideData")) for each series before removing it in hopes of
getting them to zoom out instead, but no dice. How could I get my
series to zoom out upon being removed from the graph?
Any help would be more than welcome. Thank you!

In the first case you might try emptying the array first:
linechart.series = new Array();
Or possibly adding the new line series as a child without
touching the series array directly:
linechart.addChild(ls);
As the second problem, I was hoping there would be a
dataChange event you could key into, but it doesn't look like
it.

Similar Messages

  • Multiple chart effects conflicting with each other

    Hello all!  
    Issue Description:
    -  Two chart series of two different series types (mx:ColumnSeries and mx:LineSeries)
    -  Trying to run two different chart data effects (mx:SeriesZoom and mx:SeriesSlide) simultaneously 
    -  Having some sort of conflict
    My application is more complex than this, but this is a good example of the type of thing that's happening on our chart when the data provider changes:
    1)  Please compile and run the following code.  
    2)  Then click the button at the bottom of the application.
    3)  Notice how after the line series gets removed, it appears for a second, then disappears without using its hide and show effects.  Then it reappears, but this time using the appropriate chart data effect.
    Can anyone tell me how to fix this?
    Thanks,
    Anton
    -----------------------------   THE CODE:  -------------------------------
    <?xml version="1.0"?>
    <!-- charts/MultipleSeries.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"
    height="100%">
      <mx:Script>
        <![CDATA[
             import mx.collections.ArrayCollection;
            [Bindable]
            public var SMITH:Array = [
               {date:"22-Aug-05", close:42.87},
               {date:"23-Aug-05", close:45.74},
               {date:"24-Aug-05", close:48.77},
               {date:"25-Aug-05", close:44.06},
            [Bindable]
            public var DECKER:Array = [
               {date:"22-Aug-05", close:49.59},
               {date:"23-Aug-05", close:45.3},
               {date:"24-Aug-05", close:43.71},
               {date:"25-Aug-05", close:47.88},
            public var year:int = 1;
            public function changeProvider():void {
                if (year == 2) {
                    lineSeries.dataProvider=DECKER;
                    colSeries.dataProvider=SMITH;
                    b1.label="View Second Year Data";
                    year=1;
                } else {
                    lineSeries.dataProvider=SMITH;
                    colSeries.dataProvider=DECKER;
                    b1.label="View First Year Data";            
                    year=2;
        ]]>
      </mx:Script>
      <!-- Define chart effects -->
        <mx:SeriesSlide 
            id="slideIn" 
            duration="1000" 
            direction="right"
        />
        <mx:SeriesSlide 
            id="slideOut" 
            duration="1000" 
            direction="left"
        />
        <!-- Define chart effects --> 
      <mx:SeriesZoom id="zoomOut" 
         duration="2000" 
         minimumElementDuration="50"
         elementOffset="50" 
         verticalFocus="top" 
         horizontalFocus="left"
         relativeTo="series"
      />
      <mx:SeriesZoom id="zoomIn" 
         duration="2000" 
         minimumElementDuration="50" 
         elementOffset="-50" 
         verticalFocus="top" 
         horizontalFocus="right"
         relativeTo="series"
      />
      <mx:Panel title="Multiple Data Series" width="100%" height="100%">
         <mx:ColumnChart id="myChart"
            dataProvider="{SMITH}"
            showDataTips="true"
            height="100%"
            width="100%"
         >        
            <mx:horizontalAxis>
               <mx:CategoryAxis categoryField="date"/>
            </mx:horizontalAxis>
            <mx:verticalAxis>
               <mx:LinearAxis minimum="40" maximum="50"/>
            </mx:verticalAxis>
            <mx:series>
               <mx:ColumnSeries
                         id="colSeries"
                    dataProvider="{SMITH}"
                    xField="date"
                    yField="close"
                    displayName="SMITH"                   
                    showDataEffect="zoomIn"
                    hideDataEffect="zoomOut"
               >
               </mx:ColumnSeries>
               <mx:LineSeries
                         id="lineSeries"
                    dataProvider="{DECKER}"
                    xField="date"
                    yField="close"
                    displayName="DECKER"
                         showDataEffect="slideIn"
                         hideDataEffect="slideOut"
               >
               </mx:LineSeries>
            </mx:series>
         </mx:ColumnChart>
         <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>    
      <mx:Button id="b1" click="changeProvider()" label="View Second Year Data"/>
    </mx:Application>

    This seems to work, how cool!
    <mx:SeriesSlide 
        id="slideOut" 
        duration="1000" 
        direction="left"
        effectEnd="lineSeries.visible=false"
    />
    <mx:SeriesZoom id="zoomOut" 
        duration="2000" 
        minimumElementDuration="50"
        elementOffset="50" 
        verticalFocus="top" 
        horizontalFocus="left"
        relativeTo="series"
        effectEnd="lineSeries.visible=true"
    />

  • Custom Chart Effects

    Hello,
    I am interested in creating my own chart effects... I assume
    I will need to extend SeriesEffect (or SeriesInterpolateEffect,
    which is close to what I want to do), but I am not really sure what
    to do from there. What methods do I override? Does anyone know of a
    decent tutorial or example of this anywhere?
    What I am trying to do is get my data points in my bubble
    chart to leave trails behind them as they move. If you have any
    other ideas on how to do this without creating a new effect, that
    would help too!
    Thanks,
    Nathan

    Hi,
    I see your point. Not sure about an app for this but you can provide feedback to Apple here
    Carolyn

  • HELP! Illustrator CC Stained Glass effect issue

    Hello. I'm relatively new to Illustrator. I'm designing a pair of shorts and have come across a problem. I'm using the stained glass effect to give the shorts a reptile look over a gradient green to black 90 degrees. When I select the stained glass effect, the edges are white and black while the rest of the shorts are the green to black gradient. It's very frustrating why the color gradient does not run to the bleed lines. Can someone please help me? I have created this look in the past using Photoshop and had a bunch of uniforms made up for my customer. I need to make more, but my new supplier cannot use the photoshop file as he needs an editable file in vector. I'm trying to upload the image, but it's not working. The file is 3.6mb. Please help if you can, this is urgent.
    Thank you!
    Anthony

    Stained Glass is a pixel effect, so what's the point of using AI? And even if it wasn't, if there was gradation of some sort your supplier would have to use a printing process based on creating discrete halftones to capture all tones, not sharp contours. Really doesn't make much sense. Either way, make the object with the effect larger and constrain it with a clipping mask. The same would apply for importing a pre-made texture from PS. What you see are simply the edges of the object as AI processes them with all their appearance attributes and then you get all sorts of issues with overprint and such stuff, which is one more reason why using raster effects in AI not necessarily makes sense....
    Mylenium

  • Line Chart report issue in BAM

    Hi,
    I have a view from my database on Daily Sales.
    I tried to make a line chart report.I had the data object & plan created and run.
    I am facing some issues while making out:
    1)In Line chart it looks like "Summary Function" in chart is must.
    2)All the data values are overlapping on axis lines as well as chart area.
    Dont know how to get rid of this Summary function etc, i want lines to be drawn s per the records in the view.

    Use count as summery function, count the unique value in your record

  • Help: Column Chart Display Issue

    Post Author: ermiller
    CA Forum: Xcelsius and Live Office
    I have a chart that displays its data correctly 11 out of 12 times...and I can't seem to get the last one to work correctly. Here's the issue:
    I have a table of data that looks like this:
    REGION                                   GAIN                           LOSS                      NET
    ALL                                           =SUM(BELOW)          =SUM(BELOW)       =SUM(BELOW)
    REGION 1                                  10                               (1)                          9
    REGION 2                                  20                               (2)                          18
    REGION 3                                  30                               (7)                          23
    REGION 4                                  40                               (0)                          40
    I have a "Data Display" area that has the following formulas in it:
    CRITERIA                                   GAIN                           LOSS                    NET
    &#91;USER INPUT&#93;                           =VLOOKUP(&#91;USER INPUT&#93;,&#91;TABLE ABOVE&#93;,0,&#91;2,3,4 FOR EACH COLUMN&#93;)
    If the user enters 'REGION 1', 'REGION 2', 'REGION 4, or 'REGION 4', the data is displayed in the column chart perfectly. However, if the user selects 'ALL', the process doesn't work and displays 0s in each of the columns above.
    Does any one have any ideas on how to fix that issue or what could be causing it in the first place? I just noticed that the same thing occurs if I use a Grid component as well...even though Excel is processing the data accurately.
    Thanks in advance,
    Erik

    Post Author: debdeb
    CA Forum: Xcelsius and Live Office
    Hi,
    Without trying out your actual data, the first thing that comes to mind is that you aren't using all the options in VLOOKUP. I've discovered that Xcelsius requires all arguments even optional ones in many formulas but this isn't document). The last argument is TRUE (default) for the closest match, and FALSE for exact match. If the user can only enter from a set of values which are known to be in your lookup table, then either one will work but you should still specify this last argument.

  • Fade Effect Issue with table structure

    I have an existing HTML page with a table framework that uses
    CSS divs in some of the table rows. My SPRY data is currently
    wrapped in DIV tags within the table. I've discovered that the
    table is screwing up the fade effect in IE7. Is there any way I can
    get around this without removing the table and recoding the whole
    page in CSS? FYI...I using version 1.4. I'm not sure if 1.5 will
    fix this issue.

    Essentially the fade in fade out effect isn't working at all
    in IE. It's setup as a slideshow and uses the fade effect as a
    transition between the spry data. The slideshow works fine just
    without the fade effect. Everything works perfectly in Firefox
    though. I know this code will work as we have used it before, the
    only thing different is that I have my DIV with the SPRY content
    wrapped within a table cell and row. I've read that the TR tag
    cannot be used, but it's not exactly using the TR as an ID. Once I
    comment out the table, tr, and td tags, the effect works no problem
    so I know it is the table. I can't give you the URL because it's on
    our local network.

  • Major effect issues (after installing XAVC/XDCAM Plug-in)

    Hi all,
    I encounter major issues with applying effects and titles in FCPX (10.0.8).
    Already in preview (skimming) I get black screens and when I apply effects, they don't show or give a black or distorted picture. Also older projects are effected. For example; where I used 'cold aura' effects on some clips, they are all distorted now. In the event library aswell, some clips are black. When skimmed they show up and when the mouse pointer is gone, the clip is black again.
    I have this issues since I updated protools, FCPX and installed the XAVC/XDCAM Plug-in by Sony (PDZK-LT2)
    Anyone else have these problems? I'm really Looking for a solution, as I have to deliver to clients this week...
    Kind regards,
    Olafski
    (The Netherlands)
    Processor  3,2 GHz Intel Core i5
    Geheugen  8 GB 1600 MHz DDR3
    Videokaart  NVIDIA GeForce GTX 675MX 1024 MB
    Software  OS X 10.8.3 (12D78)

    Olafski wrote:
    …  Unfortunately I have no Pro Apps-folder in …
    there are TWO locations for a Library/two Libraries …
    one in your 'user'-folder
    another one in toplevel/'Computer' ....
    check both to find the Pro Apps folder .......
    ==edit==
    wow I missed the complete last half hour of your conversation .....
    time-warp??

  • Adobe After Effects Issues

    Hello I represent the graphic artists of the multimedia department at the USPTA (United States Professional Tennis Association). We do a show that airs on the Tennis Channel called, "On Court with USPTA" and "Sweet Spots".
    We have just made the switch over to HD and are working on PCs (Dell Precision T3400 Work stations) I am running Adobe After Effects CS3 and I am running into several issues and problems with the software. I am doing full screen HD graphics, Lower thirds in HD, and even HD video overlayed with Graphics. Some or most have motion, and I even do 3D text in some. I am running into problems of the software crashing, locking up or bogging down reletivly quickly. I can barely RAM preview anything longer then 3 seconds and if it has audio you can just forget the RAM preview. I was wondering if those of us who do graphics on PCs if their is a way to speed up the software, or an update or even something in the prefences that could speed up it up and stop all the crash's I am getting.

    >and I have tried the multiprocessing and nothing changed.
    MP won't do anything on such a system. Simply not enough RAM. Let truth be told, the only real environment that is suitable for MP as AE employs it, are 64bit operating systems (XP64, Vista 64).
    As for your other issues - RAM previews can be extended by lowering the comp resolution to Half or Quarter. It's in the nature of the beast - only the frames that fit into RAM can be previewed and the larger the frame, the less of them fit. There is no way to circumvent that. Your only alternative is to enable the disk cache and have AE store rendered frames on your harddrive. this may allow you to use spacebar playback for some segments rather than having to build RAM previews again and again, but it hinges somewhat on the project structure and how working on other segments of the graphics may invalidate cached frames and layers.
    Likewise, audio will consume additional memory and further reduce the available duration. It should however not completely screw this functionality, so I can only assume you have a config problem. Therefore check your system's audio settings and the prefs in AE. Ideally, the sample rates and things should match the audio format used in your project and all fancies such as Virtual Surround or acoustic effects be turned off to prevent delay. It also helps to work with uncompressed audio - even though AE has gotten better at handling MP3 et al, it still prefers PCM audio.
    Lastly, some similar things do apply to certain compressed video formats - if they use MPEG and its derivatives, AE may need to conform it prior to use and this may cause further hiccups. Using different capture methods and CoDecs may help to prevent that.
    Mylenium

  • WebI Horizontal stacked chart formatting issue

    I have created a stack chart report and I have labels defined in the X - axis. We have the issue with the gap between the X - axis line and the labels. We would like to know if we can reduce this gap between the axis line and the labels. I have attached the sample image below for your reference.
    Edited by: Madan Chellu on Aug 31, 2009 11:51 PM

    Not really.  I need to have stacked bars grouped.  For example, assume you had survey results.  For question 1, you had a bar with 20 disagrees, 5 neutrals, and 50 agrees.  For question 2, a bar with 10 disagrees, 2 neutrals and 30 agrees, and so on for say 10 questions.  This would be your stacked bar chart.  Now, say you had information spanning a number of years, 2008, 2009, 2010.  What I want is a group of stacked bars (3 one for each year) for Q1, then 3 more stacked bars for Q2 and so on.
    This is a combination of the grouped and the stacked bar charts.

  • 3D Chart effects in Illustrator CS3?

    Hi,
    I need to make some great looking charts for an annual report. I'd like them to be on a true 3D riser, like the chart has been rotated and had dimension. I've tried making the chart and using the 3D option filter in Illustrator, but I can't get the effect i want, plus it takes a long time to render. It renders too much...even the number on the graph. Is there a tool that can render charts in Illustrator, or a third party filter that will? Thanks!!!

    Personally I stay away from the graphic in Illy (and I stay away from all 3d charts...).
    Creating the charts in a more advanced software, and then moving them to Illy gives me more power - but you lose the connection with the data (which you would anyways as soon as you expand it).
    Try e.g. Excel or Golden Software's Grapher (my tool of choice), then just select the chart and paste it into Illy. I use bright primary colors for all elements, which makes it easier to separate them to separate layers afterwards.

  • MTA - CNMT Chart display issue

    hi All,
    I am having issue displaying all the 'Milestones' associated to a Network in CNMT.
    Milestones created are checked with 'Trend Analysis' checkbox in 'Milestone - Basic Data' tab.
    The activities are 100% confirmed and the Actual date of the activity is copied over to 'Actual date' field for the Milestone.
    I checked the graph axis to display the 'Date range' which falls within the 'Actual Dates' of Milestones. It is showing only 'One' milestone, but not others (there are 2 more milestones which fall in the same date range and the activity is 100% confirmed).
    Please suggest if I am missing something here.
    -thnx in advance

    Yes, I did create a new project version and Saved it Via CN41. The Data has been refreshed via Edit -> Scope of current data -> All fields in CN41. The chart is still showing only 'ONE' milestone.
    Ex: The milestone currently being displayed in the chart is related to an activity which was confirmed on 26 Dec 2011. There are two more milestones related to two different activities which were confirmed on 30 Dec 2011, 10 Jan 2012. These are missing from the chart display.
    Moreover, the system displays the following message:
    Diagnosis
    You have restricted the number of milestones to be displayed by using operative milestone data.
    Procedure
    To display all the milestones for the project, choose View -> Historical milestones.
    SAP Library states:
    Historical curve:
    This standard view displays those milestones that have the MTA indicator set at the time of the current report.
    These milestones are displayed across the entire reporting period, also when the indicator was not set for them at an earlier reporting time.
    The Historical Curve is what I am assuming is needed to display all the Milestones on a particular reporting date. I checked in CNMT -> View -> Choose Dates, which shows the Milestones & Reporting times. I guess I am missing something else.
    Please advise.
    Edited by: sdn sap on Jan 13, 2012 8:40 AM
    Edited by: sdn sap on Jan 13, 2012 8:41 AM

  • Chart Design issue

    Hi guys,
    i have this issue , my bex report is
    0fisscper  material  NI (net invoicing)
    i need a chart with x axis as time and the materials in each catergory
    how could this be done (materials have to be in series) in Bex or WAD
    Thanks,
    Vijay

    Hi Realist,
    You can create in both Bex and WAD
    In Bex tool bar you have an option called Layout --> in that go to Attach Chart --> and then right click on chart you will see
    1.Chart Type --> You can pic different types of charts
    2.Source Data --> Here you can select Series and Add materials & remove other Key Figs
    3.Chart options --> gives you to customise the chart design by naming X and Y axis
    In WAD
    Go to Tools --> Wizard --> click Next --> select Chart --> Add your Query in Query View --> and go ahead with designing..
    If you want to see your chart in web or Portal then WAD will be the Better option
    Hope this helps,
    Thanks,
    Sudhakar.

  • Chart setup issue

    I have to make a chart that will show sales for item types for months as follows. The vertical will be some financial levels, that are hard coded.
    $100,000
    $20,000
    $10,000
    $1000
                     Total Apples      Total Oranges     Total Bannanas
    March 08
    March 09
    The total figures I have - I am not sure how to setup the amounts for the left side. The issue for me, it appears that the Chart only allows a break on a Group header field. I will need a break after showing March 08 and March 09, etc.
    The problem I am having is that the chart expert only shows one field for me to break on - the Customer name field. I need to break on month fields really. It also only allows one field across, not sure why it doesn't let you pick the fields you need.
    Would this work, if I setup a Subprogram with different groupings as needed just for the chart purpose?

    If you already have a month field then in Chart Expert go to Advanced and select the {month.field} on change of.  This will break by month.
    If you don't have a month field, then create a formula called @Month and code this:
    month({date.field})
    Follow the same steps as above for the on change of instructions.
    I hope this helps,
    Regards,
    Zack H.
    Edited by: Zack H on May 28, 2009 3:31 PM

  • OBIEE 11.1.1.5.0 Patch13832750 - Pie Chart 3D issue

    Hi,
    Since i apply the patch 13832750 I have an issue with 3D Pie chart.
    The chart is malformed, there are lines which fall outside the graph..
    I uninstalled the patch but the issue persists.
    Have you already see this problem?
    Thanks,
    Adrien

    Haven't seen this issue, but I may be able to help with two suggestions:
    1. NEVER use pie charts, they don't display information well
    2. Never add 3d clutter to any type of chart, it only makes the chart more difficult to process and understand
    Great source for information on this is Stephen Few at http://perceptualedge.com
    Hope this helps,
    Scott

Maybe you are looking for