Query on Stack

Could someone show me where I am going wrong in my incomplete answers to the following questions:
Question:
Software for a Web search engine requires the use of a class Stacker which just implements the functionality of a Stack associated with the methods empty(), peek(), pop(), and push(); it should not implement any of the functionality of the Vector class which Stack inherits from.
(i) What variables would you use in this class? Before answering this part of the question we would advise you to read the remainder of the question.
My answer:
//instance variables
private int count;//number of objects in the Stacker
private int maxSize;//maximum size of Stacker
private int top;//index of top of the Stack
private Object obj;
static variable;
private static final int noOfStackers; //maximum number of Stacker objects allowed to be created
Question:
Write down code for the four methods detailed above, their functionality is described below:
(ii) empty() � returns true if the Stacker is empty and false otherwise.
My Answer:
public boolean empty(){
return count= =0;
Question:
(iii) peek() � returns with the top object of the Stacker; this top object is not removed
My answer:
public Object peek(){
return Object obj;
Question:
(iv) pop() � removes the top object from the Stacker and returns it
My answer:
public Object pop(Object removedObj){
int i=top;
int j=top-1;
i=j;
count--;
return removedObj;
Question:
(v) push() � places and object in the Stacker
My answer:
public void push(Object addedObject){
top=addedObject;
count++;
Question
(vi) In addition to this the class should contain a constructor Stacker which has two int arguments. The first argument gives the maximum size of the Stacker and the second argument gives the maximum number of Stackers that may be created by a program.
My answer:
public Stacker(int max, int nos) {
maxSize=max;
noOfStackers =nos;
if (nos> noOfStackers)
Question:
(vii) Finally the class should contain a method setMaxStacks which has a single int argument which is the maximum number of Stackers that can be created
If the stack size is exceeded a StackOverflowException should be thrown; if a program creates more Stack objects than is allowed a TooMany StackersException is thrown
Do not write any code which caters for errors
My answer:
public void setMaxStacks(int maxNoStackers) throws StackOverFlowException, throws tooManyStackersException {
noOfStackers=maxNoStackers;
}

(i) What variables would you use in this class?You need to store more than the top object, which is all you currently store. I would suggest that instead of obj you have private Object[] stack. Now, building with the base of the stack at array offset 0, you don't need top because it's always the case that top == count - 1. Nor do you need maxSize, because maxSize == stack.length. And since there is a method setMaxStacks, noOfStackers should not be final. Also you need a static variable to count the number of Stackers which have been instantiated so far - e.g. private static int stackersInstantiated.
// Tidied up a bit
public boolean empty(){
return (count == 0);
}Correct.
peek() will need to look at the last defined element of the array stack, so peek() just returns stack[count - 1].
pop() is the same as peek, except that it decrements count. For tidiness' sake, you should remove the object from the stack. So public Object pop()
    Object popped = peek();
    stack[count - 1] = null;
    count--;
    return popped;
} A sensible spec would tell you to throw an exception if there is nothing to pop (and ditto for peek), but the one given doesn't. Unless that's what it means by
Do not write any code which caters for errorsLeft as an exercise for the reader.
The push method has to throw an exception if the stack size is exceeded. So public void push(Object obj) throws StackOverFlowException
    if (count == stack.length)
        throw new StackOverFlowException();
    stack[count++] = obj;
} Next, the constructor. This has two arguments and can throw a TooManyStackersException. The spec really breaks down into gibberish here. public Stacker (int maxSize, int newNoOfStackers) throws TooManyStackersException
    noOfStackers = newNoOfStackers; // I think this is the appropriate thing to do.  As I say, the spec is gibberish.
    if (stackersInstantiated >= noOfStackers)
        throw new TooManyStackersException();
    stack = new Object[maxSize];
    count = 0;
} Finally, the trivial setMaxStacks. public void setMaxStacks(int newNoOfStackers)
    noOfStackers = newNoOfStackers;

Similar Messages

  • Help need for stacked chart in apex 4.1

    I have formed the query for stacked chart (3D or 2D) in APex Ver 4.0.2.00.09 and i have also set the legend display .... Chart is build sucessfully.
    What i expect is when i place the mouse on the each stack in the chart it should say the legend type and corresponding values, instead it shows X axis title and corresponding values.....
    The same query used in Apex Ver 3.2 and its working fine.
    Could anyone please help on this ??
    Regards,
    Manoj

    Hi Maheswara
    I could finally login to APEX. I followed the steps in the forum APEX 3.0  "Invalid Login Credentials" after install and it worked for me.
    I would mention the steps here again for the benefits of others who might encounter the same issue.
    alter user APEX_040100 account unlock;
    ALTER USER APEX_040100 IDENTIFIED BY oracle#123
    Log in as APEX_040100 user and run the below given PL/SQL block.
    begin
    wwv_flow_api.set_security_group_id(p_security_group_id=>10);
    wwv_flow_fnd_user_api.create_fnd_user(
    p_user_name => 'admin2',
    p_email_address => '[email protected]',
    p_web_password => 'admin2') ;
    end;
    commit
    alter user APEX_040100 account lock;
    Now log in as ADMIN2/admin2 and you can change the password of ADMIN user. In my case when I went to the page to reset my ADMIN account I saw it was marked as "Expired". I don't know why it was set up like that in first place.
    Thanks
    Raj

  • Stack is a Vector?

    I recently saw someone use Stack and I looked into it and I could not help notice it extends Vector. Is this a terrible flaw or is there a reason for this? This does not make any sense to me and I was simply questioning it. Does anybody have some insight to why this is?

    I tend to agree with you, ngw522, that having Stack extend Vector represents a "terrible flaw" in its design. My answer to trambit's question as to why Stack shouldn't be a Vector is this: A minimal Stack implementation should provide push and pop functionality, maybe even the ability to peek at the top element. A slightly more involved implementation might provide functionality to query the Stack for its size, to clear all the elements from it, and even to find out if a given element is on the Stack and maybe even how deep it is. But the problem with having Stack extend Vector is that it allows one to remove elements that are not on the top, thus breaking encapsulation. A better design would be to have Stack extend Object but use a Vector or some other List implementation internally. This is the difference between designing by composition and designing by inheritance.
    Shaun
    P.S. Don't get me started on having Properties extend Hashtable...

  • Error in Migration Db sql server to sql Azure, how i can fix this errors

    I get an error TOTAL_WRITE is not supported in current version when i try validate my database from sql server migration in to sql azure. How I can Fix this error migrate to sql azure
    Also I git this error sp_spaceused is not supported in current version of Azure SQL Database – Reynel Useche Velasco 22 mins ago
    StoredProcedure [dbo].[p_sizetables] -- 'db_name(' is supported only for the local database. You should test to verify the results are what you want. – Reynel Useche Velasco just now edit
    Reynel Alfredo Useche Velasco

    Hi Reynel,
    I see that you have posted this query on stack overflow.
    I would like to involve our SQL experts in this topic and get the best solution.
    As of now to my knowledge @@TOTAL_WRITE is not supported on SQL Azure.
    In the meantime, you can refer the below links for migrating your database from on-prem to Azure.
    https://msdn.microsoft.com/en-us/library/hh313125(v=sql.110).aspx
    https://msdn.microsoft.com/en-us/library/hh313129(v=sql.110).aspx
    Hope this helps you.
    Girish Prajwal

  • B1IF Memory consumption and SQL Release

    Hi All,
    the problem i have at the moment is that SQL does not seem to release any memory of B1IF Transactional/SQL Query related usage.
    Our 1 client is set on 40gb ram, 28gb of that  is used by SQL alone of which about 16 is SAP B1 Relating and the rest is due to B1IF Transactions and queries.
    It seems like SQL does not release any memory, several posts i have come across relate only to memory management for B1IF(Tomcat6). but i cant seem to find anything relating to B1IF's SQL side Memory usage and ways to limit or recycle the unused memory.
    this is causing our customers systems to start lagging and slowing down in general.
    Any help with this problem would be greatly appreciated.
    Thanks,
    Gideon

    Hi Gideon
    AFAIK you don't manage the SQL Server's memory usage on application basis. In other words: SQL Server knows best how much memory to use and how much each application should consume. In order to help your OS you should set max memory usage for SQL Server:
    SQL Server not releasing memory after query executes - Stack Overflow
    Kind regards,
    Radek

  • Radiobuttons in tableView/iterator environment

    Hi,
    I'd like to build and display a matrix of radiobuttons with a name/title for each row and also for each column. Every row of the matrix should form a radiobutton group, i.e. per line one and only one radiobutton should be selectable.
    Both dimensions of the matrix are dynamic so I thought I could use a <htmlb:tableView> with a column-definitions table defining the number and names of the columns, the 'actual' table containing the names of the rows and an iterator which just renders these names in the first (i.e. 'zeroth'-) column and radiobuttons in all other columns.
    The code in <i>if_htmlb_tableview_iterator~render_cell_start</i> pretty much contains only the lines
    rowindex_as_id  = p_row_index.
    colindex_as_key = p_column_index.
    p_replacement_bee = cl_htmlb_radiobutton=>factory( id  = rowindex_as_id key = colindex_as_key ).
    Unfortunately the radiobuttons don't get rendered, the resulting page contains the desired table with the row and column titles but empty cells. The html sources contains the comments
    <!-- *** Unidentified control NOT rendered *** -->
    Now, this might be due to a missing radiobutton group that would contain the radionbuttons of one line.
    I don't understand however how a <i>cl_htmlb_radiobutton</i> object gets to know its radiobutton group container. Neither the factory used above nor the constructor nor any other method allows to set a reference to a radiobutton group object. It does contain an attribute <i>radiobuttongroup</i> though, but this is protected!?!
    Does anybody have an idea/experience with this?
    Regards,
    Sebastian

    Hallo Sebastian,
    First let me address your questions concerning the "parent" of a tag. In principle it is only possible to process a tag in context of a BSP page. In this context "process" means either writing the tag on a BSP page, or dynamically processing the tag. When the tag is processed, it is placed on a stack. The opening sequence puts the tag on the stack, the close sequence removes the tag from the stack. Each tag can query the stack of previous tags to find a specific type or parent. Typical code would be:
      DATA: rbg TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
      rbg ?= m_page_context->GET_CLASS_NAMED_PARENT(
              class_name = 'CL_HTMLB_RADIOBUTTONGROUP' ).
    <b><u>OR</b></u>
      DATA: rbg TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
      rbg ?= m_page_context->GET_ELEMENT_NAMED_PARENT(
              extension = 'HTMLB'
              name = 'RADIOBUTTONGROUP' ).
    <b><u>OR</b></u>
      DATA: rbg TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
      rbg ?= m_page_context->GET_DIRECT_PARENT( ).
    Next aspect is the error message "Unidentified control NOT rendered". What this means is that deep down in the code we get a reference onto a control which we can not render anymore. It is suddenly not known. Hmmm... let us dig.
    What I then checked is with the use of the <htmlb:radioButton>. This control insist that it can only be used inside a <htmlb:radioButtonGroup>. Which actually makes sense. So if no group, then raise error.
    Which brings us to your message above. While deep in the rendering, these types of unknown problems are caught and dropped. This is when you get this generic message. It is actually the exception about the missing radioButtonGroup on the stack.
    What we usually do, is place the <htmlb:radioButtonGroup> around the <htmlb:tableView>. But this only works when you are using one column of radioButtons. Which you are not.
    Current feeling would be to look at some executive programming: consider to use a <phtmlb:matrix> and just roll your own. For an idea of where the journey can go, look at the examples of <phtmlb:formLayout>.
    brian

  • How can i get caller object by MethodEntryEvent

    Hi ,
    I have problem that I want to get the caller object when the program call any method. I use com.sun.jdi.MethodEntryEvent to catch the calling event but I don't know how to get the caller.
    thanks for any answers.

    I use
    com.sun.jdi.MethodEntryEvent to catch the calling
    event but I don't know how to get the caller. You have to go from the MethodEntryEvent to the Thread
    and from the Thread to the active stack frame on that
    thread. Then you can query the stack frame for 'this',
    or for other information.
    Given:
    com.sun.jdi.event.MethodEntryEvent mee;
    then the following will return the ObjectReference
    of 'this' for the current frame:
    mee.thread().frame(0).thisObject();
    References:
    MethodEntryEvent:
    http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jdi/com/sun/jdi/event/MethodEntryEvent.html
    LocatableEvent
    http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jdi/com/sun/jdi/event/LocatableEvent.html
    ThreadReference:
    http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jdi/com/sun/jdi/ThreadReference.html
    StackFrame:
    http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jdi/com/sun/jdi/StackFrame.html

  • XML Charts - Unwrapped

    I made the package available for download here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:58
    There are three additional changes:
    1. x- and y-axis titles may be specified,
    2. no UTL_FILE package access necessary by default,
    3. functions, for converting axis values may be specified.
    A demo is available here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:74
    Denes Kubicek

    Hello
    I´m playing around with the xml-charts for a few days, but cant get them to work.
    I think i make some very simple mistake.
    Installation according to the readme-file was ok.
    Granted all things required.
    Made a debug-dir.
    No errors or invalid objects there.
    created a new page in my demo application.
    created a hidden item
    created a computation with static assignment for the item.
    created a report with the same query and it works.
    created a pl-sql-content with the provided block. checked it against that, what the "SELECT xml_chart_pkg.get_chart_plsql FROM DUAL;" returns. Looked equal.
    running the page, show me (after a while) a orange background with the following message:
    Loading<xml_chart_pkg.chart_region_pr?app_user_in=APEX_PUBLIC_USER...
    (i´m not able to read more, because the message is cut on the edge)
    debug = 'Y' shows no error (any more) but nothing is in the created oracle directory
    The session tells me that the sql is in the hidden item.
    And it tells me, that i have collection some values in the collection similar to my test-report.
    Collection Name | Sequence | C001 | C002
    CSTACKEDCOLUMN230582657841003510010 | 1 | OHare | 500
    CSTACKEDCOLUMN230582657841003510010 | 2 | LaGuardia | 4300
    CSTACKEDCOLUMN230582657841003510010 | 3 | Bradley | 500
    CSTACKEDCOLUMN230582657841003510010 | 4 | Logan | 790
    CSTACKEDCOLUMN230582657841003510010 | 5 | Hartsfield | 47798
    CSTACKEDCOLUMN230582657841003510010 | 6 | Dulles | 1240
    CSTACKEDCOLUMN230582657841003510010 | 7 | Lambert | 790
    h3. My environment is:
    oracle db 11g
    apex 3.2
    installed with mod_plsql not epg
    all running on windows 2008 server x64
    h3. my sql in the hidden item is:
    select cu.CUST_LAST_NAME as CUSTOMER, sum(o.ORDER_TOTAL) as ORDER_TOTAL
    from DEMO_ORDERS o, DEMO_CUSTOMERS cu
    where o.CUSTOMER_ID = cu.CUSTOMER_ID group by cu.CUST_LAST_NAME
    h3. my pl-sql for the chart is:
    BEGIN
    xml_chart_pkg.xml_chart_pr(
    item_for_query => :P10_SQL_HIDDEN, --item storing your chart query
    chart_type_in => 'stacked column', --your chart type
    sort_series_in => 'ASC', --how to sort series
    width_in => 600, --width of your region
    height_in => 450, --height of your region
    debug_xml_in => 'N', --using debug option
    xml_output_dir_name_in => 'chart_debug', --debug output directory
    chart_template_in => 'MY_TEMPLATE,SWITCH_COLORS', --templates to be used with your chart
    chart_standard_ignore_in => 'N', --ignore all standard settings
    link_type_in => 'P', --link type P for popup and R for redirect
    page_to_pass_values_to => '10', --page to pass values in the link
    request_in => 'SORT', --request to pass within link
    items_to_pass_values_to => 'P200_ITEM', --items to pass values to, comma delimited
    values_to_pass_to_items => '_category_', --values to pass to items, see XML reference
    link_pop_up_w_in => '1000', --link popup window width
    link_pop_up_h_in => '800', --link popup window height
    chart_background_color_in => '#ededd6', --region color
    unique_id_in => NULL, --unique string to identify your chart if the same chart
    --type is used on the same page
    turn_caching_on => 'N', --if your want to keep the session result per chart,
    --use collection to store the result set
    default_directory_xml => '/i/charts/', --if your want to specifiy another directory,
    -- you need to determine this parameter
    axis_val_conv_function => NULL, --if your want to convert axis values, you may include
    --any function here and it will convert your values to
    --whatever (standard functions or your own custom)
    x_axis_title => NULL, --title of the x axis
    y_axis_title => NULL --title of the y axis
    END;
    I hope i have not over-read the solution in another thread.
    Thanks for any help.
    Edited by: Scubus on Aug 20, 2009 7:16 PM
    Edited by: Scubus on Aug 20, 2009 7:17 PM

  • Problem with stacked bar query

    Hello,
    I tubbing a while on this already and probably the answer is right there.
    I have table with date,product,qty column and I want a stacked bar with the sum of quantity for each product for a certain period.
    so period is the label but how can I created the sum(qty) for each item and display it in a stacked bar?
    Thanks for the help

    Hi Irvine,
    If you want to try and make a stacked bar chart, you will need to add a new serie for each product you'd like to see in your chart. I don't see any other way to make this generic for each product in your products table.
    But if you like to make a new serie for each product i'll give you a small example on how you can do this.
    First create your chart and fill in a query for your first product:
    example:
    select product,substr(p_date,4,3),sum(quantity)
    from table
    where lower(name) = 'keyboard'
    group by product,substr(p_date,4,3)
    This will give you as result: the sum of the quantity for a certain month for the product 'keyboard'. This will be your first serie.
    Now go to the chart attributes and choose 'add series', now you can add the serie for the next product, f.e.:
    select product,substr(p_date,4,3),sum(quantity)
    from table
    where lower(name) = 'mouse'
    group by product,substr(p_date,4,3)
    Do this for every product you'd like to add to your chart.
    Grtz,
    Tuur
    Message was edited by:
    HENDRTU

  • Stacked Bar Chart Query

    Hello everyone,
    I need some help on a query for a Stacked Bar Chart.
    I copied the following query from the "How To" Pages for a Stacked Bar (HTML DB 2 Day Developer) and adjusted it according to my tables:
    SELECT NULL l,
    sales_month,
    revenue
    FROM (
    SELECT TO_CHAR(o.order_timestamp,'Mon YYYY') sales_month,
    SUM(oi.quantity * oi.unit_price) revenue,
    TO_DATE(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order
    FROM DEMO_PRODUCT_INFO p,
    DEMO_ORDER_ITEMS oi,
    DEMO_ORDERS o
    WHERE o.order_timestamp <= (trunc(sysdate,'MON')-1)
    AND o.order_timestamp > (trunc(sysdate-365,'MON'))
    AND o.order_id = oi.order_id
    AND oi.product_id = p.product_id
    AND p.category = 'Phones'
    GROUP BY TO_CHAR(o.order_timestamp,'Mon YYYY')
    ORDER BY sales_month_order
    The problem now that I have is, that the results are not always correct.
    That means, that the numbers for every month that has 31 days is incorrect.
    I created a chart for 2005 and the numbers for Jan, March, May, July and so on are wrong. I found out that they always include numbers from the next (first) day of the next month, that means that the January number contains the numbers from the 1st of February, that March number contains the numbers of the 1st of April and so on. The only difference of my query is that I did not use a timestamp but rather a date. Can someone tell me what to do to solve the problem without changing the column to timestamp? I assume it has something to do with rounding up or "truncating" the date!?
    I appreciate your help!!

    Is there nobody out there, how might give me a hint ?? :-(

  • Stack overflow error in query region

    HI All
    I have a query region with advanced table. I also have a detailed region inside this advance table. I.e. table inside table master detail type. I have advance search and view panel set to true . Everything is working fine I.e. simple , advance and save search, and my search result shows show hide and I can drill down to detail.
    The problem
    I have set user personalization true so I got list of all fields in save search , this list have fields from master and detail table both and I can add fields from master table to save the view, but same does not work for detail table fields , I can see them in save search but can't save them in views because I have set user personalization to false for detail table fields which is fine. But strangely when I set user personalization to true on detail table field I get stack over flow error when the page loads.
    I know it's not a common thing so any help on debugging this will be helpful

    HI All
    I have a query region with advanced table. I also have a detailed region inside this advance table. I.e. table inside table master detail type. I have advance search and view panel set to true . Everything is working fine I.e. simple , advance and save search, and my search result shows show hide and I can drill down to detail.
    The problem
    I have set user personalization true so I got list of all fields in save search , this list have fields from master and detail table both and I can add fields from master table to save the view, but same does not work for detail table fields , I can see them in save search but can't save them in views because I have set user personalization to false for detail table fields which is fine. But strangely when I set user personalization to true on detail table field I get stack over flow error when the page loads.
    I know it's not a common thing so any help on debugging this will be helpful

  • The query processor ran out of stack space during query optimization. Please simplify the query

    Can you suggest me that what should i do in this case.
    Actually i am having one table that is a MasterTable.I am referring this table in more than 300 tables that means i am having foreign key of this primary key in 300+ tables.
    due to this i am getting following error during deleting any row,
    doesn't matter that data is existing in reference table or not.
    Error that i am getting is 
    "The query processor ran out of stack space during query optimization. Please simplify the query"
    Can you suggest me that what should i do to avoid this error,because i am unable to delete this entry.
    Apart from it,i am getting performance problem too,so is it due to such huge FK on it.
    Please suggest me on following points
    1. Is it worst way to handle it,if yes then please suggest me solution for it.
    2. If it is a correct way then what should i do if getting error during deleting any record.
    3. Is it right to create Foreign key on each table where i am saving data of this master. if no then how to manage integrity.
    4. What people do in huge database when they wants to create foreign key for any primary key.
    5. Can you suggest me that how DBA's are handling this in big database,where they are having huge no. of tables.

    The most common reason of getting such error is having more than 253 foreign key constraints on a table. 
    The max limit is documented here:
    http://msdn.microsoft.com/en-us/library/ms143432(SQL.90).aspx 
    Although a table can contain an unlimited number of FOREIGN KEY constraints, the recommended maximum is 253. Depending on the hardware configuration hosting SQL Server, specifying additional foreign key constraints may be expensive for the query
    optimizer to process. If you are on 32 bit, then you might want to move to 64 bit to get little bigger stack space but eventually having 300 FK is not something which would work in long run.
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • SAP BEx Query as a Web Service - JAVA Stack needed?

    Dear all,
    I want to use the Web Service for calling a BEx Query in SAP BW 7.02.
    Do anybody know if a JAVA Stack is needed to get that Web Servcie working?
    Thank you very much for your help!
    Dieter

    Hi,
    i use Query As Werservice in xcelsuis so, wthen i click on  prview button, a prompt is displayed and i can choose either Entreprise or SAP connxion .
    i choosed SAP connexion and used SAP formated login like BI7~001/USERNAME
    And i also tested the webservice with soapUI. The result is the same... i can't see data with SAP connexion.
    thanks.

  • No data Found for Query with hierarchy in 2004S SP10 in JAVA Stack

    Hello,
    I have typical issue while running the simple query in ABAP Web and JAVA Web (RSRT) with One row and one column. The char in the row is restricted with external hierarchy.
    If I run in ABAP web, I get the results.
    If I run in JAVA Web, No data found message displayed.
    Does any one come across this issue. Tried to get SAP note but not clear solution.
    If any one give me information where I can find the values used for query variable in the dictionary tables I might help in my investigation.
    Advanced thanks.
    Ramana

    Hello,
    Sorry I missed a point.
    The char on which the hierarchy is resferencing char. Effectively using the hierarchy of referenced char.
    Thanks.

  • Jfreecharts- stacked bar chart query

    Hi all,
    I am using JfreeCharts for building an application which reports the usage metrics of two servers over a period of time.
    Each server does a number of operations which can be broadly grouped under 6 heads and these broad divisions are being used for reporting.
    When I use Stacked bar chart for creating the bar graph image, the order in which the bars get displayed is wierd. The dates start from 25th Feb to 28th Feb. Hence I am expecting the bars for the data from the dates 25th... 26th...27th and 28th; but the bars that come up are the 25th ... 26th... 28th and the 27th... Is there a group utility which can be used to order the grouping??? I am posting my code used for grouping the data.
    map = new KeyToGroupMap("G1");
    renderer = new GroupedStackedBarRenderer();
    for (int i = 0; i < (metricsList2[0].size()); i++)
    map.mapKeyToGroup(((XxccrCropsdbColourgrp)(metricsList2[0]).get(i)).getAttributeName1(), ((XxccrCropsdbColourgrp) (metricsList2[0]).get(i)).getAttributeName2());
    renderer.setSeriesToGroupMap(map);
    From the database the groups being sent are G1,G2,G3 and G4 which correspond to the 4 dates mentioned above.
    Help will be highly appreciated....
    Madhu

    The actual problem is when I am adding data to the map for the grouping , the data is getting jumbled up... The groups which are added to the map are not added in order.

Maybe you are looking for

  • Line and paragraph spacing in pages 5.1

    Line spacing in Pages 5.1 does not seem to be incremental any more and I cannot see how to adjust paragraph spacing at all. Any suggestions?? This is on a Mac using the

  • How to add a new schedule line?

    Hi folks, Please help to tell me is there any user exit can be used for adding a new schedule line? I want to keep the old first date data, add new shedule line with new updated schedule line date. Pls. help to advise how to do it in VA01/VA02 ? If i

  • Glossary appearing behind text

    Hi i am using a glossary interaction. Ive added it to my first slide and it works ok. I have a button on my master slide that makes this pop-up. When i click this button on th esecond slide or any other... the glossary appears behind the the and smar

  • How to do BDC in mm02 ?

    How to do BDC in mm02 ? as different materials have different view.

  • As3 code to support swf player with control buttons

    i need code for swf player.the player consists of play, pause ,stop, next and previous with seek bar and time control.i had try my code which not support my swf ......the code is ............ function swfLoadedHandler(e:Event):void { trace("swf loade