SVG Charts Display
Hi Friends,
Thanks for sparing your valuable time i watching this thread.
I had a table with values of amounts where some values are negative also. Now I want to display those values in a Chart. I tried with the SVG Chart where it is not allowing me to start the axis with negative amount. It is prompting to enter either 0 or greater than that to start with.
Can anyone tell me which chart is best feasible to display with the following items:
I have 13 Categories (Static), Months (Dynamic, atleast 30 months will be there), Amounts for each category for each month.
I need to display this in the chart so as to better know the burn rate.
Thanks,
Sekhar.
All browsers have SVG support built-in now, except for Internet Explorer that needs help. The Adobe SVG Viewer is just one of the options for that help, it is no longer supported officially, but you can still download it.
Going from SVG to Flash is throwing out much of the power you get from the openness.
Similar Messages
-
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 -
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 -
Hello,
Pie chart is not displayed when I tried this sql with 'order by' clause.
select null, b.subject_name, count(a.subject) cnt
from schooltemp a, subject b
where a.subject = b.subject_id
group by b.subject_name
order by cnt desc
This sql works only when 'order by' clause is removed.Hello Marco,
I think I've found the cause.
That was not because of "order by" clause, but because of the length of column data used in the legend section.
When the column data for legend is longer than 38 chars, this SVG chart becomes blank in my case. -
SVG chart x axis values out of order
Hi
I have an application built in apex 3.0 that is running from apex 3.1.
It has an SVG chart with an x axis that displays the dates as
01-JUN-2008
01-MAY-2008
02-JUN-2008
02-MAY-2008
03-JUN-2008 etc.
what is wanted is that it displays the dates as
01-MAY-2008
02-MAY-2008
01-JUN-2008
02-JUN-2008
03-JUN-2008 etc.
I did not build this application so how do I start to debug this chart and get it to display the dates in sequential order.
Sorry, I know I have probably not given you much info but hopefully you can give me some pointers.
regards
TonyHi Tony,
Did you find your answer?
Try looking at this post.
order x-axis in svg-graph by date
you will need to create a subqueary
something like
SELECT DATE, OTHER1
FROM (SELECT DATE, sum(OTHER) as OTHER1
FROM MY_TABLE
group by DATE)
order by DATE
This worked for me.
Peter -
SVG chart: length of axis-labels
Apparently there is a limitation on the length of x- or y-axis labels for a SVG chart.
Does anybody know how to display axis labels that are larger than 15 characters? Is there something that you can do with the CSS to increase the limit?Hi Jan,
not sure you are on the same as I was... but found in other thread that on the series page there is maximum rows setting defaulting to 15.
Hope that helps.
ta
alberto -
SVG Chart - Dynamic Where clause
Hi,
I am trying to use SVG Chart to show some data as a line graph. It is working great when the SQL is static. I need to allow user to filter the data using a where clause on a date column. I looked at the sample application and found drill-down chart which is doing the filtering.
I get a "No data found" when I do a similar thing. The difference being -
1. I have a date field, where user selects a date & presses Go.
2. SQL in SVG reads - SELECT null, to_char(repdate,'HH24:MI') rep_date, 100-i Value from t WHERE repdate = :P6_Date order by repdate
This is on Page 6
Can somebody please point out what am I doing wrong ?
Thanks !
VKSVijay,
As a test, try to pass a formatted date string into the page in the URL. If the chart renders, my guess would be that when you operate the page the way you described (select date then press Go) the date value isn't stored in session state for the SVG chart region to access. You would need to submit the page to make that happen, then branch back to the page to render the chart region and perhaps make that region display conditionally based on whether the filter value had been set.
Scott -
Hi everybody!
I am playing a little bit with charts at the moment.
Therefore I created a query, which takes app. 2 seconds in the SQL Command Processor.
Then I created a region with a pie chart (SVG chart).
When I run the page, it takes several minutes until the chart appears (it is unacceptable).
1.) Does anybody have an idea, why this takes so long?
2.) Has anybody a better understanding of the SVG charts? How is the chart created, when the query was run? Is it created within the webserver and just displayed in the browser plugin? Or does the webserver just prepare some data and the chart is created within the browser plugin?
3.) How can I improve the performance of creating SVG charts?
4.) Are there other possibilities existing for creating charts?
Thank you for your help in advance and best regards,
ChristianHi Christian,
There may be lots of issue about the performance of the SVG chart.As far my knowledge goes you must have install Adobe SVG Viewer to the local machine for the browser to initiate HTMLDB Webserver (which is nothing but PL/SQL embedded gateway accessed through MOD_PL/SQL) with the chart viewer plugins.Now if u have so complex query with huge records ,aggregate function and group by that might be a performance issue in case of SVG.
May be some guys from HTMLDB Team can direct us......
Cheers,
ROSY -
Hi!
I want generate svg chart with 3 series basead in database table DR_HPUX_CPU with 5 columns: id (server id), percent_user, percent_idle, percent_system and info_date.
What I Want is view information about CPU percent user, system and idle in the same chart. series query (i create 3 only different in PERCENT_XXX):
SELECT NULL LINK,
data,
valor
FROM
(SELECT DISTINCT
TO_CHAR(info_date,'YYYY-MM-DD HH24:MI') as data,PERCENT_XXX as valor
FROM DR_HPUX_CPU
WHERE ID=6 ORDER BY data DESC)
WHERE ROWNUM < 21
order by data asc
If I have only one series, chart display very well. when i have 3 series chart return error:
SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-00933: SQL command not properly ended
What's wrong?
Thanks
Avc"Avc"
I think we're going to have to see the other 2 queries. What happens when you try all combinations of 2 queries? What I'm asking is: can you narrow the problem down to 1 query?
Sergio -
Hi,
I am trying to build a page that displays an SVG pie chart with the following query:
SELECT '', "&P4_SHOW.", count(*)
FROM "MY_TABLE"
GROUP BY null, "&P4_SHOW."
ORDER BY "&P4_SHOW."
where P4_SHOW is a list of columns of the table 'MY_TABLE'.
However, I get the following error when I try to save the chart definition:
Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier)
Thanks for your help.you're unfortunately not going to be able to build your svg chart off that query in the current build of html db. to explain the issue real quickly, P4_SHOW doesn't have state while you're working in the development environment. because of that, your query's being run as something like...
SELECT '', "", count(*)
FROM "MY_TABLE"
GROUP BY null, ""
ORDER BY ""
...and you'll get that same "illegal zero-length identifier" in sqlplus if you try to run it there. we'll hopefully be able address this issue in a post-production release of the tool, but the best work-around for now would be for you to add multiple svg regions to your page. have one region per column of MY_TABLE and conditionally display the appropriate region based on P4_SHOW.
hope this helps,
raj -
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 -
Problem with chart displaying data correctly
I have created a bar chart that displays data for each day of the month. The majority of the time this chart displays the information corrrectly. However now and again the bars of the chart appear much larger than they should meaning that instead of showing 30 or 31 seperate bars it can only display half that amount due to the increased size of the bars. If you display the same chart again then the problem will often disappear.
I am using Coldfusion MX 7 version 7.0.2 Enterprise Edition. Ihave installed all the latest updates up to Cumulative Hot Fix 3.Hi,,
I have checked that the data being passed is correct and it seems to be. Chart code below.
Thanks
<cfchart chartwidth="700"
chartheight="300"
pieslicestyle="solid"
show3d="no"
showlegend="no"
fontsize="12"
xoffset="0.0"
yoffset=".0">
<cfchartseries type="bar"
query="chartquery"
serieslabel="Date_Accessed"
valuecolumn="namecount"
itemcolumn="date_created">
</cfchart> -
Problem with Chart display in WAD
Hi All,
We have a Web Report in which we want to display the data in <b>table</b> format and also in <b>chart</b> format. We have two tabs : Data display and Chart display.
In Data display tab we want the data in table format and in the Chart display tab we want the data in Chart format.
Problem we are facing is that we are getting both table and chart displayed in the Data display tab. We want only the table in this tab and want to hide the chart which is coming there.
Please help me on this.
Thanks in advance,
PrakashTry to use hide an unhide commands:
<a href="<SAP_BW_URL ITEM='GR' MULTI='X' HIDDEN='X' CMD_1='ITEM=GR1&MULTI=X&HIDDEN=''>
In this example, all Items containing GR are hidden and in a second step, all Items containig GR1 are displayed.
Regards,
Beat -
Unable to edit wizard created SVG chart query
Hi,
I have a problem with an SVG chart that one of the HTML DB wizards created.
On the generated page the wizard created a selection list item named P30_SHOW.
This item allows to choose a table column based on which an SVG pie chart is generated.
The automatically generated chart query is:
select 'f?p=106:26:&SESSION.:::RP,26:P26_CHART_FILTER,P26_VALUE:'||:P30_SHOW||','||"&P30_SHOW.",
"&P30_SHOW.", count(*)
from "TESTTABLE"
group by 'f?p=106:26:&SESSION.:::RP,26:P26_CHART_FILTER,P26_VALUE:'||:P30_SHOW||','||"&P30_SHOW.",
"&P30_SHOW."
The page with selection list and chart worked fine at first.
But then, when I edited the chart's width on the respective 'SVG Chart Attributes' tab and pressed
the 'Apply Changes' button I got the following error:
'Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier)'
I only changed the chart's width, I did not touch the chart's query at all.
My theory is that HTML DB tries to validate the correctness of the chart's query.
However, the query references a session variable (P30_SHOW) that is
not defined in my development session. Consequently, the query is not valid in the
development context and is refused by HTML DB.
Now I have two questions:
1. Is my analysis correct, or are there different reasons for the error I do encounter?
2. How can I get around the problem? I'd like to use the automatically generated charts,
but also want to be able to edit them.
Thanks in advance for helpful comments.
Regards HolgerScott,
I imported the application using the import/install process. A new application ID was created but was not changed in the chart query. The link was generated by the application wizard. The chart query link is below:
select 'f?p=103:2:&SESSION.:::RP,2:P2_CHART_FILTER,P2_VALUE:'||:P6_SHOW||','||"&P6_SHOW.", "&P6_SHOW.", count(*)
from "O_DATA_COLLECTION_POINTS"
group by 'f?p=103:2:&SESSION.:::RP,2:P2_CHART_FILTER,P2_VALUE:'||:P6_SHOW||','||"&P6_SHOW.", "&P6_SHOW."
The new application id is 101. It is impossible to modify this query because of message:
"1 error has occurred
Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier"
This happens even if nothing is changed in the query but just the apply changes button is pressed.
I had a similar problem with the breadcrumbs menu. The link was also pointing to the old application id 103 instead of the new application id 101. The way I got round that was to delete the breadcrumb template and create a new one. I then had to go through all the pages that referenced that and reset the breadcrumbs menu template in the region definition.
Thanks Arjen -
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.
Maybe you are looking for
-
My hard drive is nearly full but I cant find whats taking up all my hard drive space
I have an intel macbook pro with 500 internal HD. I have 160gb of music in my itues folder with another 7gb on a previous library, I am unable to find the size info of my applications folder but I susspect it to be around 50gb, however I only have 59
-
Bluetooth stopped working in my car with iOS 8.2 upgrade
I have a 2013 Prius C. Bluetooth worked great until I updated my iPhone 6 Plus to 8.2 yesterday. It still works with calling, but no longer works for playing music, podcasts, etc. Anyone else come across this problem. Any solution out there? I alread
-
Hello friends, How to display the long text in the reports? I changed the bex settings in the info object definition as long text . But in the report iam getting the key and text as the same i am not getting the text . Can you help me??? Thanks Srini
-
IMEI BLOCK DUE TO LOSS OF XPERIA M
SIR MY SON LOST HIS XPERIA M DUAL MOBILE PHONE, NOW I WANT TO KNOW THAT HOW I CAN BLOCK THE RELEVENT IMEI NUMBER, AND WHAT I HAVE TO DO FOR THE BLOCKING OF THE SAME. ADVANCE THANKS,EZHIL KENNEDY K
-
Unity 7 migration to Connection
we are migrating Unity 7.0x VMO to unity connection 8.x . so we will be using COBRAS. we at the same time want to ldap synch the Unity connection - is this done during the cobras import ? Also some of the alias's on the unity do