SVG Chart Cluster Bar Vertical messes up the Series
Hello friends
I am trying to do a Risk chart which is No of Items by Risk Level By Department
So I have a set of series that are set up as follows
select null link, department_name Department, count(risk_id) from ECM_RISK where risk_level = 6 group by DEPARTMENT_NAME
select null link, department_name Department, count(risk_id) from ECM_RISK where risk_level = 5 group by DEPARTMENT_NAME
select null link, department_name Department, count(risk_id) from ECM_RISK where risk_level = 4 group by DEPARTMENT_NAME
select null link, department_name Department, count(risk_id) from ECM_RISK where risk_level = 3 group by DEPARTMENT_NAME
etc.
Now what happens is that if there are no records for that department in any of the risk levels, the department name is not getting pickedup. As also the scale of the graph is wrong and the no of risk items depicted.
The individual query on SQL runs correctly , but the graph is not
Please help with your ideas
Thanks
Mike,
See also this thread:
Document on Multiple Series SVG Line Chart
Sergio
Similar Messages
-
Charts: Gap between Vertical Axis and the chart area
Friends,
I have a really wierd issue and I am sure I am doing
something wrong.
I am trying to align 2 charts that are placed vertically. I
want to align the left vertical axis and the gridlines within them.
Aligning the left vertical axis is easy and done but aligning the
grids is becoming challenging and I have already spent a few hours
on this problem.
Here is a wrong chart image ...
Wrong
chart image
The line of the LineChart (in the top chart) is touching the
left and right edges where as the bottom chart bars do not touch
the left/right edges. Due to this the gridlines are not aligned.
I had managed to solve this problem but I am not sure what
part of the code solved the problem. Here is the right chart image:
Right
chart image
In this chart, the line of the linechart (in the top chart)
is not touching the left and right boundary hence the gridlines are
alignd with each other.
I wonder what property of the chart controls the series
touching the left/right vertical axis or boundary. Your help is
appreciated.
Thankshere is some more information ...
I started changing some of the properties of the chart which
I mentioned is a RIGHT CHART and this is what I learnt ...
It was a CartesianChart hence it was creating the gap
between the left/right vertical axis and the actual chart area
(refer to the right chart image).
I changed it to a LineChart and it started behaving like the
chart in the WRONG CHART image.
Is there a solution to this problem? -
Maximum Rows for series in Charts (Cluster Bar Charts)
Question
Is there a way to dynamically define the "Maximum Rows" value for all the series in a cluster bar chart? I tried putting "&item_name." into the "Maximum Rows" field for a series, but get an Application Builder error indicating that the value should be numeric. I would like to set the "Maximum Rows" for all the series in a chart "on the fly".
Details
I have one horizontal cluster bar chart with 4 series on my page that has a variable number of rows i.e. the number of bar clusters that I want plotted varies based on the user's criteria. For one set of data there may be 10 clusters. If the user changes the criteria, the chart could then have 20 clusters. I have the "Maximum Rows" field for all 4 series in the chart set to 31 rows.
The Problem
The chart with only 10 clusters is two thirds whitespace. The 10 clusters fills up the bottom third of the chart. The top two thirds of the chart is blank. The chart with 20 clusters fills up the chart with no whitespace. The chart with 40 clusters gets the top 10 clusters cut off and only displays the bottom 31 clusters.
Any Suggestions
If you have any suggestions how I can accomplish this, please post them. Currently I am not interested in going outside of HTML DB. I may end up doing that though to get a more dynamic charting tool.
Thanks,
MikeNote 367711.1 deals with this issue. The contents of the note are the below:
At this time, this is not possible to dynamically set these charting attributes, however, an internal enhancement request has been created requesting that this functionality be incorporated into the product. The current plan is to incorporate this feature into 3.0 version of the product, however, this is just the current plan and can change depending on the complexity of the implementation. -
Cluster bar chart throwing XML exception
Hi,
I am new to oracle Application express,
I want to create a cluster bar chart in a page.
I tried creating chart in region with chart as (SVG) and cluster bar. When I created the 1 series worked fine.
After I created the page I edited the chart attributes to add one more series.
After adding the second series I could not view and
I get below error in firefox
XML Parsing Error: no element found
Location: http://192.168.1.137:8080/apex/f?p=102:20:4029915349100479:FLOW_SVG_CHART_R1580023116146280_en-us
Line Number 1, Column 1:
and nothing in internet explorer.
Have I missed out something?
Please help.
Thanks,
MaruthaHI,
Thanks for your inputs
Below is my query
Series 1
select NULL LINK, MIS_HOUR,Dialed from OBD_HOURLY_MIS where campaign_id=:P17_campaign_Id and mis_date=TO_CHAR(sysdate, 'DD-Mon-YYYY') order by MIS_HOUR
- 9 6999
- 10 6944
- 11 6862
- 12 6428
- 13 6630
- 14 6671
series 2 select NULL LINK,MIS_HOUR,Answered from OBD_HOURLY_MIS where campaign_id=:P17_campaign_Id and mis_date=TO_CHAR(sysdate, 'DD-Mon-YYYY') order by MIS_HOUR
- 9 4751
- 10 4658
- 11 4682
- 12 4511
- 13 4513
- 14 4584
Please help me.
Thanks,
Marutha -
Can't display the correct numeric characters in SVG charts with IE5.5 SP2
Hi all,
although I defined the following format model for the number in a SVG chart
FML999G999G999G999G990D00
I am still getting the dollar sign and the period, even if my current browser language preference is set to italian (IE 5.5 SP2).
Note that month names instead are correctly translated (in a region other than that containing the SVG chart).
On the other hand, this does not happen with Mozilla 1.7 which correctly shows the euro sign and the comma as decimal separator.
Bye,
FlavioFlavio,
This is a known bug with the chart builder reading Internet Explorer's browser language setting.
You should be able to bypass this by editing the Application Attributes and setting the Primary Application Language to Italian and setting the Application Language to derive from the Primary Application Language instead of the browser setting.
- Marco -
Hi,
I have SVG Chart, Chart Type: Cluster Bar, Vertical. I have 4 Chart Series. First:
SELECT null link, X.MESIC
FROM [email protected]
WHERE ..........
I have given dynamic Chart Series Query:
'SELECT null link, X.MESIC
FROM '||adm||'.[email protected]
WHERE .........."
but Apex write error:
1 error has occurred
Failed to parse SQL query
Please help as in what am i missing?You can either use a SQL query or a function returning SQL query as the source of your chart. Just adding some quotes to a query however doesn't make it dynamic nor a function. Try something like this:
begin
return 'select null, ename, sal from emp';
end;
Edit your existing chart source, and check "Save query without validation", so that APEX doesn't attempt to parse and validate the query when saving.
Hope this helps,
Marc -
Foreign characters in SVG charts
Hi!
I am again having some trouble using SVG charts.
I want to label the values with descriptions from a table. These descriptions often contain german umlauts. The resulting graph (line type) shows no values at all and the labels show a square character for each "ä" (ä) and after an occurrence of "ö" (ö) all of them are cut off completely. (I guess that's why I don't see any values at all - the parser stops when encountering an unknown character.)
A quick look at the XML specification tells me, XML processors must accept UTF-8 or UTF-16 characters. IOW, umlauts should not be a problem when encoded correctly. But I don't know whether the Adobe SVG Plugin I use adheres to that or not. Another possibility would be, that the font used to render the graphics does not contain umlauts. But that wouldn't explain why I don't see the values.
So, what encoding does HTML DB use for XML output? Does anyone know who is to blame? Of course, it could be me too.
My workaround will probably be a view which replaces the umlauts with ASCII transcriptions. But I would find that pretty ugly because I already have a bunch of these. Any other possibilities to circumvent this problem are welcome.
J.Additional info:
the XML file I can copy from the browser shows a translation of the umlauts like this:
Getr & # x 4 B A B ;e (spaces only for escaping; formerly Getränke)
When an "ö occurs, the remaining XML tags are being closed and the file ends:
K</text></g></svg> (should have been Körperpflege)
So with my smattering of XML I guess the output of HTML DB is wrong and I have to replace umlauts 'manually'. Please drop a line if you can confirm or confute that.
J. -
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 -
I am tasked by my PHB to produce a horizontally-stacked bar chart, the horizontal axis is for simple numbers of events, the bars are types of events. It should also have a negative 'reflection' (see drawing below) There is no Z axis. I have successfully generated this as a vertical stacked bar chart (very simple) and I think a simple rotate 90 degrees right would do it, but I can't find one.
It should look like this, ignoring the dashes:
######## ######## Event 1, Value 8
----###### ###### Event 2, Value 6, etc
Any ideas or workarounds welcome!
Keith Templeman
EDIT Post to refer to a horizontal cluster bar chart which is what I really want
Edited by: mansfields on Dec 3, 2008 2:44 PMThe horizontal equivalent of the vertical stacked bar would be a horizontal stacked bar, which is there on the menu for me to see. As said in my previous post 'what I am after is the horizontal equivalent of the vertical cluster bar'
To repeat what my requirement is, I have a group of sales people who have five measures each against them, and I can already graph them thus:
6 5 4 3 3
but I want to graph them this way, like 90 degrees rotated to the right:
6 ######
5 #####
4 ####
3 ###
3 ###
I think this would be called a horizontal cluster chart, and there is no option on the list that is called that.
Hope this makes it clearer, and thank you very much for your time and effort so far.
keith
EDIT
From the online books section - "you can only display clustered bar charts in vertical format". That sorts that out then.
Edited by: user10677133 on Dec 3, 2008 5:16 PM -
HI,
I have a cluster bar chart that runs well with one query. The problem occurs when you add more than one series. I get an SVG Chart error ORA-20001 The only differenece is that the second and third series would have a distinct[b] resolution_type. Has someone run across this issue? I have pasted my query below:
SELECT NULL l
, MON
, MAX(resolution_type) resolution_type
FROM ( SELECT TO_CHAR(stat_date,'MM/YY') mon
, NVL(COUNT(status), 0) resolution_type
FROM ht_issues
WHERE category = 'Help Desk Issue'
AND resolution_type = 'Functional'
and trunc(stat_date) between to_date(:P14_RPT_DATE, 'dd-mon-yy') - 27 and to_date(:P14_RPT_DATE, 'dd-mon-yy')
GROUP BY TO_CHAR(stat_date,'MM/YY')
UNION ALL
SELECT DISTINCT TO_CHAR(stat_date,'MM/YY') mon
, TO_NUMBER(NULL) resolution_type
FROM ht_issues
GROUP BY mon
Any help would be appreciated,
Thanks,
WallyThe SELECT statement you have is still only defining one series. You do not use UNION ALL to add a second series to a cluster bar chart. Use the "Add Series" button in the "Chart Series" to add your "SELECT DISTINCT TO_CHAR(stat_date,'MM/YY') mon , TO_NUMBER(NULL) resolution_type FROM ht_issues" query. Each series needs to be defined separately with its own SELECT statement.
Mike -
Excessive whitespace apex svg cluster bar graph
Hi,
I've created a cluster bar graph which works fine except that it only fills half the space in the region, the rest is whitespace. If I expand the chart width the region increases size and the proportion of display to whitespace is still the same, about 50%. I'm pretty inexperienced with HTML, so don't be afraid of oversimplifying.
Any ideas on what to do?
CheersTry the APEX forum here: Oracle Application Express (APEX)
-
Cluster bar chart- sql query please help-
Hi,
I am trying to create cluster bar chart and am stumped with this sql query.Any help is appreciated.
Here is my table
city region issue value
c1 north i1 y
c1 north i2 y
c2 north i1 n
c2 north i2 y
c3 south i1 y
c3 south i2 n
c4 east i1 n
c4 east i2 n
The bar chart will have 3 series, north south and east.
And labels will be i1 and i2. value will be number of times this issue was encountered(y) in this region.
How can I get something like this from the above table-
region issue count(yes)
north i1 1
north i2 2
south i1 1
south i2 0
east i1 0
east i2 0
thanksWITH table1 AS
(SELECT 1435177 qte_id, 2 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 5 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 7 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 8 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 12 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 14 seq_no
FROM dual
table2 AS
SELECT 1435177 qte_id, 1 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 2 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 3 seq_no, 0 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 4 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 5 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 7 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 8 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 11 seq_no, 59300 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 12 seq_no, 59300 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 14 seq_no, 59300 cmmt_curr_amt
FROM dual
SELECT qte_id, t2_seq_no, cmmt_curr_amt - cmmt_curr_lag diff
FROM
(SELECT t2.qte_id, t2.seq_no t2_seq_no, t1.seq_no t1_seq_no, cmmt_curr_amt, LAG(cmmt_curr_amt,1,0) OVER (PARTITION BY t2.qte_id ORDER BY t2.seq_no) cmmt_curr_lag
FROM table1 t1, table2 t2
WHERE t2.qte_id = t1.qte_id (+)
AND t2.seq_no = t1.seq_no(+)
ORDER BY 1,2
WHERE t1_seq_no IS NOT NULL
ORDER BY 1,2
QTE_ID T2_SEQ_NO DIFF
1435177 2 0
1435177 5 0
1435177 7 0
1435177 8 0
1435177 12 0
1435177 14 0 -
itunes app no longer showing genres or the top charts/genius bar in the top bar ... it only displays a faint music in the centre with just the search box..why? i need them back:-(
The iTunes Store listing of your podcast is simply reflecting the contents of your podcast feed. Make sure all of the content you want displayed in the iTunes Store is still contained within your feed.
Are you able to supply your feed for reference? -
SVG chart and region on the same page
Hello,
I would like to know if it's possible to create an svg chart and and only refresh a region in the same page.
If it's possible, where I can find how to do this.
If I call an other page my data is ok. But When I refresh the same page my data is not good.
Thanks
EricGo to Dropdown web item properties and choose your report and use Before Command and use OPEN_CHART_DIALOG. You may try with After Command also.
-
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
Maybe you are looking for
-
PSE 7 bright vivid colors, doesn't match prints
I tried searching for a thread to answer this question but I could not find something that really helped specifically. Use PSE7 to edit my jpg's and when I'm happy with the results then go to print, my prints do not match what I created on screen. T
-
Help Req: Refreshing Screen
Hi Folks, Could anyone from amongst you let me know if we can refresh contents of screen after a stipulated time. e.g. after every 5 minutes i need to refresh a screen. Please let me know if it is possible and if so could you also send me some demo c
-
Query Designer - Query:Specialist Group Status
Hi Gurus, One of my BI user is getting error in this: In Query Designer - Query:Specialist Group Status "Registered JIT debugger is not avialable. An attempt to launch a JIT debugger with the following command resulted in an error code of 0x2(2). ple
-
Greetings all I'm in desperate need of assistance here. I've got an EP6 installation running on WAS 6.40. The install worked fine, it's been running for some time now without a problem. Now however, the J2ee won't restart. The JControl.exe just sits
-
I just bought a new late 2013 27" iMac base model from the Apple Store.
Hi, I just recently purchased the new late 2013 27" iMac from the Apple store, base model that is $1999.00. This is my very first iMac and I was wondering if this is a good first time iMac users PC? My wife will be mainly composing music on it. Any t