Trouble Redrawing a Chart

I have a combination chart that has stacked columns and two line series. On one series, after the 7th LineSeriesItem, the data is all zero. My goal is to have the line series end at the last >0 data point.
I wrote some code that splices the data series. As I step through the code, I see that the series is spliced correctly, however, when I call invalidateDisplayList to force a redraw of the chart, I get a "Error #1010: A term is undefined and has no properties." error in the GraphicsUtilities.as code. It looks like the Flex code is trying to draw a line segment to a now deleted datapoint.
After I click continue, the chart is redrawn and the line segments are not drawn and the line series appears as I expect.
Can anyone help me figure out what is causing this error?
            //loops through chart series and will remove all items that are
            //zero from data series
            [Bindable]
            private var tempSeries:LineSeries;
            private function removeZeroItems():void {
                var mySeries:String = "Realistic Estimate";
                for(var i:String in chart.series){
                    //find mySeries in chart.series
                    if(chart.series[i] is LineSeries){
                        if(chart.series[i].yField == mySeries){
                            for(var j:String in chart.series[i].items){
                                if(chart.series[i].items[j].yValue == null){
                                    //remove current item
                                    //trace(chart.series[i].items[j].xValue);
                                    //having only j specified in splice
                                    //will remove any items after it
                                    chart.series[i].items.splice(j);    
                            tempSeries = new LineSeries();
                            tempSeries = chart.series[i];
                            chart.series.splice(i,1); //remove series
                            chart.series.push(tempSeries); //add temp spliced series
                            chart.invalidateDisplayList(); //causes error
                this.updateDisplayList(this.unscaledWidth.valueOf(),this.unscaledHeight.valueOf());                

Sarah,
I don't have an answer, but I have a suggestion that my help you find the answer.
In my experience, I have first set up a cross-tab - via "Insert menu bar - Cross-tab...".
This gives me the ability to "analyze" my data - including the generation of percentages.
Then, I do a right-click on the "Cross-tab" object, and select the "Insert Chart...".
This builds a "chart" from the "cross-tab", and then all is left is the "formatting".
I hope this helps!
Dan Welfle

Similar Messages

  • Trouble creating pie-chart

    Post Author: ujain82
    CA Forum: WebIntelligence Reporting
    Hello,      I am having trouble creating pie chart. I am calculating different count values from different data providers. Now I need to create a pie chart showing the proportion for each count as I can find the percentage of count.
    My scenario(task):I need count on persons depending on searching on complaint text. So for each search I have a data providers. Like this I am searching for 8 criteria. So I have different data providers for each search. I get person counts from each criteria.
    Now I want to show it in a pie chart. But I could not make it done.Does anyone faced a similar problem? How do I solve my problem?
    Any comments?

    Post Author: Chris Chen
    CA Forum: WebIntelligence Reporting
    Hi ujain82,
    Because you have some data provider,so some metric may have no conjunction,i suggest that you creat variables to reuse them.

  • Having trouble formatting excel chart using Chart Wizard command.

    Problem Description :
    Trying to create an excel chart derived from an excel spreadsheet. Having trouble understanding the parameters to format in the Chart Wizard function to get the desired results. There are no error messages, just chart is not what expected.
    Goal:
    Chart with temperature on the left, y-axis. 3 lines on the graph for min meas temp, avg meas temp, max meas temp.
    Bottom x-axis should contain year/month values.
    Chart Wizard command:
    status = ExcelRpt_ChartWizard (chart_temperature_handle, chart_data_worksheet_handle, D1:G3, ExRConst_GalleryLine, ExRConst_Rows, 0, 0, 0, 1, "Temperature Stats", "Year/Month", "Temp F", NULL)
    NI Software : LabWindows/CVI version 8.0.1
    NI Hardware : None device
    Driver Version :
    OS : Windows XP
    Customer Information :
    Mary Claflin
    Technology Kitchen Corporation
    US
    [email protected]
    Ph: (512) 965-4722

    Hi Mary,
    Looking at the Chart Wizard within Excel, it appears as though the only
    chart type that allows us to give a series of values for our XAxis
    would be the XY Scatter plot. There IS an option for this when using
    the CVI Excel Report function calls (specifying
    ExRConst_GalleryXYScatter for the plot type).
    However, it appears that there are not any Excel report chart functions
    available in CVI to specify anything other than the general "series"
    object. When this object is sent through as a variant data type to
    Excel, Excel appears to automatically convert this single object into
    separate data series. This is because Excel is not immediately aware
    that we are attempting to use a Scatter plot, and thus must convert
    each column into a separate series. There is no object defined in the
    Excel report that would be able to handle the "Xseries" and "Yseries"
    option that are seen in the chart creation wizard within Excel. Thus,
    we have no way of specifying a different set of data for our XAxis.
    It appears as though, at least for our own CVI functions, that there is
    no way to accomplish your goal. Since CVI is based around C - we CAN
    call any ActiveX client registered on the system. Because of this, we
    should be able to talk with Excel directly without the help of the CVI
    Excel Report functions, although this may be more difficult.
    I haven't been able to find any specific C example code, but here is
    the Excel Object Model on which calls to Excel will most likely be
    based:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrconexcelobjectmodeloverview.asp
    Sorry for the inconvenience Mary.
    Dan Weiland

  • Trouble with Org Chart

    Hello Visio/Sharepoint Experts
    I created an org chart on visio 2010  with only the executive team that I plan to publish on Sharepoint 2010.
    However, I need help. Take for example John Smith, he is a director and has 15 people on his team. Only John will be visible on the org chart. The rest of his team will only be visible when someone clicks on John’s name, a box with the 15 team mates appear
    next to John’s name.
    So, in short I want to create a hyperlinked box only visible when someone clicks on John’s Name.. I don’t want the box to open in a new page/window. Is it possible?
    Thank you

    Hi,
    According to your description, my understanding is that you want to hide the sub team in the ORG chart until you need to show it.
    Please try to right click the "director shape">Click Hide subordinates.
    If there is a sub team hided, it 'll show a small icon in the right bottom. Just right click shape> Show subordinates
    Regards,
    George Zhao
    TechNet Community Support

  • Trouble with Star Chart(s)

    I have loaded both the Google Sky Map and Star Chart.  I've used both of these successfully with a Thunderbolt and a Droid (One) - but with the Razr the azimuth does not change when the phone is re-oriented.  Elevation appears to work, but the azimuth moves randomly when the phone is turned from - say - north to east.  It would appear that the compass orientation function is off.
    Has anyone else had this problem?  Thanks.

    I'm having the exact same issues...tried multiple apps, uninstalling and reinstalling each of them, seeing they were the problem, but when they all react the same way it can only be the phone. The most ironic thing is that "space junk" actually appears to show my phone oriented in the correct wa y(has a separate view option for this) that makes the app appear that it should work properly and moves correctly according to the satellites. Yet as you rotate from north to west/east/etc...the phone lags then all of the sudden skips almost 180 degrees. Would love for them to fix this bug, works fine on all my other friends' droid phones, just not this one.

  • How do I get my chart to redraw after the onitor comes out of screen saver mode.

    My program runs 24/7 monitoring an exhaust stream. The program usually nruns in the background. When the chart display is called up the display is not correct. this also happens when the screen saver has been on. How can I get the display to redraw the chart to diaplay correctly.

    > My program runs 24/7 monitoring an exhaust stream. The program
    > usually nruns in the background. When the chart display is called up
    > the display is not correct. this also happens when the screen saver
    > has been on. How can I get the display to redraw the chart to diaplay
    > correctly.
    This usually happens when the popup panel is not in memory and doesn't
    know that it will ever need to be used. At compile time, LV optimizes
    your code to leave out display calls and to leave out front panel data
    copies if it thinks they will never be seen.
    In the days before property nodes and invoke nodes, LV always got this
    guess right, but these days it is possible to fool it. If you have a
    subVI with no property nodes, and it doesn't use the VI Properties
    to
    Open panel on call, LV may optimize out the chart's buffer accumulation.
    Then when the window opens, the buffer data is empty or old.
    If you place a property node on the diagram for the popup panel, even
    just to read the value of the panel visible property, LV will leave the
    accumulation code in and the chart should have correct values when the
    panel opens.
    Greg McKaskle

  • Trouble receiving email via charter

    I'm having trouble getting my charter email via wi-fi in one particular location but not other locations.  The reponse I receive on my iPad is that my email address or password are incorrect when both are correct.  I've deleted the accounts and readded them with no luck.  Any suggestions from the iPad community?

    It could be that the one network has blocked the ports needed for that email account.

  • How to Display "Zero Value" or "No Data" Items in a Chart

    Hello All,
    I need to create a chart that displays the number of jobs per hour over a 24 hour period.  I can determine the hour the job was created and I have no trouble making a chart with a count of jobs per hour.  The problem is that I also want to display the hours that have no jobs on the chart.  I am currently converting all hour data to the text format "00:00".  For example, 9:35am would display as 09:00 (as would all jobs between 9:00am and 10:00am) and this is the value that I want displayed under each bar on the chart (x axis).
    Any suggestions would be much appreciated.

    Thanks V361,
    I was hoping to avoid adding a table to the DB with each hour.  I thought there might be a tricky way using arrays that I would be able to accomplish the report.  I have done a test using Excel and I can get the results that I wanted, so I will now probably add the table to the DB.
    Thanks for your input.

  • Problem creating pie-chart

    Post Author: ujain82
    CA Forum: Desktop Intelligence Reporting
    Hello,      I am using BO 6.1
    I am having trouble creating pie chart. I am calculating different count values from different data providers. Now I need to create a pie chart showing the proportion for each count as I can find the percentage of count.
    My scenario(task):I need count on persons depending on searching on complaint text. So for each search I have a data providers. Like this I am searching for 8 criteria. So I have different data providers for each search. I get person counts from each criteria.
    Now I want to show it in a pie chart. But I could not make it done.Does anyone faced a similar problem? How do I solve my problem?
    Any comments?

    Attached is part of the sub-vi where I am having the problem. I tell Excel which cells to use for the pie chart. If I use "Source 1" (8 cells) the pie chart is created successfully. If I use "Source 2" (14 cells) the pie chart only uses the first cell. I can go to the Excel file and select all 14 cells manually and the pie chart displays correctly. I also tried 9 cells with no luck, it seems that 8 cells are the limit. I am trying to find what is causing the limitation. I have also attached the sub-vi. 
    Attachments:
    Pie chart block diagram.JPG ‏61 KB
    M-51539-001 Create Pie Chart.vi ‏108 KB

  • Displaying Zero Value in a Chart if there exist no database record.

    Hello All,
    I need to create a chart that displays the number of jobs per hour over a 24 hour period. I can determine the hour the job was created and I have no trouble making a chart with a count of jobs per hour. The problem is that I also want to display the hours that have no jobs on the chart. So in the hours where no job is created there is no database record.
    So inorder to show it in a chart  Zero values for a particular hour....how shd it be done if there is no zero values in the database  for a particular hour???? we dont have the flexibiltiy to  add a further table in the database..
    Any suggestions would be much appreciated.
    Thanks
    Regards
    Atul

    This is basically the same issue that is covered [here|Record selection issue in cross tab.;.
    HTH,
    Carl

  • X-axis chart

    I am having trouble clearing a chart that read in a waveform from a analog daqmxbase read vi. I wired an empty array to the history node of the chart. It clears the the waveform on the chart, but it does not reset x-axis values to zero. It keeps starting from the last run. As of right now, the x-axis starts at 3196366917 if i start another run. I tried wiring the history node as a 2-D empty array, but the history node will only accept a 1-D empty array. Could someone please help me out? Thanks

    Your formula express vi generates dynamic data that contains the current timestamp, which is then used by the chart for the time axis. You need to convert it back to a single scalar to loose that extra information.
    (see attached modification, LabVIEW 7.0)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    analogresetMOD.vi ‏228 KB

  • How to update a chart when the array is updated

    Hi I am using an array to populate a chart in FB3 and having trouble updating the chart when the array is updated.
    Chart
             <mx:Label id="archiveTitle" x="10" y="10" text="Current Archive " fontSize="14" fontWeight="bold"/>
             <mx:PieChart id="chart" height="130" width="300" color="0x323232"
                showDataTips="false" dataProvider="{ratingAC}"  y="22">
                 <mx:series>
                    <mx:PieSeries field="Rating"/>
                </mx:series>
            </mx:PieChart>
    Array + Vars
             [Bindable]
             public var newsDB:ArrayCollection = mx.core.Application.application.newsDB as ArrayCollection;
             [Bindable]
             private var positive:int = 1;
             [Bindable]
             private var neutral:int = 0;
             [Bindable]
             private var negative:int = 0;
             [Bindable]
             private var ratingAC:ArrayCollection = new ArrayCollection([
             { Rating: 1 },  // no data
             { Rating: positive }, // [0] positive
             { Rating: neutral }, // [1] neutral
             { Rating: negative }  // [2] negative
            private function init():void{
                   buildChart();
                   newsDB.addEventListener(CollectionEvent.COLLECTION_CHANGE, test);
                   newsDB.addEventListener(CollectionEvent.COLLECTION_CHANGE, buildChart);
            private function test(e:CollectionEvent):void{
                 trace("array changed");
                 positive = 20
            private function buildChart(e:CollectionEvent=null):void{
                 for(var i:int; i<newsDB.length; i++){
                      if(newsDB[i].rateItem == 0){
                           trace(positive);
                           positive += 1;
                           //ratingAC.setItemAt(positive,0);
                           trace(positive);
                      if(newsDB[i].rateItem == 1){
                           neutral += 1;
                      if(newsDB[i].rateItem == 2){
                           negative += 1;

    Sorry, in my app I have an ArrayCollection of items from a news feed that the user has deemed important, and given each item a rating. The For loop will loop through the "newsDB" array and set the var accordingly (positive, negative, neutral). The variables are what is populating the arrayCollection (ratingAC). How would I either a) bind the variables to the ArrayCollection so that it updates when one has changed, or b) update the specific index in the array collection. When debugging, i notice that the variables are updating, but the arrayCollection is not.
    Thanks in advance!

  • Foreign characters in SVG charts

    Hi!
    I am again having some trouble using SVG charts.
    I want to label the values with descriptions from a table. These descriptions often contain german umlauts. The resulting graph (line type) shows no values at all and the labels show a square character for each "ä" (ä) and after an occurrence of "ö" (ö) all of them are cut off completely. (I guess that's why I don't see any values at all - the parser stops when encountering an unknown character.)
    A quick look at the XML specification tells me, XML processors must accept UTF-8 or UTF-16 characters. IOW, umlauts should not be a problem when encoded correctly. But I don't know whether the Adobe SVG Plugin I use adheres to that or not. Another possibility would be, that the font used to render the graphics does not contain umlauts. But that wouldn't explain why I don't see the values.
    So, what encoding does HTML DB use for XML output? Does anyone know who is to blame? Of course, it could be me too.
    My workaround will probably be a view which replaces the umlauts with ASCII transcriptions. But I would find that pretty ugly because I already have a bunch of these. Any other possibilities to circumvent this problem are welcome.
    J.

    Additional info:
    the XML file I can copy from the browser shows a translation of the umlauts like this:
    Getr & # x 4 B A B ;e (spaces only for escaping; formerly Getränke)
    When an "ö occurs, the remaining XML tags are being closed and the file ends:
    K&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt; (should have been Körperpflege)
    So with my smattering of XML I guess the output of HTML DB is wrong and I have to replace umlauts 'manually'. Please drop a line if you can confirm or confute that.
    J.

  • Chart problems, upside down test

    I'm using Keynote 3.0 and I'm having some trouble with 3D charts. First, once I enter the data the text for the labels of the fields appear upside down once I view them.
    Second, I can't see 3D charts unless I'm in slideshow or Light Table view.
    Any advice? I'm about ready to pull my hair out!

    I'm using Keynote 3.0 and I'm having some trouble with 3D charts. First, once I enter the data the text for the labels of the fields appear upside down once I view them.
    Second, I can't see 3D charts unless I'm in slideshow or Light Table view.
    Any advice? I'm about ready to pull my hair out!

  • Apple Mail blocks Charter email, which blocks Apple mail

    I am running 10.6.8 on a 2008 Mac Pro. I was using MS Entourage as my email program. I want to upgrade to Lion/Mtn Lion, but my old MS Entourage or other Office programs won't work on that, so I decided to start using Apple Mail (version 4.6)
    I get my email thru my ISP, Charter.net,
    When Apple Mail is OPEN it will not connect to Charter email, and Charter email will not display or recieve or send any email, nor will Entourage (POP) or a MS Outlook (trial version). Apple Mail says it "cannot connect to the IMAP server," and it "cannot connect to the SMTP server."
    I have set up Apple Mail correctly according to Charter: IMAP port 143, SMTP port 25, no SSL etc (default email reader Entourage, but I've tried Mail, Outlook, etc. …no change in my problem)
    When I quit Apple Mail, the others will immediately access/send emails.
    The problem seems to be that for some reason Apple Mail blocks Charter mail from connecting, but since that is where I get my email, Apple Mail is blocking itself, Entourage and Outlook from connecting to the IMAP/SMTP servers, therefore no mail service.
    The strange thing is that now and again Apple Mail WILL connect—briefly—and mail will come in/go out, but then drops offline again.
    I've been on the phone with Charter for a couple hours and had a service tech here this morning for an hour, but everyone is stumped. Of course none of them are very Mac-savvy, so that doesn't help.
    Can any of you help?

    I've been having exactly the same trouble with my Charter E-mail Accounts.
    I first use two of my existing Charter E-mail Accounts (which I have never used in years!). Set them up in Apple Mail (Snow Leopard 10.6.8, on my MacPro 4.1) as POP Accounts!
    They did work sometimes, but now I can only receive mail.
    Set up a new Charter E-mail Account, and used that to Set Up in Apple Mail as IMAP Account. It does NOT work at all, period, either way.
    I've been on the phone with Charter Tech Support many, many, many times, for many hours, but nobody has a clue. They tell me to check their webpage for Set Up, which I don't need because I've been through the Set-up Procedure so many times already.
    Then they tell me to call Apple Tech Support, which I cannot afford.
    So, now I'm back to using my old DreamHost E-mail Accounts, which work just fine, after their Tech Support helped me to resolve some issues. They had me open Terminal, then Keychain. I tried all three Keychain Methods, which resolved the issues with DreamHost E-mail.
    I'm going to try setting up my G-mail Account in Apple Mail and see what happens .....

Maybe you are looking for