Is it possible to size a flash chart based on the amount of data returned?
My chart is based on a date range. If a user enters say a range of one year, I need the line chart to be rather large so show all the data points. Though if they select just a week, then the chart can be much smaller. I only see the hard coded values to set the size of the chart (Chart Width and Chart Height). Can those be changed on the fly based on the amount of data returned?
Using Application Express 3.1.2.00.02 and AnyChart 3.3
Thanks.
Chris
Hello Hillary,
I tried your suggestion, but still not working for me. I added hidden text field that wold hold the vaule of the width for the chart. Then I reference that field in the chart source. Is there some other property I need to change as well? Any more suggestions? Thanks.
Here is my source.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="&P86_NUM_ROWS."
height="#HEIGHT#"
id="#CHART_NAME#"
align="">
<param name="movie" value="#IMAGE_PREFIX#flashchart/#CHART_TYPE#.swf?XMLFile=#HOST#apex_util.flash?p=&APP_ID.:86:&APP_SESSION.:FLOW_FLASH_CHART_R#REGION_ID#">
<param name="quality" value="high">
<param name="allowScriptAccess" value="sameDomain">
<param name="allowNetworking" value="all">
<param name="scale" value="noscale">
<param name="wmode" value="transparent">
<param name="FlashVars" value="waiting=#FLASH_WAITING#&loading=#FLASH_LOADING#">
<embed src="#IMAGE_PREFIX#flashchart/#CHART_TYPE#.swf?XMLFile=#HOST#apex_util.flash?p=&APP_ID.:86:&APP_SESSION.:FLOW_FLASH_CHART_R#REGION_ID#"
quality="high"
width="&P86_NUM_ROWS."
height="#HEIGHT#"
name="#CHART_NAME#"
scale="noscale"
align=""
allowScriptAccess="sameDomain"
allowNetworking="all"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
wmode="transparent"
FlashVars="waiting=#FLASH_WAITING#&loading=#FLASH_LOADING#">
</embed>
</object>
#CHART_REFRESH#
Similar Messages
-
How to create dynamic ed flash charts based on user selected fields in Orac
Hi all,
Can any of the experts please tellme "how to create dynamic ed flash charts based on user selected fields in Oracle apex".
Thanks
ManishHello,
Lots of different ways to do this, I blogged about one way (using a Pipelined function) here -
http://jes.blogs.shellprompt.net/2006/05/25/generic-charting-in-application-express/
Other options include using a PL/SQL function returning the string to use as the dynamic query etc.
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
Why does my .sparseimage file size not reflect the amount of data insde of it?
SUMMARY
I have an uncompressed sparese image file that has over 35GB of data inside of it, yet the image file always claims to be taking up 4.29GB of space on the drive on which it resides.
DETAILS
The image file was created with Disk Utility useing the following settings:
When I mount the image and Show Inspector for the contents, I see this:
However, when I Get Info on the image file itself, mounted or not, I get this:
I was expecting that the size of the file would be reported as roughly the same as the size of it's contents.
What gives?
-tHello, and thank you for the new reply.
I'm sorry to be slow with my responses, but I am wrapped up in the task of sorting out what has turned out to be over 100GB of photos and videos that I shot over the last ten years and have backed up all over the place ... I'm sorting through all of it and getting it all organized for the first time.
OK, here are the results of ls -lR@ /Volumes/Bin/
$ ls -lR@ /Volumes/Bin/
total 8382080
-rwxrwxrwx@ 1 <username> staff 4291448832 Nov 12 09:04 00000.MTS
com.apple.ResourceFork 286
drwxrwxrwx 32 <username> staff 1088 Jan 30 15:38 Misc
drwxr-xr-x 1638 <username> staff 55692 Mar 3 00:02 Images
drwxr-xr-x 922 <username> staff 31348 Mar 3 00:02 Videos
That'st the first bit, and there there are a zillion pages listing the contents of the top level directories. (Over 17k files)
Again, when I mount the sparseimage file, I see everything that I expect to see inside of it ... my backups of thousands of photos and hundreds of video files. I can view all of them, so the data is definitely there. This is why I am confused as to why the sparseimage file itself is being reported as so small!
I just noticed this ... there is a large video file in the root of the mounted image; 00000.MTS which happens to be 4.29GB in size ... everything else is located in one of the three directories that are listed. Now, the sparseimage happens to be reported as 4.29GB in size. That can't be a coincidence. Is the OS reporting the size of the sparseimage file based on the total reported contents of only the root directory? If so, that would explain why it shows as being 4.29GB. That would, however, be kind of a bug, no? Should it not report the size of the sparseimage as being the total size of all of the contents of the image?
As a test, I just moved that file into the Videos directory and then unmounted the image. bin.sparseimage is still reported as being 4.29GB.
Thanks,
-t -
Is it Possible to Make a Flash Playable DVD for the iTouch
Is it possible to make the same kind of "virtual" DVD player file in Encore for an iTouch audience that works like the Flash output in Encore?
I am under the impression that the 3G iTouch can play flash files but if that is not correct then I guess my question is no applicable. I just felt that some interactive linking would be possible since the iTouch is equipped with a WiFi connection to the internet. Any thoughts or suggestions?
Thanks!!John,
You know that Encore has a FLV output that produced a flash file that
behaves exactly as a DVD player with player controls. This is why I felt
that this was possible, the flash file is certainly not a DVD formatted
file. -
Chart not showing large amount of data properly
Hi,
I have got 3 charts on a page. 2 are Bar chart and 3rd is a
Column Chart. All one below another.
The first two charts on the y axis do not have fixed items.
These items are created at run time. If the no. of items reaches
more than 15, the 1st two charts do not show them properly
formatted.
i.e It does show the correct data, but the bars are very
tiny. Of course this would be because of the space it has been
allocated.
But can somebody suggest any nice solution to this? As, to
how do I get the charts to display a large no. of items nicely,
even thought it has a restricted small space allocated to it. I am
not able to find any examples on this.
ThanksThere is no auto-resize feature.
I have never tried this, but what if you put your chart in the report more than once and conditionally suppress according to how much data there is?
Debi
Edited by: Debi Herbert on Mar 29, 2011 6:33 AM -
Color APEX charts based on query value returned?
Hi,
I appreciate any information regarding this topic. Do you know if there is a way to change the color of a column chart based on the value that is returned in SQL query? This specific type of query and chart only has one bar...so we don;t have to worry about multiple series of bars here.. For example,
select null link, FTE_NAME label, (SUM(INVOICeABLE_ALLOCATION) + SUM(SECOND_BILL_ALLOC)) value1
from FTE_VIEW
WHERE FTE_ID = :P9_ID
group by FTE_NAME
This might return an allocation of 2.5 for a specific person, where we only want people allocated to 1.0 so anything > 1.0 the chart color would turn red.
PS: There is a reason we are allowing them to enter values >1.0 by the way ;) if you are wondering..haha
Any ideas? I also looked up in the AnyChart knowledge base, but could not find any help there..
Kind Regards,Hi,
Thanks for your help. I am not clear on whether I need to create the :P1_Colors item or not. If I choose Custom colors and then have my colors as #099E4A,#F00E19 can I reference :P1_COLORS in my SQL or do I have to create the item :P1_COLORS and use a statics list? Also I've playing with the SQL, I was able to get a return value using a CASE statement, but I had no lukc with the Decode...Here is what I tried IN SQLdeveloper but could not get it to work.
SELECT FTE_NAME, DECODE(SUM(ALLOCATION),SUM(ALLOCATION)<=1,'GREEN','RED') AS COLOR
FROM FTE_PRJK_VIEW
where id = :P9_ID AND FTE_PROJECT_STATUS = 'YES'
group by FTE_NAME
(Where i have Green and Red I would have the item :P1_COLORS = #099E4A,#F00E19, ETC..)
Was able to get this case statement to return a value in SQL Developer..but cannot get it to work in the chart...
select null link, FTE_NAME label,
CASE WHEN SUM(ALLOCATION)<1
THEN :P1_COLORS = '#099E4A'
else :P1_COLORS = '#F00E19'
END CASE value1
from FTE_PRJK_VIEW
where id = :P9_ID AND FTE_PROJECT_STATUS = 'YES'
group by FTE_NAME
Really Appreciate the help with this :)
Kind Regards, -
Adjusting field size depending on data returned
Hi
I need to display output from an xmltype column in the database. How can I set the field so that it adjusts its size depending on the amount of data returned for that xml column?
Thx!This can be done by setting the Vertical Elasiticity and Horizontl Elasticity properties of the field. Try setting both to Variable.
-
Apex 3.1 and Custom Flash Charts
I am having difficulty getting to the point where my custom flash charts can be displayed. I have Oracle 10.2, over OHS to Apex 3.1. I cannot post any of the config files or code here because it is a different network, so I realize it will be hard to troubleshoot; and I apologize in advance.
I would use the canned Flash charts, but my application displays data much like MS Outlook's multi-user calendar does. The chart has to be color coded, similar to Outlook's Busy vs Tentative etc. It has to show multiple events at various times, including overlapping times. And it has to handle schedules for multiple people. Lastly, there are of course gaps in the schedule, because no day is comprised entirely of meetings. That is why I felt I had to do it manually.
I wrote XML/SVG code to do this previously, with HTML DB 1.5, and it worked fine. But Flash is the way we are going now, and I can't use SVG anymore. (Besides, Adobe says SVG will no longer be supported next year.)
I followed the thread of April 07 in which MAdelfio posted suggestions, but I can't get it right. I did everything listed except I never included the <data>...</data> code, because I am not sure where it goes. I have a custom written stored proc, exactly like in the thread, and I pass it all the args that apex_util.flash wants. I get a malformed XML message when I try to display the chart. That seems like it should be a very straight forward error, but I can't figure out where to look. I have been using 1.5 for about a year, and last month upgraded to 3.1.
Any suggestions on how to troubleshoot this? Or, failing that, any simple examples that display Flash charts in which the code was generated by a stored procedure?
Thanks,
MichaelI'm sorry about not being able to provide all the info you need. Since it is on a totally separate network, with no access to the outside world, the only way I can do it is to print and retype everything. So I was hoping that someone could just provide suggestions as to where to look rather than providing answers. I understand that it is impossible for you to solve my problems, especially when you have been given no real information. And I don't want to keep you guessing -- I'd love to be able to just show everything and ask for help; I just can't.
Anyway, I am trying to use only those facilities provided with Apex. I do not have any 3rd party tools except for Perl. I am using the standard shockwave flash plugin for Mozilla. The way I did it with SVG was to create a stored procedure that generated an XML file. I put a button on the page that ran the stored proc and then redisplayed the page, with an HTML region. That region included an iframe, where the source was a perl script that merely regurgitated the SVG script (for some reason I could not get the iframe to accept XML as a source, so I created send_svg.pl, which merely outputted the named SVG file).
The format I followed was in this thread: Re: Custom Flash Charts
I even created a replacement proc for APEX_UTIL.FLASH with the exact output as the thread, knowing that even if it worked I'd still have a ton of work making it produce my chart. But once I can get the infrastructure right, I feel I can write the flash XML.
Maybe the easiest thing is to scan that thread I referenced and tell me if it is still accurate? That is, could anything have changed in 3.0.1, or should it still work? It is possible, maybe even likely, that I made a mistake retyping all that stuff, so maybe just verifying that it SHOULD work is a good start.
Thanks again, and sorry again.
Michael -
How to include Flash chart in a PDF report file
Dear all,
I want to add chart in pdf file. I used Jfreechart and all done.
Now i want to move further, i want to add flash chart instead of simple chart in pdf report file.
I searched on net and found "AlivePDF", i want to know is there any other possible way to add flash chart in a pdf report file.
Also sample code is most welcome.
I am not sure about exact forum for this question, please help me with forum category if i need to post this question there.
Deepak KumarIndeed, you are in the wrong forum, reducing your chances to get a good answer...
You are in the JavaFX forum, which is only remotely related to Flash and quite far from PDF... -
I have a really frustrating issue with the formatting of my Flash charts. Whenever there is a date on an axis label it will bold all dates along the axis. It also seems to forget the formatting I want for the rest of the chart.
I have all of my charts to show the axis in 10pt Arial. Things work fine if there are no dates. The minute a date goes in the date axis is bold and the other axis is back to the default font and size. Any ideas?Maybe this issue is a bug. I changed the rotation back to 0 and the text shows normal. Although, if this was going to happen I would have expected the same behavior with standard text.
-
How to customize flash chart fonts?
Hi everyone,
I have a flash chart as a result of a query that returns more than 20 rows (columns, in the flash chart case). The name of this columns are in horitzontal, and I have a problem, these names are too long to see them correctly.
If I am not explaining the problem correctly, it would be something like this:
http://img246.imageshack.us/img246/8426/barrasab2.png
Notice that is very difficult to understand the name of the columns.
I'd like to "rotate" the names, for example, 45º, and see them in diagonal. I don't know do this in APEX, the only thing I found is to change the size of the font but it's not a solution for me.
Can you help me please?
Thank you very much
sergiclosersergicloser,
You can rotate the chart label by entering the rotation degrees in Label Rotation attributes under Display Settings section. You can also omit the labels intervals of 1 or 2 in Omit Label Interval attribute to display better.
- Christina -
Flash Chart Legend Not In Capitals
I have created a flash chart based upon a function returning sql. The chart displays fine but the legend column names for some reason are converted to initial capitals from all originally being in capitals, eg "SERIES" now equals "Series". I really need the legend to display all capitals as it is in the sql.
For example:
The function returns a string similar to this .......
select NULL as "LINK",
WEEK as "LABEL",
VALUE1 as "VALUE1,
VALUE2 as "VALUE2"
from MY_TABLE
order by WEEK
When the flash chart is rendered on the page the legend displays the two series values as "Value1" and "Value2". Somehow the chart ignores the capital case of the column names and applies initial capitals only over riding the original case.
There appears to be no over ride for the legend case so where is it coming from ? It shouldn't make any difference but the chart type is a "3D column" style. Not sure if this is a XML question or maybe a Flash Player issue.
Regards,
Jack.I had the same problem.
To fix it:
1. Find a font that is strictly caps. I used Felix Titling.
2. Edit the flash chart & under the chart attributes set USe Custom XML to yes.
3. Scroll down almost to the bottom and find the legend tag.
4. In the font tag for the legend substitute the font you chose.
This will capitalize ALL the letters in the legend.
I don't know how to selectively capitalize letters.
Bob Richards -
Possible to Stream a Flash Presentation?
Hi all! I work for a university and we have some faculty that
are creating some huge flash presentations. I know that flash is
remarkably fast when it comes to downloading, but with these large
presentations it's still taking some time. Is it possible to
stream a flash presentation? Compress the audio? Any other
ideas?Never seen TGotoFrame, but there is GotoFrame() and Play(),
which has worked
well for me. Here's a function I've used to change videos in
a Flash movie
from image buttons in the HTML:
<SCRIPT LANGUAGE="JavaScript">
function changeVideo(xname){
if(window.brtv){
window.document["brtv"].SetVariable("theXML", xname);
window.document["brtv"].GotoFrame(0);
window.document["brtv"].Play();
if(document.brtv){
document.brtv.SetVariable("theXML", xname);
document.brtv.GotoFrame(0);
document.brtv.Play();
//-->
</SCRIPT>
Where brtv is the name of the div containing the movie.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Error while creating the Flash Chart
Hi ,
While creating the Flash Chart i got the following error..
Error Item ID (4789301958029267) is not an item defined on the current page.
What does it mean????
My Chart Series is:
SELECT NULL LINK, DISTRIBUTOR, CLGASSETS, FOLIOS FROM (
select NULL Link, distributor,SUM(Clgassets) Clgassets,SUM(folios) FOLIOS from (
select Month,distributor,
clgassets,sales,red,trxns,folios,
row_number() over(partition by SchType order by clgassets desc) rn,
dense_rank() over(partition by SchType order by clgassets desc) den_rank
from(
Select Month,
Scheme_type SchType,
Broker Distributor,
sum(CLGASSETS) CLGASSETS,
sum(SALES) SALES,
sum(RED) RED,
sum(TRXNS) TRXNS,
sum(FOLIOS) FOLIOS
from TABLE
MFDEX_TOPN_QUERY_PKG.TOPN_REPORT_QUERY
'OWNPERF',
:p_amc_code,
'X',
'X',
:p6001_month,
'X',
'X',
'X'
) op where instr(':'||:P6001_schtype||':',':'||scheme_type||':') > 0
group by Month, Scheme_type,Broker
order by CLGASSETS DESC)
order by clgassets desc)
where den_rank<=5
GROUP BY DISTRIBUTOR
ORDER BY Clgassets DESC)
WHERE ROWNUM<=5Help me out to clear this error.
Cheers,
Shan.Hi Sa'ad
Its been a little while since I used Web Analysis but I remember that there are issues if you have more than 1 dimension in rows or columns. What I cannot remember is whether it automatically shifts a dimension to the page or whether as you suggest it just doesn't display.
Pie charts can only display data from two dimensions (1 rows, 1 columns), you can filter using dimensions on pages. If that doesn't give you what you need then I'm afraid you need to stick to a different chart type.
Hope this helps
Stuart -
Flash chart error: scroller position should be positive and integer
Hi
I am periodically getting this error when running a flash chart.
It seems to be related to the amount of data that I am using.
Any Idea whats causing it and how to resolve it
KeithThis only happens when using custom xml. If I change it to use the built-in xml, I get a no data found message.
That happens even if i just reset the custom xml.
Apex 3.1 with built in anychart
Edited by: Keith Jamieson on Aug 20, 2010 1:47 PM
Maybe you are looking for
-
My 13" MacBook pro can't turn on power, My 13" MacBook pro can't turn on power
My MacBook pro turn off power while using . And can' turn on power .i tried all the way from user manual book. I won't work. What should I do?
-
How can i move my game centre data from my old account to another new account??
I want to tranfer my apple id date to another apple id. Because i was using my moms Apple id.. & now i have created my own new apple. So now i want to move my all game centre, icloud data to my new email. Is that possible to move my data from my moms
-
Switch back from windows 7 to ios
switch back from windows 7 to ios
-
How do I get photo events from iPhone to iPhoto
I recently "mograted" to a new Macbook, during the process it only carried over iPhoto Events and photos from 4 months ago. I checked all my time machines and the newer photos and events dont exist there. All of the new photos and events are still
-
Dear Experts In our client system, for a particular export scenario, the taxcode is not getting determined properly & saying that the requirement 008 for that access is not fulfilled. The condition records & configurations are maintained properly. Th