Ordering a stacked bar chart

Using the flash stacked 2d column chart, I would like to order the chart with the highest bars on the left and only take the top 10 results. I currently have 5 series going to the chart correctly.
Is there a way to sort and limit the final result this way?
Message was edited by:
csbailey

I managed to get my data in order so that the above is no longer an issue.
Now, though, I find that my chart is very ugly (one bar taking up the width of the chart) when there are fewer than my maximum number of rows returned, currently 10. I have looked through the options and the xml documentation and can't find anything that says to format the bars in such a way as if there were X number of rows.
In this case, X is fixed, is there anywhere I can hardcode the width of the bars? I could only find the options for the space between.

Similar Messages

  • Stacked Bar Chart Order

    I am doing a stacked bar chart and I needt to control the vertical order of the bars. It seems to be always sorting alphabetically by my descriptions. My descriptions are 'No Mastery','Pre-mastery' and 'Mastery'.
    I want:
    Mastery
    Pre-Mastery
    No Mastery
    It always shows as:
    No Mastery
    Mastery
    Pre-Mastery
    How can you control this?

    Thanks Srinivas,
    Thank you for your reply! that solution indeed changes the alphabetical sort, the problem is that the order is now fixed (i.e. "Mastery" is always number 1)
    I need them ordered by a particular column (for example total sales) I guess I can use ranks instead of fixed numbers (i.e. concatenating the calculated sales rank instead of always using "1" for "Mastery").

  • Stacked Bar Chart Descending order Based on Height

    I have a stacked bar chart and I want to order the bars based on height.  The tallest bar on the left.  Is there an easy and reliable way to doing this.  Also, I can concerned that I have two heights of the same value. 
    Thanks in advance.

    hi Eric,
    i am assuming that your stacked bar chart has more than 1 Show Value, correct?
    if so the following will work:
    1) create a new formula that adds up all of the different show values
    2) copy and paste your chart beside the existing chart so you don't inadvertently wreck it with the following steps
    3) in the new chart, using the Chart Expert add the new formula that is basically a sum of all of the show values
    4) you can use the Top N > All based on the new formula
    5) right click on the chart and then go to Chart Options, Axes, and then check Dual Axes
    6) you'll now get a Multi Axes tab...make sure that the new formula is alone in one of the columns
    7) you can go to the appearance tab and change the Overlap so that gaps are reduced
    8) you can now preview the report again, right click on the new series and change it to transparent
    cheers,
    jamie

  • How to format individual series in stacked bar chart

    Hi,
    Is there any way I can format (sort order, or transperency) of each series individually in a horizontal stacked bar chart?
    I am trying to create a gantt chart, where I am using two series
    1. Start Date
    2. Duration
    The function of series one (Start Date) is only to place the start position of the horizontal bar of series 2 (duration) in the year time frame.
    After creation of the stacked bar chart, I want to make the reansperency of series 1 (start Date) as 0 so that the duration bar apears floating and gives the feel of Gantt chart.
    Thanks
    Aurobindo

    You may wish to see the article <a href="http://www.xcelsiusjournal.com/index.php?option=com_content&task=view&id=45&Itemid=2" target="_blank" title="Constructing a Simplified Gantt Chart in Crystal Xcelsius">Constructing a Simplified Gantt Chart in Crystal Xcelsius</a>. It does require changing the skin to Windows Classic, but that&#39;s a small price to pay for having a gantt-like capability.  <p>Loren Abdulezer/Evolving Technologies Corporation<br /><strong><a href="http://www.XcelsiusBestPractices.com">www.XcelsiusBestPractices.com</a></strong><br /><strong><a href="http://www.XcelsiusJournal.com">www.XcelsiusJournal.com</a></strong> </p>

  • Problem with Stacked Bar Chart

    I have a problem with a stacked bar chart in Numbers 09. My chart is a single series with 6 categories. All of the categories have different values. The first 5 categories display correctly. However, the last category does not display in the color its supposed to, but rather shows up as white/background instead of the grey color shown on the legend. However, the value label is displayed in the proper place.
    When I select other chart types (pie, regular bar, or regular column) the category shows up like it's supposed to.
    This is kind of annoying since I would rather use stacked bar instead of a pie chart. Is there an upper limit on the number of values it can display as a stacked bar chart? Is this just a bug? Thanks!

    Here's my result with six values in a single series. I double clicked the last bar to change its colour from the default grey (which was visible) to magenta.
    Numbers 2.0.3, iBook G4, OS X v10.4.11
    (Shot in the dark:) Try double clicking the value label, then changing the order position of this item.
    Regards,
    Barry

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    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 = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

  • Stacked bar chart with single group

    Post Author: rt50896
    CA Forum: Charts and Graphs
    Dear all,   I have a question about stacked bar chart with one group value(normally more than one group value is ok)   ex. YYYYMM      PRODUCT    AMT        -
            200601          ABC            1000        200602          ABC              300        200603          ABC              500       .....   the data collection is as above,then chart display: x-axis as YYYYMM,y-axis as PRODUCT...   but why this case the bar chart color not the same for each YYYYMM? and legend not display one PRODUCT as ABC only?   the bar chart display like this:   http://tkfiles.storage.live.com/y1po30C7CH6eW9phoLAXH89MBGwFLYdEZ3kOMQXUQzDzwM-VNnffibEwqPI8TIUNBm1f7uKTjnkaOI   ps. crystal report version is 8.5Regina

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • Stacked Bar Chart with Multiple Series Sort Question

    Hi,
    Apex version 4.1.1
    I have a stacked bar chart with three separate series, one showing customer effort, another showing project effort and the third showing other effort, summarized by calendar week. The x-axis of the chart is the calendar "week of" date, and the y-axis has a bar for each of the three series. Not every type of effort occurs every week.
    When AnyChart renders the chart, the order of entries on the x-axis seems to be dependent both on which series are present in a given week as well as the "week of" date. Weeks with all three series sort in order by calendar date, followed by weeks where just the 2nd & 3rd series are present, followed by weeks where just the 3rd series is present. See this [url http://tinypic.com/r/b9zdt/6] picture of the chart  noting the "week of" dates. Note that the months go Sep-Oct-Nov-Aug-Oct.
    Is there a way to force AnyChart to sort the x-axis in chronological order regardless of whether there is data for all three series for a given week? I have looked through the AnyChart XML reference but cannot find a way to do this.
    Incidentally, I can solve the sorting problem by combining all three series into a single query:
    select
      null as link,
      week_of as label,
      sum(customer_effort) as "Customer Effort",
      sum(project_effort) as "Project Effort",
      sum(other_effort) as "Training, Admin and Other Effort"
    from ...But if I do this, I cannot figure out how to have each bar on a given week link to a different detail page, e.g., if I click on a bar representing customer effort I want to link to one page, but if I click on a bar representing project effort, I want to link to a different page. I have had a look at the [url http://apex.oracle.com/pls/apex/f?p=36648:59:1570983160946101::NO:::] chart examples  posted on apex.oracle.com, but cannot figure out how to apply to multiple series in a single query.
    Thanks,
    Mike

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • Problem on stacked bar chart?

    Hi,
    I am trying to create a stacked bar chart. On this chart, Y Axis is the status like new, half finished, finished, X Axis is the value. 3 series: North America, Asia, Europe.
    On the Y Axis, the order of the status from top to bottom should be new, half finished, finished. But North America doesn't have status of new. Asia doesn't have status of half finished. When I run this chart based on the order of the series above. The Y Axis on the chart ends up the order like: half finished, finished, new.
    How can I correct it?
    Thanks for your help.
    Helen

    Can someone help me?

  • Stacked bar chart errors

    I am creating a stacked bar chart and put a max row count of 50, but the graph actually shows more than 50. After the 50 data points, all of the rest of the dates along the x axis are out of order. Is there another location i also need to enforce this max row count?

    Hi HCMJ,
    By default, the bar value will not overlapping each other in stacked bar chart, and we cannot increase or decrease the gap between the series in Reporting Services.
    Based on my research, I find a workaround can achieve your requirement, please refer to the steps below:
    Create a dataset with the query below (sample data):
    CREATE TABLE #temp(name nvarchar(50),time nvarchar(50),value int)
    INSERT INTO #temp VALUES     ('Invoiced','YEAR',100),('Invoiced','MONTH',200),('Budget','MONTH',300),('Budget','YEAR',600)
    SELECT * FROM  #temp
    Insert time field to Category Groups pane, and change the group name to “time”.
    Insert value field to Values pane, then change the value to like below:
    =min(Fields!value.Value,"time")
    Insert another field with the following expression to Values pane:
    =max(Fields!value.Value,"time")
    Change the type of chart from Stacked Bar Chart to Range Bar Chart.
    Right-click the Series field to change the Fill color to #9bff8c00 (DarkOrange with 155 Transparency) or any color with Transparency you like. Now we can get the following:
    Preview it and get the following result:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • 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 ?? :-(

  • How to create stack bar chart on answers that shows % and counts?

    Hello guys
    I currently have a table that have several columns, each column represent one product name, and one column name "units" indicating how each product is sold...
    The requirement is to create a chart view with stack bar that shows the percentage of each product''s unit sales.
    Now we are discussing whether we should customize the table to consolidate all these product columns into one "product desc" column with all the product names as row in order to fulfill this requirement..
    PLease let me know whether this is needed or not... ALso, how would I be able to create stack bar charts that shows the total sales against each product sales in percentage and counts?
    Please let me know, I really appreciate it

    I tried to do this and was a bit successful. I used the paint catalog. Created a a request with 6 columns assuming units and dollars be stacked and Year ago units to be a line:
    Brand Units Dollars 0 Year_Ago_units 1
    Added a new request (Combined with similar request and selected paint subject area): Now in this request my columns are:
    Brand 0 0 Year_Ago_Dollars Year_Ago_units 2
    Assuming Year_Ago_Dollars be standard in your case.
    Created a chart view with brand and 1 on x axis and Units, Dollars, Year_Ago_Dollars on y axis and line as Year_Ago_units.
    Now able to see what I am expecting. May be you need to tweak a bit more according to your requirement.
    Let me know if this is of any help!
    Thanks.
    Edited by: Venkata on Sep 30, 2010 12:11 PM

  • 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.

  • Normal/stacked bar chart problem

    hi,
    i have created a bar chart which has 2 bars for each customer. (the customer is on the x-axis). how i did this, is i created two formulas and placed them in the 'show value(s)' box in the chart expert.
    however, what i want to do is to have one bar for each customer subdivide. If i change the type of chart to 'stacked bar chart' each customer has one bar and that bar is subdivided. But I want each customer to have 2 bar (which i have at present) and want one of those two bars to be subdivided.
    How would i go about doing this? (if it can even be done(?) )
    thanks
    J

    Here's my result with six values in a single series. I double clicked the last bar to change its colour from the default grey (which was visible) to magenta.
    Numbers 2.0.3, iBook G4, OS X v10.4.11
    (Shot in the dark:) Try double clicking the value label, then changing the order position of this item.
    Regards,
    Barry

  • Help with stacked bar charts

    Help..................
    I am definitely missing something.
    I want to do something like the attached, stacked bar chart example.  This is pretty much
    one of the examples.
    What I need is for a horizontal chart instead of a vertical.  When I right click the legend and
    chose bar charts, it only shows vertical.  After messing with this for a couple of hours,
    I give.
    Any suggestions would be much appreciated.
    Attachments:
    Stacked Bar Graph.vi ‏43 KB

    Another stacked bar graph plea for help!
    My scenario: I am recording 3ph current values (red, yellow, blue) on multiple circuits for some electrical tests we do.
    I want to present this data on a screen that is most visible from a distance, so the approach I have taken when I last wrote the software in Delphi was to have each 3 ph circuit represented by a 3 channel bar chart where the three channels are stacked front to back in order of magnitude. This allowed me to add multiple 3 channel circuits next to these to fill the screen from left to right.
    See attached Excel file to make it clear. I hope!
    The main issue I see is that the colour of plot needs to move front to back with the magnitude. ie Red is not always the front plot, it is the 'smallest' of the three plots that stays at the front.
    Some tests we do, may have 12 x 3ph circuits of this type which fills the screen up and can make it very busy. Rather than having 36 plots left to right, by stacking them in groups of three, I reduce the left to right number to 12 plots. The screen can then be viewed from a distance much easier.
    Any suggestions? I am expecting I will need to write my own routine for this, which if I do, i am quite happy to share when complete.
    See (and run) the attached LabVIEW code of my progress so far.
    thanks  Adam
    Message Edited by tca-adam on 11-16-2006 01:27 PM
    Attachments:
    Stacked Bars example.xls ‏24 KB
    Create CurrBal Graph Data.vi ‏21 KB

Maybe you are looking for