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
Similar Messages
-
SVG: Chart error: ORA-20001:
Hi,
We are using 1.6.1.00.02 . I got a problem with SVG chart. The query returns following error:
SVG: Chart error: ORA-20001: bar_char_error ORA-20001: get_data_error: ORA-20001 Fetch error: ORA-01782
The column names are correct. The same query works perfectly in HTMLDB reports.
Following is the query:
SELECT
TRANSACTION_dATE,
SUM(SALES) SALES,
SUM(COST_OF_SALE) COST_OF_SALE
fROM HTML_SALES_REPORT_View
WHERE transaction_date between
'01-DEC-2004' and '31-DEC-2004'
GROUP BY TRANSACTION_DATE
Help will be appreciated.
Regards,
HamayunHi,
you have to use the following syntax:
SELECT link, label, value
Example
SELECT
null link, TRANSACTION_dATE label,
SUM(SALES) value ,
fROM HTML_SALES_REPORT_View
WHERE transaction_date between
'01-DEC-2004' and '31-DEC-2004'
GROUP BY TRANSACTION_DATE
And to display your cost_of_sale data you have to add a second series like this:
SELECT
null link, TRANSACTION_dATE label,
SUM(COST_OF_SALE) value
fROM HTML_SALES_REPORT_View
WHERE transaction_date between
'01-DEC-2004' and '31-DEC-2004'
GROUP BY TRANSACTION_DATE
because you can't display two lines with just one query.
I hope this will help.
Regards, Jörg -
Chart Flash Chart error: ORA-20001: Print Chart Data: Flash Chart error: OR
Hi,
if the query where my resource gantt chart is based on returns more the 107 rows, i will get the following error:
chart Flash Chart error: ORA-20001: Print Chart Data: Flash Chart error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If i reduce the number of results, the chart is working fine.
Max rows attribute of the series is adjusted to 4000
Any idea?
Thank youThank you,
I have tried it, but it I am not able to make it work, here you find a snip of my pagesource:
<anygantt> <resource_chart>
<resources>
<resource id="341" name="Drexler, Franz" />
<resource id="5" name="Gross, Johannes-Ludwig" />
<resource id="8" name="Pecherski, Andrzej" />
<resource id="131" name="Steinmetz, Raphael" />
<resource id="191" name="Jenks, Raymond" />
<resource id="33" name="Alhambra, Roda Marie" />
<resource id="31" name="Daminescu, Adrian" />
</resources>
<periods>
<period resource_id= "31" start="24-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="27-DEC-12 12.00.00.000000000 AM" end="28-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="02-JAN-13 12.00.00.000000000 AM" end="04-JAN-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="26-JAN-13 12.00.00.000000000 AM" end="04-FEB-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="01-JAN-13 12.00.00.000000000 AM" end="06-JAN-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="22-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "5" start="21-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "31" start="07-JAN-13 12.00.00.000000000 AM" end="11-JAN-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="21-DEC-12 12.00.00.000000000 AM" end="21-DEC-12 12.00.00.000000000 AM" style="blue" />
<period resource_id= "33" start="26-DEC-12 12.00.00.000000000 AM" end="28-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "33" start="25-FEB-13 12.00.00.000000000 AM" end="25-FEB-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="28-MAR-13 12.00.00.000000000 AM" end="29-MAR-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="09-APR-13 12.00.00.000000000 AM" end="09-APR-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="01-MAY-13 12.00.00.000000000 AM" end="01-MAY-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="12-JUN-13 12.00.00.000000000 AM" end="12-JUN-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="26-AUG-13 12.00.00.000000000 AM" end="26-AUG-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="01-NOV-13 12.00.00.000000000 AM" end="01-NOV-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="30-DEC-13 12.00.00.000000000 AM" end="30-DEC-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="31-DEC-13 12.00.00.000000000 AM" end="31-DEC-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="21-AUG-13 12.00.00.000000000 AM" end="21-AUG-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="15-OCT-13 12.00.00.000000000 AM" end="15-OCT-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "8" start="23-DEC-13 12.00.00.000000000 AM" end="23-DEC-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="27-DEC-13 12.00.00.000000000 AM" end="27-DEC-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="30-DEC-13 12.00.00.000000000 AM" end="30-DEC-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="02-JAN-14 12.00.00.000000000 AM" end="03-JAN-14 12.00.00.000000000 AM" style="green" />
<period resource_id= "5" start="31-MAY-13 12.00.00.000000000 AM" end="31-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="21-MAY-13 12.00.00.000000000 AM" end="24-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="27-MAY-13 12.00.00.000000000 AM" end="29-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="31-MAY-13 12.00.00.000000000 AM" end="31-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="02-APR-13 12.00.00.000000000 AM" end="05-APR-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "5" start="11-FEB-13 12.00.00.000000000 AM" end="11-FEB-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="29-JUN-13 12.00.00.000000000 AM" end="14-JUL-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="16-AUG-13 12.00.00.000000000 AM" end="16-AUG-13 12.00.00.000000000 AM" style="blue" />
<period resource_id= "8" start="26-AUG-13 12.00.00.000000000 AM" end="30-AUG-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="02-SEP-13 12.00.00.000000000 AM" end="06-SEP-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="15-FEB-13 12.00.00.000000000 AM" end="15-FEB-13 12.00.00.000000000 AM" style="blue" />
<period resource_id= "5" start="13-MAR-13 12.00.00.000000000 AM" end="13-MAR-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="22-MAR-13 12.00.00.000000000 AM" end="22-MAR-13 12.00.00.000000000 AM" style="blue" />
<period resource_id= "33" start="20-MAR-13 12.00.00.000000000 AM" end="20-MAR-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "5" start="08-APR-13 12.00.00.000000000 AM" end="08-APR-13 12.00.00.000000000 AM" style="blue" />
<period resource_id= "31" start="05-APR-13 12.00.00.000000000 AM" end="05-APR-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "31" start="02-MAY-13 12.00.00.000000000 AM" end="03-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "341" start="01-JUL-13 12.00.00.000000000 AM" end="22-JUL-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "341" start="09-MAY-13 12.00.00.000000000 AM" end="12-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "191" start="04-JUL-13 12.00.00.000000000 AM" end="06-JUL-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "31" start="15-JUN-13 12.00.00.000000000 AM" end="30-JUN-13 12.00.00.000000000 AM" style="green" />
</periods>
</resource_chart></anygantt>
</textarea>
<div id="chartDiv"></div>
<script type="text/javascript" language="javascript">
/* Set default swf path */
AnyChart.swfFile = 'i/flashchart/anychart_6/swf/OracleAnyChart.swf';
/* Create new gantt chart */
var chart = new AnyChart();
chart.width="2500";
chart.height="2500";
/* Get string data from text area */
var data = document.getElementById('rowData').value.toString();
/* Set data */
chart.setData(data);
/* Write chart to "chart" div */
chart.write("chartDiv");
</script>
do you have a idea whats wrong? thank you -
Problems with stacked bar chart in Java SDK and CRDesigner
Hi @ll,
I have an issue with the rendering of stacked bar charts through the Java SDK and the CRDesigner. unfortunately, my research in this forum and with the help of aunt google didn't lead to success.
These are my problems:
I have a stacked bar chart which, when datasets/stacks increase in number per bar, displays errors:
1.) the single stacks of the bar merge together randomly and form bigger stacks with the sum of the singles. the information of single stacks gets lost in the bar.
2.) the total sum of all singles is bigger than the maximum value on the y-axis displays. thus, the scaling is wrong.
1.) appears in the CRDesigner as well as in the Java SDK
2.) only occurs in the Java SDK
Is there any trick to turn the random merging of slices off?
Is the false scaling a known issue and is there a bugfix/workaround?
many thanks for all advice
Tomhi folks,
i found the answer to the above problems:
when you specify the recordfields that are responsible for the change to the next stack or bar, the 'stack' fields have to be unique.
in my case i evaluated durations in msec (as stacks) from different devices (as bars). randomly i had the same durations for one device. what happens is, that CR does not notice a change and accumulates to the first stack with the same duration.
surprisingly this also seems to derange the axis scaling. fix the problem by simply using an overall unique recordfield like rownum or a formula that forms the current timestamp to text as identifier for the stacking.
cheers
.t -
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 -
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 -
Problem with stacked bar chart label
Hi,
According to page export sql file I'm using APEX version 2.0.0.00.49.
I'm trying to make stacked bar chart but no matter what I do I can't have series label to be displayed within the chart area.
Is it a bug fixed in a latter version of APEX ? Is there something particular to do (for example an option to thick) to have them displayed ?
thank you for help.The answer is yes there is something particular to do.
If you want your stacked bar chart to display well all series have to be the same and not null.
So you must write outer joined queries with nvl in the select. -
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 KBAnother 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 -
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 -
SVG line chart raises ORA-20001 witha valid SQL query
Hi,
I am on version 1.6 & 10g database. I developed an SVG line chart which was working fine, but I wanted to fill in some sparse data by using data densification. So I enhanced my query with a partitioned outer join as follows:
select null l, month_start, issue_count
from
(with dates as
(select add_months
( to_date( '01-jul-2004' ),
column_value-1) dt
from table( vtable(12) )),
iss as
(select trunc(start_date, 'MON') mon , count(*) cnt
from issues
group by trunc(start_date, 'MON'))
select dates.dt month_start, NVL(iss.cnt, 0) issue_count
from dates left outer join iss on (dt=mon)
Now the chart throws an ORA-20001 get_data error. The query is valid as it runs in SQL*plus no problems. What is it choking on?
Thanks,
SteveSteve,
I didn't mean for you to put in on the Studio, just install the app in your workspace on htmldb.oracle.com, use SQL Workshop there to compile your procedures, tell us the app ID, and that's it.
The error message presentation needs some improvement, give us time. We're spending most of our energy on improving the capability of the product.
Scott -
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 -
Combining a Line Chart with a Bar Chart
I'm required to render a chart that has a line chart in the background with a bar chart in the foreground. BarChart requires with one of the axes be Category while the LineChart needs to have both axes be Numeric.
I had seen another post suggesting using a StackPane to put 2 distinct charts on top of each other. I don't think this will be suitable for this due to how different the one axis needs to be.
My hunch is to simply write a new XYChart that renders bars instead of lines. Any other ideas?
Thanks,Hi Chirs,
In SSRS, the chart type is by design. It is not support vertical line chart.
Reference: http://technet.microsoft.com/en-us/library/dd220461.aspx
Since the issue is by default, I recommend you that submit this suggestion at
https://connect.microsoft.com/SQLServer/. If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the
level of service provided.
If you have submit a feedback, could you please post the thread there? It will be very beneficial for other community members who have similar questions.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
I am attempting to create a stacking bar chart which expresses monthly sales goals and monthly actual sales together as one bar. Visually, it would look like a thermometer, with the sales goal rendered as an outline, and the actual sales filling in the outline. So both bars should start at 0.
Dollar amounts appear up the x-axis, and the months appear across the y-axis. There will be 12 bars per chart. Unfortunately, each month has a different goal.
Is there a way to create this type of chart, using only one chart? (Not by stacking two charts on top of each other.) My boss, who has requested this chart, will be updating it herself, and has told me she needs it to be as simple as possible.
Does anyone have any suggestions for getting the bars to stack on top of each other, instead of adding together? Thank you for your time and assistance.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 -
Hi,
My department is conducting a series of SWOT sessions. Each item submitted during the sessions is given a category (such as Project Management), a quadrant (such as Strength), and a participant (such as Staff). I'm trying to display a stacked bar chart that will show the amount of items per quadrant for each category.
I ran into, what looks like, the common bug with null values being returned. I tried to fix this using the query below. I use the same query below for 4 series (Strengths, Weaknesses, Opportunities, Threats) and hardcode the quadrant name accordingly (is that correct?). If only one series exists, the graph works fine. If more than one exists, the graph does not display (no error is given, it simply does not display). Does anybody have any insight? Am I taking the wrong approach with my query?
select null link, c.category_name label, nvl(count(i.item_name),0) value
from swot_item i, swot_category c, swot_quadrant q
where i.item_category = c.category_id
and i.item_quadrant = q.quadrant_id
and q.quadrant_name = 'STRENGTH'
AND (instr(':'||:P1_CATEGORY_LIST||':',':'||i.item_category||':') > 0 OR TO_CHAR(:P1_CATEGORY_LIST) = 'ALL')
AND (instr(':'||:P1_PARTICIPANT_LIST||':',':'||i.item_session||':') > 0 OR TO_CHAR(:P1_PARTICIPANT_LIST) = 'ALL')
group by c.category_name
union all
select null link, c.category_name label, 0 value
from swot_category c where c.category_name not in (select c.category_name
from swot_item i, swot_category c, swot_quadrant q
where i.item_category = c.category_id
and i.item_quadrant = q.quadrant_id
and q.quadrant_name = 'STRENGTH'
AND (instr(':'||:P1_CATEGORY_LIST||':',':'||i.item_category||':') > 0 OR TO_CHAR(:P1_CATEGORY_LIST) = 'ALL')
AND (instr(':'||:P1_PARTICIPANT_LIST||':',':'||i.item_session||':') > 0 OR TO_CHAR(:P1_PARTICIPANT_LIST) = 'ALL')
group by c.category_name
Thanks,
BrianBrian,
Which version of APEX are you using? In 3.0, you can use a Flash chart, which supports a single query for all 4 series like this:
select null link, c.category_name label,
sum(decode(q.quadrant_name,'STRENGTH',1,0)) "Strengths",
sum(decode(q.quadrant_name,'WEAKNESS',1,0)) "Weaknesses",
sum(decode(q.quadrant_name,'OPPORTUNITY',1,0)) "Opportunities",
sum(decode(q.quadrant_name,'THREAT',1,0)) "Threats"
from swot_item i, swot_category c, swot_quadrant q
where i.item_category = c.category_id
and i.item_quadrant = q.quadrant_id
AND (instr(':'||:P1_CATEGORY_LIST||':',':'||i.item_category||':') > 0 OR TO_CHAR(:P1_CATEGORY_LIST) = 'ALL')
AND (instr(':'||:P1_PARTICIPANT_LIST||':',':'||i.item_session||':') > 0 OR TO_CHAR(:P1_PARTICIPANT_LIST) = 'ALL')
group by c.category_name- Marco -
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
Maybe you are looking for
-
I have two desktop macs, a macbook air, two iPads, and two iPhones. I have one Apple account that I use for all music - including music my college aged kids download. My problem is that I would like to get all the music into one library, delete the
-
can someone please help? i brought a touch 4g and docking station for my wife (dock is a iwantit) now when i connect the touch to it and play music the music video does'nt play it just shows a scene saying "connected to the tv" well its not! its just
-
It steams movie previews so i know it is connected to the internet and it sees my movies but when i click on them to play they take unusually long and then if they start they just dont load. I have had this unit for a year and have not had any proble
-
Show dynamic columns in ALV table
I have a question that i need to create report in ALV like this ... i need to select doc date e.g. from 03.11.2007 to 05.02.2008 and the report is expected to show like this SO# | cust | sales gp | 2007-11 order amt | 2007-12 order amt | 2008-01
-
Adaptacion de resolución/ Adobe Muse
Hola! Necesito saber como puedo hacer que mi pagina de Muse se adapte a diferentes resoluciones de pantallas. Hay alguna manera?