Question regarding 3-D stacked bar chart
Hi All,
I'm creating a report that has a view of a horizontal stacked bar chart. I was wondering if there's a way to portray that stacked bar chart as a 100% stacked bar chart like in ms excel?
Thanks,
Wayne
Hi Wayne,
I'm not sure if I understand your query correctly but I'll have a go at answering your question. I'm guessing that you have a horizontal bar chart that looks something like this, even after you've indicated that you want it to be a stacked chart -:
|{color:#ff0000}@@@{color}
|{color:#008000}#########{color}
|{color:#ff00ff}++{color}
|{color:#0000ff}===={color}
However, you want it to look more like this -:
|{color:#ff0000}@@@{color}{color:#008000}#########{color}{color:#ff00ff}++{color}{color:#0000ff}===={color}
For the purposes of the example, let's assume you are using two fields for the bar chart - Account Type and *# of Accounts*. By default, your chart options would be set such that Account Type is the value used for the Y axis and *# of Accounts* is the value used for the X axis. Indicating that you want a stacked graph results in the first graph example I listed above. However, if you indicate that Account Type is the value to be used for the measure labels and that there is no value for the Y axis, then a stacked graph will look like the second graph example I listed.
Hope this helps to answer your question.
Regards,
Cameron
Similar Messages
-
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,
MikeThanks, 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 -
Hi, I am creating a stacked bar chart, and I am encountering 3 issues I hope you can help me with:
1) The chart has positive and negative values. I have zero based centerline checked, but I do not see 0 on the Y axis.
2) The applet width is 900 pixels. The chart can have a variable number of bars. When it has a small number of bars, they fill the entire chart. Is there a way to set the width to a fixed amount?
3) Is there a way to set a logical interval amount? Currently the numbering is not intuitive.
Thanks
p.s. We are using 11.5.3
Edited by: Richard Keegan on Jun 13, 2008 5:18 PMDepending upon your query structure, you can force a zero based centerline by setting the Y-axis ranges dynamically. I am not working in 11.5.3 currently, but ran into a problem with line charts in 12.0.2. The zero centerline flag did not work, so I dynamically generated the ranges and linked them in.
You can probably do the same with a little extra BLS coding.
Mike -
Y axis max ignored for horizontal stacked bar chart (SVG)
G'day,
I'm using the standard SVG horizontal stacked bar chart (multi-series). I have set the Y axis maximum value but it is ignored - bars are plotted to their maximum height.
I've had no such problem with vertical stacked bar charts.
We're running v2.2.0.00.32.
Is this a known bug?
Regards,
Chris.I don't understand why you are soying it is not possible.
Actually I think it is and quite easily but maybe i missunderstand the question.
But anyway, here is what I would do:
In the spreadsheet, you can calculate the percentage of each status per project:
Completed Pending Partially completed Not Started
Project 1 78.10% 6.46% 10.51% 4.93%
Project 2 51.01% 2.62% 39.21% 7.15%
And then select these data for the stacked bar chart. Here you get the graph you are looking for.
Oli -
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
DetlevWell,
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 data from a Web Service
Hi,
I'm working on Dashboard Design (version 14.0.1.287) and I'm trying to create a chart linked to data from a webservice.
With a Year in input, my webservice gives an Amount per Cities and Products
Data retrieved look like this (Sheet1) :
Paris Tablets 45
Paris Laptops 12
Paris Cellulars 89
New-York Tablets 56
New-York Laptops 36
New-York Cellulars 1
Londres Tablets 150
Londres Laptops 3
Londres Cellulars 45
Then I use a Pivot Table (created manually in Excel) looking like this (Sheet2) :
Tablets Laptops Cellulars
Paris 45 12 89
New-York 56 36 1
Londres 150 3 45
The chart is a Stacked Bar Chart plugged on the previous Pivot Table
I create 3 series (one per Product), values (X) are set with Amount
Category labels (Y) are set with Cities
The goal is to have a dynamic chart (series and categories must update if a new city or a new product appears)
So my question is : how can I set up the chart directly with data retrieved from webservice on Sheet1?
Thx a lot !
Nicolas
Edited by: nicolasheurtevin on Sep 14, 2011 4:58 PMhi
First thing , bad news if you are using .Net framework 1,
just forget it, Flex 2 doesn't work well with framework 1, but 2nd,
good news, if you want to use webservices, you'll have to make an
array of objects on .Net Side and send it as objects to flex, i saw
an example on the net but i can't seem to remember where, on the
other hand,if you want to simply use, like i do, HTTPSERVICE its a
very nice way to talk with .Net and you can see my example here
http://flex1-for-dummies.blogspot.com
By the way, in your code, you have a request tag , but you
aren't requesting anything, because if you were you would have to
make like this
<mx:request>
<Artist>{yourinputtext.text}</Artist>
</mx:request>
So if you don't have an input text, you don't need a request
tag, only the operation. -
Stacked bar chart with percentage in Xcelsius
Hi,
I want to create a stacked bar chart(Horizontal) for the following data
Project 1 --- > 2140, 177, 288, 135
Project 2 ---> 856, 44, 658, 120
For following status respectively
Completed, Pending ,Partially completed, Not Started
Project 1 and Project 2 will be on Y axis.
I want this data to be divided in percentage.
as shown below
Project 1 |___135_____|___177_____|______2140_______|
Project 2 | __44__|___120_____|________856__________|
0 20 40 ........ 100
How to achieve this in xcelsius?I don't understand why you are soying it is not possible.
Actually I think it is and quite easily but maybe i missunderstand the question.
But anyway, here is what I would do:
In the spreadsheet, you can calculate the percentage of each status per project:
Completed Pending Partially completed Not Started
Project 1 78.10% 6.46% 10.51% 4.93%
Project 2 51.01% 2.62% 39.21% 7.15%
And then select these data for the stacked bar chart. Here you get the graph you are looking for.
Oli -
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.5ReginaThanks, 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 -
CR XI Issue with Stacked Bar Chart
I'm hoping this question is easy.
I'm having trouble creating a stacked bar chart.
I want to do a Bar Chart which will show one "Bar" for each Priority (Priority 1, 2, 3, 4 or 5) and then for each Priority divide out, by color, the Status (Submitted, Reviewing, Working, Testing....).
For example, let's say that there are 10 Priority 1 records. Of those 10, 5 have a Status of Submitted, 3 are being Reviewed and 2 are being Tested. Then the Priority 1 bar should show a count of 10 which is comprised of 3 colors which will correspond to the 3 Statuses that make up the 10 Priority 1 records.
I can't get the Stacked Bar Chart to display this correctly.
In the Chart Expert, the Data Tab says:
-- On change of: Priority - Ascending
-- Show Value(s): Count of Status
When I run the CR, it get's the Priority correct and I see the total for each Priority. But it does not then take each Bar and color code by Status.
Any ideas how to get it to do that?
Thanks,Hi,
You should have in On change of field a sub group as well.
For stacked bar charts it is necessary to have a group and a sub group fields in on change of section.
Say you have the month.
no of priority1 in jan etc.
Hope that helps!!
Thanks
-Azhar
Edited by: Azhar on Aug 4, 2009 8:23 AM -
Hello,
I'm looking for help regarding horizontal stacked bar chart. Typically for stacked bars Publisher seems to want data for each stacks per row, but my data looks like this:
<DATA>
<ROW>
<TYPE>Type 1</TYPE>
<CLASS>A</CLASS>
<TOTAL>10</TOTAL>
</ROW>
<ROW>
<TYPE>Type 2</TYPE>
<CLASS>B</CLASS>
<TOTAL>10</TOTAL>
</ROW>
<ROW>
<TYPE>Type 1</TYPE>
<CLASS>B</CLASS>
<TOTAL>20</TOTAL>
</ROW>
<ROW>
<TYPE>Type 2</TYPE>
<CLASS>A</CLASS>
<TOTAL>10</TOTAL>
</ROW>
<TYPE>Type 3</TYPE>
<CLASS>A</CLASS>
<TOTAL>40</TOTAL>
</ROW>
</DATA>
So each bar would be the TYPE element, and each stack within the bar would be the CLASS element.
Here is a very crude drawing of what I would want the chart to look like: http://i.imgur.com/3gEdEQ5.png
How can I achieve this? Thanks in advance.Jody,
I'm sorry that I missed that you didn't want an overlay solution. You wrote it plainly, I just didn't read carefully.
This is as close as I could come to how I now read your request:
Here I have charted your Actual and a column of zeros that I have called the Goal Reference. The last column contains the goal values and I have used them as Positive Custom Error Bars for the Goal Reference series. I'm not thrilled with the look, but unless I know for sure that I'm on the right track, I'll leave it there for now. The width difference between the goal and the actual can be adjusted.
Jerry -
Stacked Bar chart mouseover options
I am using the stacked bar chart. When mousing over the bars, it currently displays the totals on the very top of the bar. Is there a way to make the total display inside (or at the bottom) of the bar?
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 -
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/line chart combination
Hi,
I use Crystal Reports 10.I need to produce a chart containing 2 series on the same graph with:
- one series as a stacked bar chart type,
- one series as a line chart type (not stacked).
I tried doing 2 separate charts and superimposing one over the other, but the user wants to export it to excel and when they do so, the graphs appear as 2 separate images rather than one. it appears correctly in pdf though.
How can i achieve this, either in 1 graph or as separate 2 graphs ?
Any help appreciated...
Thanks in advance,
Swathy.Hello Swathy,
If you can get both series in one chart then you can convert one series into line.
To do this right click on the Bar that you want to display as line.Select the series option and then select "Line" from the drop down of "Show Selected Series as:" option.
Hope this will help!
Thanks & Regards,
Amrita -
Stacked Bar chart does not overlap series
I have a stacked bar chart with to values "Invoiced" and "Budget" and 2 categories YEAR and MONTH - the problem is that the bar chart shows the values Invoiced and Budget in Top of each other and Not overlapping each other . ex:
NOW: Invoiced = 200 Budget = 300 - Bar chart shows a column of 500 for the month (NOT correct)
What I want is to show 1 column for each month where up to 200 the colour is green and from 200 to 300 the colour is blue for example....
How to achieve this ?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
Maybe you are looking for
-
I'm using the following to export a CSV file: <cfheader name="Content-Disposition" value="attachment;filename=download.csv"> <cfcontent type="text/csv" reset="yes"><cfoutput>#variables.output#</cfoutput> This works fine in IE, but in FF the filename
-
JSTL: Using value of a variable in expression
All, I am stuck on this problem and I hope someone here can help. This is a real tough one for me to explain but I'l try my best. I am try to have my includes a little more component oriented. So I wanted to use something like the following <c:import
-
ORA-39126: Worker unexpected fatal error in KUPW$WORKER.PUT_DDLS
Hi! Running Oracle 11.1.0.7.0 on HP-UX B.11.31 Patch level: OPatch version : 11.1.0.6.2 OUI version : 11.1.0.7.0 Interim patches Patch 7690421 Patch 8217795 I was trying to impdp an expdp dump from an identical system (architecture and DB wise) and g
-
Starting j2ee server from a java Application
Hi. I'm trying to start j2ee server by clicking a button in an application I'm developing. I don't know how to do it. I haven't found In the documentation some topic related. I look at the j2ee.bat but it just call a class named J2EEServer, and the A
-
Getting column names for resultMap - Ibatis
Hi friends, I need to get the column names for the properties specified in sqlMap.xml in my code . for example: <resultMap id="resmap" class="java.util.HashMap"> <result property="custId" column="cust_id"/> <result property="routerId" column="router_