Stacked Bar Chart - no data found
I have a page with a report and a stacked bar chart. They are both based on the same query condition. When I call the page the report runs and shows the result but the chart shows "no data found" message. After pressing the submit button the chart finaly shows the result. Any clues what the problem could be? Can I create a process that would submit the page when I open it? Eventually only once per session?
This is a funny behavior. It occurs only sometimes. I am not able to reproduce it by will.
Denes Kubicek
Hello Flavio,
I know why this happened in my case - I added an additional condition using a page item as a bind variable to my ...WHERE... statement. This item had a default value.
After that the chart showed no data found but everything else worked fine. As soon as I comment out that condition (I have plenty of similar conditions in that statement and they work), the chart would show as expected. It was like the chart select statement would see the item empty (NULL) but the report using the same conditions would find the default value in it.... after submitting the page, it worked fine for the rest of the session.
Just now, I added a computation process for that page item, to set it on a static value (the same I had as the default value) - On Load Before Header. I also added a condition to it to fire only if the value of the item is NULL, to avoid unnecessary processing. After this my chart showed what was expected.....
I am sure your problem is of a similar nature. You need to check your select statement I suppose.
Denes Kubicek
Similar Messages
-
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. -
Help need in Stacked bar vertical - No data found message
I am using Stacked bar vertical with the 3 series. The problem is if any one of the series returns zero rows for the query it displays the No data found message for all the series and blank graph is there on screen with just x and y axi with the name.
The result i want is if any series in the graph returns zero row for the query it should executed the other series and show the graph accordingly for the series fetch the data.
all these queries are returning the data when run on database instead of one.
Can anyone help me for this?Hello Sunil,
you may find some info here:
Document on Multiple Series SVG Line Chart
Generally speaking, if you want your queries to return "dense" data, you must ensure that a zero (Y value) is returned against each X value. If your queries return no rows, it means you must "artificially" create values, probably rewriting the queries with an outer join to a table returning the desired X values and using NVL function to replace null (Y) values with zeros.
Also, be careful with the order of X values, it really matters, otherwise you'll get skewed charts!
Bye,
Flavio -
Workaround for NO DATA FOUND in stacked bar chart?
Hello, Ive got a stacked bar chart in the making, when one of the series doesnt have data, the whole chart show the no data found message but not the other series that do have data. Is there a workaround for this? can I catch the exception in the Series Query? Or is there any other workaround someone has tried with success???
thanks for any help or suggestion!!!Ok, figured out a workaround based on my rusted SQL memories (its probably not the most efficient way to go), made a view like this:
CREATE OR REPLACE FORCE VIEW "VISTA1" ("NOMBRE", "TIPO_LOCAL", "TIPO", "FECHA", "OPCIONAL") AS
select USUARIO.NOMBRE, USUARIO.TIPO TIPO_LOCAL, CONSUMO.TIPO, CONSUMO.FECHA, CONSUMO.OPCIONAL
FROM USUARIO
LEFT JOIN CONSUMO
ON USUARIO.ID_USUARIO = CONSUMO.USUARIO_ID_USUARIO
on this view, i made individual selects and UNIONed them for a comeplete table, with null values being zero, just what was needed:
select null link,
LOCAL,
total "CANTIDAD"
FROM
select
count(A.TIPO) TOTAL, 'SIGO SAMBIL' LOCAL
FROM VISTA1 A
where A.tipo='3 PACK' AND A.NOMBRE = 'SIGO SAMBIL'
UNION
select
count(A.TIPO) TOTAL, 'A GRANEL' LOCAL
FROM VISTA1 A
where A.tipo='3 PACK' AND A.NOMBRE = 'A GRANEL'
etc.....
for each series, i then had to change the A.tipo value to whatever the new series should be.
regards,
Mariano. -
Stacked bar chart showing zeros when there is no data
Hi,
I am developing a stacked bar chart which plots month vs sales of 3 different products.
I am showing data points and the total sales on chart. Every thing looks good except the zeros displayed on the chart if there are no sales for a product for a particular month... how to get rid of these zeros ? i mean how to display the value only if there is some data ?
ThanksSounds like you have a left outer join from your product table to the sales data. Thus product is listed even when no data present.
Try changing join to Equal
Ian -
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 -
Problems with date in stacked bar charts
I am having a lot of problems trying to generate stacked bar charts where one of the fields is a date. Using the chart generator in word, the stacked bar charts work perfectly if I use (for example) Labels=Country, Series=Product, Values=Quantity(Sum) . The correct quantities are shown.
However if I change Country to Expiry (date), the quantities are all wrong ? Such that I have no idea how it is obtaining the values.
The generated code is :
<Graph depthAngle="50" depthRadius="8" pieDepth="30" pieTilt="20"
seriesEffect="SE_AUTO_GRADIENT" graphType="BAR_VERT_STACK">
<Title text="" visible="true" horizontalAlignment="CENTER"/>
<LocalGridData colCount="{count(xdoxslt:group(.//G_MED, 'EXPIRY'))}"
rowCount="{count(xdoxslt:group(.//G_MED, 'PRODUCT'))}">
<RowLabels>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
select=".//G_MED" group-by="PRODUCT">
<Label>
<xsl:value-of select="current-group()/PRODUCT"/>
</Label>
</xsl:for-each-group>
</RowLabels>
<ColLabels>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
select=".//G_MED" group-by="EXPIRY">
<Label>
<xsl:value-of select="current-group()/EXPIRY"/>
</Label>
</xsl:for-each-group>
</ColLabels>
<DataValues>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
select=".//G_MED" group-by="PRODUCT">
<RowData>
<xsl:for-each-group select="current-group()" group-by="EXPIRY">
<Cell>
<xsl:value-of select="sum(current-group()/QUANTITY)"/>
</Cell>
</xsl:for-each-group>
</RowData>
</xsl:for-each-group>
</DataValues>
</LocalGridData>
</Graph>Any help would be greatly appreciated !
Cheers,
BrentThank you all for your replies so far:
@Alex: You are right, using your short script in sqlplus gives me also 2009 as result
So, I am now posting the essential excerpts of the procedure because the whole one is to large:
function insert_szrl (my_fremd_name varchar, my_elementadresse varchar,
my_zeitstempel varchar, my_wert float,
my_status varchar, my_zyklus varchar,
my_offset integer,
my_quelle varchar, my_nzm_daten integer) return integer is
begin
my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
if my_zyklus = 'mm' then
my_zeitstempeldate := add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1) +1 + (my_tageswechsel+1/24);
my_days := to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy') - add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1);
my_year := to_number(to_char(to_date(my_date,'dd.mm.yyyy'), 'yyyy'));
ptime.umschalttage_tuned (my_year, my_ws, my_sw);
end if;
While debugging the complete procedure I see since the start only a date which looks like '01.04.2009 07:00:00'
Edited by: user10994305 on 19.05.2009 15:58
Edited by: user10994305 on 19.05.2009 15:58 -
BIP 11.1.1.7 - Stacked Bar chart data label not visible in pdf
Hi all,
I have a report built with the online editor. This contains a stacked bar chart with percentage values in a repeating section and I made the property DataVisible=true.
When I view the report in interactive mode it all works: I can see the data label for every value of the parameter but when I view in any other format (PDF, PPT, ecc..) the data labels are visible in the first chart (for the first value of the parameter) while in the other charts they aren't. This doesn't happens for other types of chart, for example with a pie chart.
Can someone help me or tell if it is a bug?
Thanks,
MicaelaHi Mitalee,
Would you please check the PAM at https://websmp108.sap-ag.de/~sapidb/012002523100018972812014E
On page 11 it says 64 bit IE11 is not supported; is your IE11 32 bit or 64 bit? -
Suppress zero values for data labels in a stacked bar chart.
I've seen this question asked before, but I can't seem to find anyone who knows how to do this. I've made a stacked bar chart from a crosstab result, and I don't want to show labels that have a zero value. This seems like others would have this same issue as it can really clutter up a chart. The link below shows my chart. I am trying to remove the labels that say "On-PW 0"
http://i1199.photobucket.com/albums/aa472/gno722/question%20examples/crystalquestion.jpgthe steps below will work on a regular chart..not sure about stacked...
1) in Preview mode of the report click on a Y axis value and go to Data Y Axis Options
2) go to Scale and set a Minimum Value of .001
3) check the Don't Draw Out Of Scale Values
cheers,
jamie -
Show Data labels on stacked bar chart
Hi All:
I am trying to show an inside data label on a stacked bar chart. For some reason Flex 4 does not like labelPosition="inside" in the mx below. Thanks Bob
<mx:BarChart
id="ProxChart" x="85" y="76" height="192" width="630" type="stacked">
<mx:horizontalAxis>
<mx:LinearAxis maximum="20"/>
</mx:horizontalAxis>
<mx:series>
<mx:BarSeries id="MySeries" displayName="Test" xField="" labelPosition="inside"/>This will do it.
import mx.charts.*;
private function myLabelFunction(element:ChartItem, series:BarSeries):String
return(element.item.toFixed(1));
<mx:series>
<mx:BarSeries id="MySeries" displayName="Test" xField="" labelPosition="inside" labelFunction="myLabelFunction"/> -
I have a stacked bar chart that works fine until one of the series involved returns no data - then it shows an empty chart with "no data found" on top. Anyone has any idea? Thanks
Sorry for expressing my proposal in a wrong way. This is what I meant:
http://htmldb.oracle.com/pls/otn/f?p=31517:46
If you click on the dept 70 (which doesn't exist in my table) the chart will still show up. This workarround is good for the most of the cases where there is a requirement like yours. There , you will also find the chart query behind.
The problem of no data found message was in my case present mostly there, where I needed to track a development of values grouped by time periods (months, quarters) and then query some portions of it.
Denes Kubicek -
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 ?? :-(
-
Color code a stacked bar chart?
Post Author: mmueller12
CA Forum: Charts and Graphs
Is there a way to color code a stacked bar chart? We need to have one horizontal bar with the colors listed below. In other words, we need to color code a date range to a specific color based on the "Color" column. I have it to the point of different colors for each date range in a single stacked bar, but cannot figure out how to link to a specific color.
ID
StartDate
EndDate
Color
1
10/18/2007
11/15/2007
YELLOW
1
05/31/2007
10/18/2007
YELLOW
1
03/08/2007
05/31/2007
YELLOW
1
01/25/2007
03/08/2007
YELLOW
1
06/09/2006
01/25/2007
ORANGE
1
03/17/2006
06/09/2006
RED
Thanks in advance,Melissa LordPost Author: mmueller12
CA Forum: Charts and Graphs
Thanks for the replies - here are the answers to your follow-up questions:
Lugh - I am using Crystal v10, I don't find a "Color Highlight tab".
Ranjit - I found this tab, but the only "conditional format" must be based on the start date (x-axis) which is not the field that I need to use to change the color. It appears that I can only use the x-axis values when conditionally formatting a bar, which is not what I need. I need to use a field not actually used in the graph to conditionally format the colors. -
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
AurobindoYou 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'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>
-
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
Maybe you are looking for
-
Error while trying to access User Management Engine
Hi, when I am trying to login to UME using J2EE_ADMIN user id and password, I am getting the following error. Unknown message (ID = java.lang.ExceptionInInitializerError at com.sap.i18n.cp.ConvertBase.CheckConverterJNIAvailable(ConvertBase.java:80)
-
Want to check on an order but don't have the order number
I ordered a recovery disk yesterday. Before I could write down the order number from the confirmation page I accidentaly clicked on something because I lost the page. Course I got an email confirmation on the ac cord but I did not get an email
-
Pages&Keynote&Number shows as Free in App Store but cannot be downloaded?
Signing in and out App Store doesn't help. Changing account region doesn't help. When I click on the Purchased tab, these 3 apps are there listed as free but nothing happened when i click on it. Now i even cannot purchase these apps normally.
-
HT201272 I can't find my songs I just bought on my iPod touch..please help thank you
I can't find the songs I just bought on my iPod touch. Any help you can give me is appreciated.. Thank you
-
Hi Team, In presentation services Column properties--->column format---> value suppression --->Suppress,Repeat,Default what are these 3(Suppress,Repeat,Default) options when we have to select these options... Thanks,