Add a data series dynamically in charts

I am trying to add a data series dynamically in a chart but
it does not seems to work. Here is the sample code. Any idea?
var line1:LineSeries=new LineSeries();
line1.dataProvider=[something];
line1.displayName="New data";
chart.secondSeries.push(line1);
It works if I do the following but I don't want to remove
other series already there.
var arr = new Array();
chart.secondSeries=arr;
var line1:LineSeries=new LineSeries();
line1.dataProvider=[something];
line1.displayName="New data";
arr.push(line1);

I see...i don't know why the chart is not refreshing itself
in the next keyframe after you added another series. You can also
try to put the statement:
[myChart.series[(myChart.series as Array).length] = your new
ColumnSeries object goes here.]
in a new frame by doing doLater();
Apparently an asigninment statement on the series array does
the trick. If you don't like that approach, you can also try to
invalidate the display object, so that a refresh is forced.
-george

Similar Messages

  • Add data series to excel chart

    I have an envelope on a chart in Excel.  I would like to add same test data to the chart.  I can open the workbook and get my data on a worksheet, but can't figure out how to add the data series to the chart using ActiveX.

    Here is some vi's that I forgot that I had for excel. In it is one vi in particular called create chart.vi have alook at it. I'm sending you the whole llb. i have not tested them in LV 8 yet.
    hope they help.
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    excel.llb ‏2092 KB

  • I want data series in Keynote chart to enter one at a time.

    In older version of Keynote, data series can enter one at a time. In version 6.2, seems all series enter at once. Can different series be made to enter one at a time in Keynote 6.2?

    Select the chart
    Inspector > Animate > Build IN > Add an Effect
    choose an effect
    in the Delivery drop down menu select;   By Element in Series

  • Cant add more data points to numbers chart

    I have a 2 axis 2D graph. I would guess i have about 150 data points along the y axis for both lines on the chart. I have been updating the chart each week no probem with new data points. However today, i can only seem to add a few more points - when i try to add past a certain amount of data points, the last 20 or so data points are removed from the series?
    It simply will not allow me to add more data?
    Any help on this matter would be greatly appreciated as the charts are for use in my business

    Hi Jerrold, thanks for the reply.
    I dont have category labels. I have a 2 axis 2D chart, with a line series and an area series on the chart. I add new data to the chart each week by clicking on either the line or the area series on the chart, then going to my data table beside the chart, and by holding apple command button and clicking on the relevant cells to add to the charts. As of this weeks adding, it starts of as usual, adding the cells to the line and area series, and thus adding data onto the existing chart and extending it out to the right, as it normally would. However, i can only add a certain amount of new cells (data points) to either the line or area series. When i go to add more, a very strange thing happens. The series switches from all the cells that are highlighted blue, to another table i have on the same document??? If i look at the Inspector in the Data box under the series tab, the data goes from the typical 'Table 1 :: D18', (highlighted in blue, to the following weird data point : 'D38,SFTGlobalID_CB7D88F601784CAC8DD283ECA59CFB41 :'
    Its worth noting that although i an working on a brand new macbook pro, numbers has crashed on me a number of times when adding large amounts of data to the chart The table has 1,120 rows, and 11 columns. Only 1 in every 5 or so rows are plotted (on y axis), so roughly 200 or so data points for both line and area chart are plotted. And only 1 column is used for each chart. Thus i have 11 charts on the one numbers document. Is it a case of too much for numbers to handle?
    I have just deleted all the y axis data for the area series for one chart, and added all the data from the whole table again, (rather than just adding this weeks to last weeks, which is where i saw the problem in the first place) to see if it made a difference. But none. Once i got to a certain point, if i add one more cell data point to the chart, the exact same thing happened as above - the highlighted data switched from what i had been highlighting the whole way down the table, to an entirely different table in the same workbook.
    Any ideas would be greatly appreciated.

  • Showing data series for two charts on one

    Hi
    I need to represent 2 sets of data on one chart. The first is a linebar chart and the second is a scatter chart. This can be done in Excel by adding multiple named data series.
    Is this possible with crystal report 2008.
    Thanks

    I'm a bit late to discussion, but this is I think the most relevant post I could find.
    I have the same problem - displaying multiple data series on the same chart (line chart or scatter by date).  My problem is complicated by the fact that number of series also depend on the data point.
    Essentially I need to plot readout of test in a monitored room where different number of sites maybe tested depending on the room.  So one room might have three data readouts (three sites), and another five (five sites), and when charting by room, one chart will have three series, and another five.  So even considering using overlapping transparent charts, there are issues of conditionally enabling/disabling the whole chart, of determining maximum number of charts (and room might have dozens of test sites) and also displaying appropriate legend(s).
    There must be a better way!
    TIA,
    Andrey.

  • How to add more data point in Pie chart

    The default data point for Pie chart is 5, how could I add more data  point, I notice that I can do assign the cell to the value under data in General tab property of chart pie, but, in the sample drill down, there is no value for that value, and it still has 6 data point.

    Hi DFW
    The sample file has got the spreadsheet range missing thats all.  Just add the range you need to your pie chart.
    Regards
    Charles

  • Overlapping of data series in Combo Chart

    Hi All,
    We are working on VC7.0
    I have three data series elements and I would like to display them in a combo chart with two columns and a line .
      ( 1.Actual Gross Turnover - Column
        2. Planned Gross Turnover - Column
        3. Actual Gross Turnover prior Year - Line )
    I tried with different options present there in Configure Element , but the two columns overlap with each other i.e the highest column is overriding the lower column.
    Can someone help me out in this ?
    Thnks,
    NR

    Hi Pasha ,
    yes, i am quite sure that bars are overlapping and checked with the 3 options you have mentioned.
    3. I have tried streching the graph horizontally but still the same display.
    2. I did moved to mouse to the edge points of bar .. it only mentioned one data series instead of two
    1. See if the db column contains NON-ZERO values ? ..
    I am not sure of it but when deploying the model in VC , i got a warning message saying " Zero fill is checked without Max length in field "Gross Turnover Actual " of entity " query name "
    Let me know, how this efffects the display and what do i need to do to resolve the issue .
    Appreciate your valuable inputs ...
    Thnks,
    NR

  • Data series / dynamic queries

    Hi,
    I've got the following problem:
    I want to create a stacked bar chart based on dynamic queries. The query I use for the first series is:
    select null link, kw label, sum (volume) value from testview
    where id = to_number(:P18_ID)
    group by kw
    order by kw
    P18_ID is an input field.
    The query works fine and the chart is also ok.
    But if I use this same query for a second series I get an empty svg canvas as result. Even worse: no matter what kind of query I use for the second series I never get a result unless I take the variable P18_ID away from the first query.
    For info: the view testview is based on a table created by a pl/sql function (using pipelined output).
    Any ideas. I really would appreciate a quick answer very much because this is part of a project and we are running out of time because of this error.
    Thanks.

    Hi Andy,
    first of all: thank you very much for your efforts.
    I've tried something like you said before and yes, it works (at least most of the times). The problem is I want to have the option 'show all'. That's why I can't use a' where' clause (because I can't work with 'like ...%' for it would sometimes give wrong results because of ids with the same prefix -> or am I wrong?)
    What I mean is:
    where id like '1'% -> results for item 1 (and 10,11,12,...)
    where id like ' '% -> results for all items
    That's why I want to use a pl/sql function. The function is tested and works fine. But if I try to call it form ApEx it works only if use constants instead of variables or if I have only one series.
    Is there something like a time limit? Like ApEx stops processing if the database isn't answering as fast as expected (because a function is slower than querying a table). I don't really think that could be the answer because it's very little data and I'm using a pipelined function... but perhaps...

  • How can I change the bar color (data series) in a chart on the iPad version?

    The number of different. colors used in a char (line, bar, pie, ...)  appears to be limited to six, quite short for my needs, however, Excel imported charts show up in the original colors (12)...  until I change the chart type (to get a homogenous look with the rest of the content) it gets changed to the 6 basic colors. Any clue on how to modify individual series colors? Note that I am asking about the iOS version.
    Thnx

    Does any one know how you can adjust the font size (point size) for the file
    names.
    Sadly enough you can't chance that, feel free to add a feature request for
    that, the more there ask for the bigger chance it will be realized.
    It would be great if the colors for the image name (background and font color)
    could be changed so the contrast could also be increased so it is also easier
    to read.
    And this the cheerful part, go to Bridge preferences General tap and play
    with the sliders for user interface and Image Backdrop until your satisfied.
    BTW using the slider for thumbnail size bottom right of the Bridge window to
    increase the thumbs does not increase the font but makes it nevertheless a
    little clearer.

  • Problem - over lie of data series in Line chart (Web Application Designer)

    Dear Experts,
    I have created a chart with below requiments from my user by using web application designer.
    1) Key Figure 1 (Chart type -> column )
    2) Key Figure 2 (Chart type -> column )
    3) Key Figure 3 (Chart type -> Line; color assigned -> BLACK;    Visibility: Visible)
    4) Key Figure 4 (Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    5) Key Figure 5 (Chart type -> Line; color assigned -> RED;         Visibility: Visible/Hidden)
    The line chart of Key Figure 3 must always appear in Front then others Key Figures.
    Then following by, Key Figure 4. Last is Key Figure 5.
    As I know the order of display line chart is infflucing by the order of Key Figure in structure by descending, likes below
    1) Key Figure 3 (Rank of front -> 3rd; Chart type -> Line; color assigned -> BLACK;    Visibility: Visible)
    2) Key Figure 4 (Rank of front -> 2nd; Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    3) Key Figure 5 (Rank of front -> 1st; Chart type -> Line; color assigned -> RED;         Visibility: Visible/Hidden)
    So, I have conflict on fulfilling these 2 request on assigning the color and control their visibility and lines over lie.
    Please advice me if you have any suggestion on controlling the lines order.
    Thanks!
    ~ GP
    Edited by: GP Poh on Jun 9, 2010 12:32 PM

    Hi Priya, thanks for input.
    I think I should further elaborate the problems. Thanks for your highlight.
    I have a lines chart with five key figures. So my chart will have five lines.
    Some lines from chart will overlap if the data are same.
    When overlapping of lines happens, I want to control the order of which series should be appear first.
    Likes below example,
    1) Key Figure 1 (Chart type -> column )
    2) Key Figure 2 (Chart type -> column )
    3) Key Figure 3 (Chart type -> Line; color assigned -> BLACK; Visibility: Visible)
    4) Key Figure 4 (Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    5) Key Figure 5 (Chart type -> Line; color assigned -> RED; Visibility: Visible/Hidden)
               KF1  KF2  KF3  KF4  KF5
    CW 1    30     30    80    80    50
    CW 2    40     50    90    60    90
    CW 3    70     50    90    90    90
    CW 4    80     70    70    90    70
    As you can see, there is overlap in these value.
    CW 1 KF3, KF4  -->80
    CW 2 KF3, KF5 --> 90
    CW 3 KF3, KF4, KF5 --> 90
    The order which i want the series should appear first when overlapping.
    - KF3 must appear on top.
    - Then, follow by KF5
    - Last is KF4.
    So now, i have no idea to control the overlap orders except adjusting the sequence of keyfigure from query.
    Feel free to give me any input!

  • Data Series Missing in the chart.

    Hi ,
    I have included 4 data series in the chart item.
    But its displaying only one data series in the output.
    that is its displaying only the last series. for eg
    i have included Data series1,Data series2,Data series3,Data series4,
    in output its displaying only Data series4.
    what settings i have to make inorder to get all the four data series to be displayed.
    Please Help.
    Thanks
    Tulsi
    Edited by: Thulasi ram on Jun 16, 2008 9:34 AM

    Hi,
    GML File is developed when you are developing your apllication.
    Procedure to Send the GML.
    Click on Model Menu bar in the Tool bar->select Export option
    Then Zip it and send to me
    Regards,
    Govindu

  • Formatting data series in charts

    Hello all,
    Need help in how to format data series used in charts(pie and bar). The charts show proper data but i need the amounts in the charts to be formatted using comma separators and $ symbol. Had tried using the NSTR functions and these work properly for table data , but not for charts.  Could someone pls conform if this is a known limitation with charts or is this yet another issue with ehp1 ? If so , are there any other alternatives for this approach.
    Vc version is 7.01 SP5 (ehp1)
    Any help would be appreciated.
    Rgds

    Did you try:
    OracleBI/web/app/res/s_.../popbin/
    EX:
    line.pcxml Look for <SeriesDefinition ...
    we modified the line width and a few other things. You'll have to modify all the pcxml files for all the chart types you want to customize.

  • SP2010: Different colors for chart bars in Chart Web part with single data series?

    Hello,
    I've been asked to create a chart for visual display and summary of Status values within a SharePoint list of job positions. The list of positions includes a Status field with the only values being Open and Closed. I created a page that shows the list, and
    at the top I inserted a Chart Web part that displays two bars - one showing the number of Open positions and one showing the Closed positions. Because I was having difficulty getting the totals for each Status value to show up in the chart, I followed
    the instructions at
    http://highbrowse.wordpress.com/2012/07/04/chart-counts-from-sharepoint-lists/ and pointed my chart at the new "Status values" list - this worked well to display the sum counts for each of the two Status values in separate bars.
    This was all fine and good, except that because I am only using one data series for my chart, both of the bars (for Open and Closed) show up as the same color. I've been asked to make them different colors but cannot figure out how to do so. Can someone
    provide guidance on how I could make the two bars different colors? Thank you so much.
    cheers

    Hello,
    as far as I know, the chart web part does not have any settings to change the color of individual data points or plot data points of a series in different colors. If you only have two values in the series, you could use a pie chart instead of the column
    or bar chart. In a pie chart, the different slices have different colors.
    cheers, teylyn

  • Calculate Data Series Dinamically

    Hello Everyone,
    I've a requirement in Visual Composer that I would like to know if anyone can help me.
    I want to build a lines chart.
    In the chart you can define what you want to put in the "category Axis", that normally is defined dynamically.
    In the data series you cannot define them dinamically.
    For example you have this table/query:
    Month/Process  A  B  C  D ...
    01                     33
    02                              34
    03                         35
    So in a lines chart, you can define the "category axis" as Month, and in this case, if you have 3 months, the chart adapts to only 3 months, if you have 5 months, the chart adapts and displays the data for the 5 months.
    But for the data series, I have to insert (in my example), all the process that exist, process A, B, C, D, etc., so for example if you have 100 process combinations, but only have data for three process, you have to define your dataseries for 100 process, and all 97 process that have the value zero (or no value) are displayed on the chart and represented in the legend.
    My requirement is to display dynamically on the data series, only those that have in fact values, so in my example if only the process A, B and D had values, only those process should be displayed on the chart, if for other query execution only the process B and D had values, than, only the process B and D should be displayed.
    Does anyone knows how to dinamically display the data series on a chart in Visual Composer?
    Thanks for your help,
    Diogo.

    Hello Sandeep,
    For that issue I got another workaround,
    let's say that one of my dataseries is named xpto_value,
    So in dataseries of the chart I define a formula something like this:
    NVAL(IF(@XPTO_VALUE==0,"",@XPTO_value))
    So if I have 0 for the XPTO_VALUE it is returned nothing, and the line of the data serie is not printed in the chart, otherwise it is printed.
    I can work with this.
    But my question is I have to do that for all the data series, i.e., for all the columns of the query.
    So in my case, I have for now 6 columns, 6 data series, and I can define this for all these 6 data series in the chart.
    But let's say that tomorrow, I have new data on my query and instead of 6 data series, I have 8. In this case the chart is not adapt dynamically, i.e., I still have only the 6 data series, I have to go once again to the chart and create this formula for the 2 new data series, having all the 8.
    So the chart does not adapt dynamically for all the data series that exist at the time of execution, I have always to define the data series one by one.
    Do you know a way of dynamically define the data series, so if the query returns n columns, then the chart will display automatically n data series independent of what n number is?
    Thanks,
    Diogo.

  • How to dynamically add new line series to the line chart in flex?

    i need to add line series dynamically..and each line  series should have a different data provider...

    A chart can have only 1 dataProvider which in my case is an ArrayCollection.
    The chart will update every time the dataProvider changes if you use binding.
    So you have to write a function that periodically populates the ArrayCollection with data from the server and the chart will update automatically.
    'Using line charts' tutorial from Adobe: http://livedocs.adobe.com/flex/3/html/charts_types_08.html#243339

Maybe you are looking for

  • Index and partition not visible !!!

    Hello, I am creation a table with partition by range and primary key constraint like CREATE TABLE employees (employee_id NUMBER(4) NOT NULL, last_name VARCHAR2(10), department_id NUMBER(2), CONSTRAINT SUP_EMP_PK PRIMARY KEY (employee_id,department_id

  • Problem with table sorting,

    Hi To All, I am having table,I am doing the sorting for this table using sql query order by. I have the code when i click on radi button with value="1",it is soring the table by ascending,and if click on the radio button with value="2", it is sorting

  • Shaking cursor

    my cursor is shaking so badly that it makes it very difficult to do any work. I recently purchased cs3, and this is the first time I have tried doing this with this version. I really need it to work properly... any ideas? Oh, and I don't seem to be a

  • Camera Raw Version 5.7 and Nikon D800E

    Hi everyone,  So with my new Nikon camera (D800E), I now realize that I can do nothing in CS4 with my RAW files. As my current version of Camera Raw is only 5.7 for it. Will I have to upgrade my version to at least CS5 with ACR 6.7 minimum? Maybe go

  • Current logged on user using Powershell script

    Hi, i found a vb script which works fine and gives me desired output however i am looking to get this converted to powershell, so that i can add this to an existing shell script Purpose : the shell script should display/Echo currently logged on user,