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
Similar Messages
-
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 -
Numbers Charts: Stacked bar chart with two sets of data
Hi....newbie with first post
I'm trying to create a stacked bar chart with two lots of comparative data.
So, there is Basic + Overtime for April 2010 as one stack (ie the basic is one colour, stacked on top is the overtime in a different colour)
Basic + Overtime for April 2011 next to it.
I can get April figures next to one another as four separate columns (2 x basic, 2 x overtime), or I can get all four figures in a single stack, but I can't to two columns (one for each year) of basic and overtime.
Any ideas?UK,
What you are trying to do will require that you interleave the two sets of two-series data into one longer two-set series, and then plot just the one pair of series. Clear as mud?
What I'm saying is that you have to fake out the program into thinking that you have just two sets, not four.
You will have one series that has, for instance Apr 2010 Basic, Apr 2011 Basic, May, 2010 Basic, May 2011 Basic, etc.. This other series in that chart will have Apr 2010 Overtime, Apr 2011 Overtime, May 2010 Overtime, May 2011 Overtime, etc.
The bad thing here (I'll anticipate your first complaint) is that 2010 and 2011 data will have the same color for Basic and another color will be assigned for both 2010 Overtime and 2011 Overtime.
To get separate color sets for 2010 and 2011 data pairs, you will have to create two charts and overlay them. Both charts would be built in the alternating year format described above, but in one chart all the 2010 data would be blank and in the other chart all the 2011 data would be blank, leaving spaces in the chart for the data from the other chart to nest in.
Jerry -
Using a Stacked Bar Chart With an Accordian Menu
I am having difficulty using a stacked bar chart with an accordian menu. I am able to have one stack bar populate but the other four stays blank. There seems to be an issue with my destination. I dont think it likes that my destination is more than one row and one column. Is there a way to fix this?
Hello,
I think there may be an issue in how your model/Accordion Menu was configured. What insert option are you using? Your destination should only be 'one' row OR 'one' column at the most.
Thanks,
AJ -
Line Chart with Multiple Series
Post Author: JayZee
CA Forum: Charts and Graphs
HI
I am trying to create a line chart with multiple series for trend analysis on CR XI but not having much luck, I thought it would be so simple to do!
My data is provided summarized on the server and is returned as 12 rows:
Month Year1 Year2 Year3 Year4 Year5January 100 80 75 90 120February 85 25 40 25 80etc for the rest of the months
My problem is that I can only get the chart to accept the values to display as a summary and not just as the data pulled back from the server. I have read an article on the support site for Crystal 6.0 but it doesn't seem to translate well into XI.
If necessary I could redesign the table to bring back un-summarized data but that is quite a big job.
Any help greatly appreciated.
JayPost Author: Tim Wise
CA Forum: Charts and Graphs
In the chart expert, put Month in the 'On change of' box and put each year in the 'Show values' box. This puts the month on the x-axis and plots each year as a line.
Is that what you want?
I did this in CR 2008 using your data in an Excel sheet. -
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. -
Bar Graph with multiple series
I am trying to created some graphs in 10g reports. I want a graph that has 2 bars per group. On the layout tab I have column A and Column B on the bars line and Column C on the groups line. When I run the report Columns A and B show up as 1 bar on the graph. Where do you specify the values for series 1 and series 2?
Hi,
When you create a bar chart using a "group by" attribute, the resulting groups are displayed as stacked bars or as dual Y bars (shows the groups side by side). The button in the chart's toolbar (with stacked bar chart icon) is used to change this presentation. You can display the data as it is, without aggregation, by using the line or scatter charts. The line/scatter graphs should allow you to display multiple Y values (series), but there appears to be a bug that causes a single line to be displayed instead. Multiple series bar charts and label renaming are not available in the current release.
Thanks,
Marat -
Drill Down between 2 stacked column chart with multiple rows.
Hi,
Can anyone please help me.
1) i have to create stacked column chart with Region and cout of calls for previous 3 quarters.
2) the 2nd stacked column should display the priority with the count of calls for the respective selection of region on the 1st chart..
to achieve this,
i'm using 2 stacked column charts and 1 lebel baseb menu.
from this i can able to get the drill down from label based menu to 2nd stacked column chart but i couldn't able to done the same from 1st stacked coumn chart.
Becoz my data is multiple row for each quarter.
please suggest me to achieve the drill down between 2 stacked column charts.
assume that my data like below.:
coulmns for 1st stacked column chart : Region, Q2,Q3 &Q4
Region Q2 Q3 Q4
Other 3658 3497 497
NA - North
America 3 3 1101
APJK 1 4 597
UK 324
EMEA North 1 1 288
CORPORATE 1 5 215
LA -
Latin America1 2 208
EMEA 1 199
EMEA South 1 1 169
Coulmns for 2nd coumn chart: Region, Priority, Q2,Q3,Q4 ()which is derived from 1st table.
Region Priority Q2 Q3 Q4
Other D: End of Next Day 1568 1613 239
Other C: End of Day 983 893 119
Other A: 2 Hour 631 610 70
Other B: 4 Hour 396 318 56
NA -
North AmericaD: End of Next Day 2 2 514
APJK D: End of Next Day 3 297
NA -
North AmericaC: End of Day 284
NA -
North AmericaA: 2 Hour 1 170
UK D: End of Next Day 157
APJK C: End of Day 1 1 152
Other E: 3 - 5 Business Days 68 58 13
EMEA North D: End of Next Day 1 136
CORPORATE D: End of Next Day 4 107
NA - North America B: 4 Hour 1 104
LA - Latin America D: End of Next Day 1 1 86
EMEA D: End of Next Day 86
UK C: End of Day 85
APJK A: 2 Hour 79
EMEA South D: End of Next Day 72
EMEA North A: 2 Hour 69
EMEA North C: End of Day 56
APJK B: 4 Hour 55
EMEA C: End of Day 1 53
LA - Latin America C: End of Day 54
UK A: 2 Hour 49
EMEA South C: End of Day 1 44
CORPORATE A: 2 Hour 1 43
CORPORATE C: End of Day 44
LA - Latin America A: 2 Hour 1 42
EMEA South A: 2 Hour 1 32
EMEA B: 4 Hour 30
UK B: 4 Hour 30
EMEA A: 2 Hour 27
EMEA North B: 4 Hour 1 26
NA -
North AmericaE: 3 - 5 Business Days 25
LA - Latin America B: 4 Hour 23
EMEA South B: 4 Hour 20
CORPORATE B: 4 Hour 17
APJK E: 3 - 5 Business Days 13
Other F: 6 - 10 Business Days 6 4
Other G: 11 - 20 Business Days 6 1Hi Srinivas,
I'm using label based menu "filterd rows" only but i couldn't bind the drill down with the 1st stacked column chart.
for mor details:
1) i'm having 2 stacked coumn charts & 1 lebel based menu but eventhough i couldn't able to achieve.
if i select the lebel based values then the 2nd stacked column charts is giving detailed valus but if i keep my mouse on the 1st stacked column chart the there is no changes on the 2nd chart..
somewhere i'm mising the binding data between 1st stacked coumn chart & lebel based menu on drill down part.
Becoz i'm having multiple rows. so can you please try your and send me the xlf file using your concept. -
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 negative values
Hi,
trying to create a stacked bar chart I only get a grey picture. Reason: my data series provides positive and negative values.
Can anyone tell me a trick how to fix this problem?User614143,
try to add the minumm negative value (but positive) to the parameter for the axis.
e.g. show value+3000 (assuming -3000 is the minimum value)
If you don't have a limitation for the negative values, it doesn't work. (or try to calculate first the most negative value in a before header process)
hope this helps.
Leo -
Defining a scatter chart with multiple series
I am trying to create a scatter chart with two series. I am using CR8.5 and CR2008.
I am having difficulty with my data being presented correctly when I attempt to define the scatter chart. The data is temperature and weather use/sqft for two different years.
Year Period Temp Energy Use/sqft Year Period Temp Energy Use/sqft
2012 1/2012 52 3.7172 2013 1/2013 52 3.1712
2012 2/2012 62 3.7015 2013 2/2013 57 3.1449
2012 3/2012 70 3.7937 2013 3/2013 63 3.2039
2012 4/2012 76 3.9882 2013 4/2013 71 3.4551
2012 5/2012 82 4.2213 2013 5/2013 81 3.9903
2012 6/2012 87 4.4875 2013 6/2013 85 4.3650
2012 7/2012 90 4.4727 2013 7/2013 87 4.2072
2012 8/2012 86 4.6154 2013 8/2013 87 4.2560
I would expect to see something similar to the attached images of an excel files scatter chart. When I defined the scatter chart in Crystal Report, I need to define a field for 'On change of', and 2 'Values to show'.
I understand that this would not show the expected scatter chart but I went this direction as the series is to be the year.
On change of:
- Year
Show values:
- Temp
- Energy Use/Sqft
Problem is the sum of both is being shown. I am trying to keep the series together by year and showing each record as retrieved from the database.
Thank you,
JimYou can try using this charting tool for generating scatter charts:
http://htmldb.oracle.com/pls/otn/f?p=31517:58
Denes Kubicek -
Stacked bar chart with custom x axis labels
Is there a way to build this simple chart in labview that I did in Excel? I need to have many x axis labels and there could be from 5 to 100 of them depending on the data set.
Attachments:
Excel.JPG 33 KBHi id,
Thank you for your response. I hope you are doing well.
There is an example in the LabVIEW Example Finder (Help>>Find Examples..). It is titled, Stacked Bar Graph. You can search for it if you switch tabs in the Example Finder window. This should help you create a stacked bar graph. To help you with your veritcal axis labels, here is a knowledge base link that details the process:
How Can I Customize the X-Axis Labels On My LabVIEW Graph/Chart So They Appear Vertically?
http://digital.ni.com/public.nsf/allkb/1F7C1B089E45908E86256C8C0051894A?OpenDocument
Let me know if these examples help.
Best regards,
Anna L
Applications Engineer
National Instruments -
Non-stacked bar chart with subgroups
I want to create a regular bar chart (non-stacked) and display subgroups on the x-axis ..... that is, for each group on the x-axis I want to display multiple sub-groups within the major groups ..... I saw only one post regarding this but tried what I thought they were saying but it did not work ..... also I do not want to create a stacked chart, just a regular non-stacked chart
thank you very much
subgrp1 subgrp2 subgrp1 subgrp2 subgrp1 subgrp2
x axis -
group 1 group 2 group 3Please add the solution how did you resolve this issue to this forum
Thaknks
-p -
Help Creating Dynamic Stacked Column Chart with Multiple Criteria
Hi all. Im new here and hoping you can help. I have a dashboard Im trying to rebuild from scratch (our computer had a meltdown and we lost all our files). I did not build the dashboard initially so Im trying to recreate it from the flash file we were able to recover. I have come across a chart that I just cannot figure out how to do. I can figure out how to write an array in the Excel sheet that pulls the data into a table the way I need it to be but found out after I wrote that that Xcelcius doesn't support arrays so all my data disappears when I go into preview mode (which is especially frustrating since I can see the chart working fine in design mode). Anyway this is what the data table looks like
Month Year Company Positive # Negative # Neutral # Positive % Negative % Neutral %
October 2011 CompanyA 1234 1234 1234 10 10 10
October 2011 CompanyB 1234 1234 1234 10 10 10
October 2011 CompanyC 1234 1234 1234 10 10 10
October 2011 CompanyD 1234 1234 1234 10 10 10
November 2011 CompanyA 1234 1234 1234 10 10 10
November 2011 CompanyB 1234 1234 1234 10 10 10
November 2011 CompanyC 1234 1234 1234 10 10 10
November 2011 CompanyD 1234 1234 1234 10 10 10
December 2011 CompanyA 1234 1234 1234 10 10 10
December 2011 CompanyB 1234 1234 1234 10 10 10
December 2011 CompanyC 1234 1234 1234 10 10 10
December 2011 CompanyD 1234 1234 1234 10 10 10
The original chart was built so that you would choose the month from a combo box and then the company names would show up along the X axis with their % amounts shown in the stacked column. I know how to make a combo box work and I know how to make a stacked column chart work with static data. I cannot for the life of me figure out how to get it to work so that when you choose the month from the combo box it filters the data. I've tried filtered rows but I'm just missing some information that makes it work and I can't figure out what that information is. It has to be able to get the month/year combo from the combo box and then go to the table, filter it by month and year and then create a multi-row table of data with just the company and the percent values. Any help would be greatly appreciated!Which connection you are using?
IF quite difficult if you are working under static data. -
AreaChart : Customizing HorizontalAxis of a chart with Multiple Series
Hi there,
My area chart has 5 series which has same x_value while different y values and a value which i want to show as label.
all series have dataProvider with following object
{x: x_value, y:y_value, l:label_value}
series xField is using "x" which is also showing values from x at x-xis (horizontal) axis.
My problem is
I want to use same xField=x but i want to show "l" as label values.
How can i do that?
I tried using a LinearRenderer on horizontal axis and provided a custom label function, but i only get "x" value and NOT "l" to show label.
ThanksI wasn't able to do something like what you describe, but I was able to do this:
I defined column A of the table as a Header Row, selected the cells in the table, and chose this chart type (2D 2 Axis):
Then I clicked the chart and in the pane at the right checked 'Axis Name' in the Axis tab and added the axis names.
Maybe this can give you an idea of how you can illustrate the relationships that you want to show.
SG
Maybe you are looking for
-
Frame in a Frame??
Hi Is it possible to have a frame(child) imbedded in a scrollPane(!!!) in another Frame(Parent)? This is a what I want!! A frame imbedded in another. Is this possible without using internal frames? Thanks pavan.
-
I'm trying to display text on a JOptionPane.showMessageDialog, but sometimes the the string can be so long the dialog box goes off the computer monitor. Is there a way to do text wrapping on a JOptionPane box?
-
when im listening to music and try to go into cover flow the music stops and sends me to the home screen. the same thing with music videos theyll just stop and then take me to the home screen, its so annoying. anyone else having this problem
-
Web Client Doesn't Display Address Book in 9.0.4
Is there any way to get the Address Book feature enabled for users in the Web client of Calendar in version 9.0.4? If this feature isn't supported yet, will it be in the next release?
-
ARD 3 on 10.4.6 (ppc) not saving setup info
Hi, I'm new to ARD, but really love it works great! Except one problem. every time i run the application it starts the 'Remote Desktop Setup' dialog window asking for a new password, and (after providing this) the application forgets all the new list