Refresh a single chart in a series of charts

Hi All,
    I have a screen with 4 charts. But I want to refresh each of the charts after a particular duartion.
For example the first chart should be refreshed after 1 minute.
The second chart should be replaced after 30sec...... And so on.........
Please help me to do this.
Thanks

You can add timers to each of your charts explicitly. Set the duration as desired in each of these timers ( 60000 milli seconds  for 1st chart and 30000 for the second chart ). You will have to add event handlers for the timer complete event (TimerEvent.TIMER). In these event handlers call your http service or refresh your charts by updating the chart's dataprovider.
example code below :
<mx:Script>
        <![CDATA[
    private var timer:Timer;
            private function init():void{
                    timer = new Timer(60000);    // 1 minute
                    timer.addEventListener(TimerEvent.TIMER,refershGraph);
                    timer.start();
    private function refershGraph(event:TimerEvent):void{
          // update the dataprovider of your chart or call your httpservice here
         // reset the timer and start it again         
          timer.reset();           
          timer.start();   
]]>
    </mx:Script>
Cheers

Similar Messages

  • How to superimpose data from two different charts into a single chart?

    I have a single chart that lists numbers by month for a two year period like this:
    Jan 100
    Feb 200
    Jan 103
    Feb 199
    The numbers are all in the same column rather than different columns.
    I'd like to creat a chart that plots the data for each year on the same X axis, so that I can see the two january numbers, the two february numbers, etc. on top of each other. But nothing I've tried seems to work. Numbers seems to always put the second january after the first december on the x axis rather than recognizing it as a new series to be superimposed on top of the original january.
    Is there some way to fix this short of putting the data into a new column?

    What your describing is a table of wht I would call raw data. I would also have a summary table that would use functions like sumif and sumifs, then make my chart off that. This table would have each month in a column and the  years across as headers. ( if you're familiar with excel, it would be the equivalent of making a pivot table and chart, but manually).
    Jason

  • Two line graphs in a single chart

    Hello Experts,
    I am having set of values each for one line graph.
    But I want to plot these two graphs in a single chart.(2 line graphs in a single chart)
    Please help me how to plot?
    Regards,
    Apex User

    Hi,
    Your query needs to return data in this format:
    link    label        value1   value2
    null    01-JAN-10    5        6
    null    01-FEB-10    3        6
    null    01-MAR-10    2        5where 'value1' column will be the first series, 'value2' column will be the second series, etc.
    So you SQL query will need to be something like:
    select
    null link,
    created_month label,
    sum(value1) value1,
    sum(value2) value2
    from table
    group by
    created_monthAmanda

  • Refreshing a single portlet rather than the whole portal page

    Ok, here's my situation.
    I have two pdk portlets on my portal that communicate through page parameters. Portlet A has a bunch of search fields, a customer drop-down list, parts drop-down list, division, etc. Portlet B takes those parameters, queries the database, and displays the results. I would like to be able to refresh portlet B without reloading the whole portal page.
    I have onchange events on all of my drop-downs that will do a javascript post back to portal, which will in turn set my page parameters, and I see there is a 'refreshPortlet' function in a javascript file that portal provides that will refresh a single portlet based on a portletReferenceId. It is normally called when a refresh button is clicked in the portlet header, but I don't see any reason I can't call it after my javascript post, that is, if I had the portletReferenceId for the other portlet. I thought about making a hidden html table on the page that, I could fill with the portlet names and ids for each portlet as they load, that way I could reference that list from any portlet. The problem is I can't figure out where the ids are coming from. Based on the code behind the button, the function is looking for something like this 646_701285_646_1_701271, but the closest thing I can come up with is this 676114_POSTCONTENTPORTLET_467414915 which I got from PortletRenderRequest.getPortletInstance().getInstanceName(). As you can see, it's not even close. Does anyone know where the correct id could be coming from? It's got to be available to me somewhere, doesn't it?
    The only other option I can think of to accomplish my goal is to use straight up ajax to display portlet B, but that kind of defeats the purpose of portal doesn't it?
    Any help would be greatly appreciated.
    Thanks,
    Doug

    You can use Ctrl+F4 to close the current tab. I don't think that you can change the Alt+F4 action with Keyconfig.

  • Single Chart Style Playlist

    Hi,
    I was wondering whether it was possible to make a Top 10 singles chart style smart playlist in iTunes.
    I want to be able to see which songs I've played the most in the last seven days.
    Maybe its not possible but was just wondering as I cant figure it out.
    Thanks

    If you make a smart playlist with the criterion "Last Played is within the last 7 days", you can then sort it by playcount.

  • DataGrid: Refresh one single row.

    How do I refresh one single row in FlashBuilder DataGrid?  I don't want to change the user's field sort order or selected row.

    I would suggest that you create a backup of the datagrid
    section of the code and then replace it with a datagrid where you
    are displaying the datafileds and are not using any itemrenderer.
    this way you will be able to identify if the itemrenderer is indeed
    causing the problem.
    Also, shouldn't you be binding the arraycolection in your
    dataprovider. the data provider for my datagrid is usually bound
    like
    <mx:DataGrid id="DateGrid" width="100%" height="100%"
    dataProvider="{shiftXLC}">
    where shiftXLC is xmlListcollection or in your case it would
    be the arraycollection.
    hope this helps.

  • 2 queries to single chart ...

    Hi everybody,
    I have 2 two queries:
    The first: Number of passager on Year/WEEK for 2007
    The second: Number of passager on Year/WEEK for 2008
    I must compare data on single chart on 2007 and 2008.
    So, i have to compare only on WEEK
    Any suggestions ?
    Thanks a lot for your help ...
    Rodolphe.

    Hi,
    its should not come like that
    the output should be
    A1
    A2
    B1
    B2
    OK try first drag a table from the output port of the combine opearator then drag a chart from that table
    or check the capacity of the output port of the Quierys
    if it is zero make it to large numerical
    i hope it will help
    Regards,
    GOIVNDU

  • Creating a single chart based on two data providers in webtemplates

    Hi All!
       Is there a way to design a webtemplate  where a single chart is displayed from  two different dataproviders. my requirement is to display a chart which gets its data from two different queries which have simmilar keyfgures and simmilar dimentions. note that we cannot have a single query .
      any suggestion is a welcome and  will be appreciated with points.
    with regards
    ashwin

    Hi!
      good suggestions
    1)With APD:- These quereis are based on variable which selects a charecteristic which is outside the cube and it has M:N relationship with the Charecteristic in the cube. sooo It is not optimal to call APD each time i want to use the query and more over i can not have a Seperate infoprovider just for one query which is verydynamic and changes more than once in a data
    2)cannot create a multiprovider because one charecteristics   BP group is in  M:N relation with Business parner charecteristic in some 3 cubes. and if I create a multiprovider i can not restrict  the contents based on group only valid option might be to use infoset but it performance wise its not a good solution
    3) with BSP do you mean eachtime when we want use the query with a different restriction do we need to execute this BSP application with a variable and then fill the datasources and then activate the table and then check the query??? or you mean something else..can you please explain a bit... more about the concept.
    with regards
    ashwin

  • Single trendline for multiple series

    I'm trying to graph multiple trials of an experiment but I need to place a single trendline over multiple series inorder to get an average slope. So far I've only been able to add 3 trendlines for my series, and adding all the data points as a single series doesn't display the data properly. Each x value has 3 y values associated with it. I know I can do this in Excel but I wanted to try and tame numbers, but so far it isn't happy with anything more than a simple graph.
    This is what i have so far. The x values are in the left column of the table and each series is highlighted.

    Here is a basic idea. For each X, average the three Y values. Use the FORECAST function and those average values to get the trendline point for each X value. Plot that as a fourth series.
    F2=FORECAST(A2,E$2:E$4,A$2:A$4)
    fill down to get the other points

  • HT5714 If a song is available for download in a pre order will it count towards single chart counts?

    If a song is available for download in a pre order will it count towards single chart counts?

    Apple has not released any information as to how any of their charts and features are calculated, so no one here will know.
    Regards.

  • How i can refresh a single rectangle?

    hi
    I have a grid of rectangle, each rectangle have a color and position. I whould like to refresh a single rectangle but not entire table.
    how I can do this?
    thanx in advance!
    ps: i make this but it does not work well:     
    public void paint(Graphics g){
    super.paint(g);
    repaint(myRect.getX(), myRect.getY(), myRect.getWidth(), myRect.getHeight());}

    1) Couldn't you wait even an hour for an answer?!
    2) repaint (...) does not belong in your paint(...) method. Put repaint(...) in your other code (not paint(...) nor update(...) where you realize that you need to make a visual change to your rectangular area. repaint(...) will cause update(...) to be called at some time in the future. It is in update(...) that you can perform your redrawing.
    3) If your rectangle is in a container with other components layered on top of it, you may need to invalidate() and validate().

  • Single Chart Series with multiple color data points

    I am developing an application using the flex chart component
    and I am binding data to 3 different chart series which is pretty
    intense processing. I was wondering can I use only one chart series
    and when I bind the data points just to change the color per data
    point which meet certain criteria?
    Here one method from my application where I am dynamically
    binding data to my series.
    private function loadSeries(data:XMLList, yAxis:String):void
    seriesAdd.yField = yAxis;
    seriesAdd.xField = "Date";
    //seriesDelete.yField = yAxis;
    //seriesDelete.xField = "Date";
    //seriesChange.yField = yAxis;
    //seriesChange.xField = "Date";
    seriesAdd.dataProvider = data.Trade.(A == 'Add');
    seriesAdd.//Can I change the color per each data point if I
    have multiple data sets?
    //seriesDelete.dataProvider = data.Trade.(A == 'Delete');
    //seriesChange.dataProvider = data.Trade.(A == 'Change');
    Thank you

    I think I found something to get me started:
    http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_09.html
    My next question is if I have the following function to fill
    my data points:\
    private function myFillFunction(element:ChartItem,
    index:Number):IFill {
    var c:SolidColor = new SolidColor(0x00CC00);
    var item:ColumnSeriesItem = ColumnSeriesItem(element);
    var sales:Number = Number(item.yValue);
    if (sales >= 50000) {
    return c;
    } else {
    // They have not met their goal.
    c.color = 0xFF0000;
    return c;
    How can I access values that pertain to the specific chart
    item, but are not plotted on the x and y axis. Something similar to
    the checking on the above function, but check if value that is not
    plotted but still exists on the data provider.
    Thanks in advance.

  • Graph & Chart: select and colour single element of data series

    Hi,
    my question is about formatting Keynote graph: i.e. bar graph 2d or 3d, is it possible select and colour differently a single element of series? In Powerpoint exists that possibility, but in Keynote I can't find the way to select only one element. If I change colour, all series elements change.
    Thanks in advance
    Antonella

    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

  • Refresh Excel data/charts reports in sharepoint

    Hi all,
    I created an Excel report with some Pivot Charts, starting from a
    Sharepoint list data.
    The Excel is saved in a document library of the site.
    The aim is to keep Excel data/charts updated with the values of the corresponding
    list.
    When I open the Excel with Excel Online and click on "Data" - "Refresh all", I see no updates.
    Anyway, if I export the Excel on my pc and click on refresh data, I can see the updates.
    Any solutions? Thanks in advance

    You can't refresh the SharePoint List data in Excel this way. I thought you are using SharePoint server then you need to configure power pivot for your form after that you can get the Odata feed from the SharePoint list using the Odata source you can refresh
    the data in excel online.
    PowerPivot Configuration:
    http://rajeshagadi.blogspot.in/2013/07/installing-powerpivot-for-sharepoint.html
    Connect Odata feed to Excel
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2014/02/24/powerpivot-scheduled-data-refresh-from-a-sharepoint-list-using-odata-data-feed-connection-powerpivot-2012-sp1-for-sharepoint-2013.aspx
    http://www.sptechcon.com/news/sharepoint-dashboard-excel
    Ravin Singh D

  • Column & Line in a single chart. Ignore Grouping for Line

    Hi,
    Here is the scenario to show a chart for "Resource Allocation to selected Projects and capacity".
    1. Show Staked Columns for Projects<o:p></o:p>
    2. Show Capacity of Resource with Line Chart (both should be in same chart)<o:p></o:p>
    3. Group By Projects(Series Group) and Category Groups By Month.<o:p></o:p>
    Following is the desired out:
    Problem I'm facing:
        I was able to show both Columns and line by changing the chart type for capacity. But issue is that Group By (series Grouping) is applying to Line (Resource capacity) as well. So multiple resource capacity lines are appearing on the
    graph. It would be good, If charts allows to display only one line by summing all group values for resource capacity. 
    So, Can we stop considering group By for line chart(Resource capacity)?
    Below screen shows that how current report displaying.
    Thanks in advance.
    Thanks, Ram

    Hi ram,
    According to your description, I can reproduce the same issue. Since the values in the chart is always relate to Category Groups and Series Groups. The behavior is by design in SQL Server Reporting Services (SSRS).
    In SSRS, chart is similar to the matrix.
    The Columns group in the matrix is identical to the Category Groups area in the chart.
    The Rows group in the matrix is identical to the Series Groups area in the chart.
    The Data area in the matrix is identical to the Values area in the chart.
    Since we add data in the Values dialog box, it is in the Category Groups and Series Groups scope.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

Maybe you are looking for