Solved

Radar chart in CF 7

Posted on 2006-11-28
2
706 Views
Last Modified: 2013-12-24
Hi, I am using CF 7 charting tools and i need radar graphs included into my web application...

is that possible to add radar chart into it? if so how... some samples would help.
0
Comment
Question by:str_kani
2 Comments
 
LVL 25

Expert Comment

by:dgrafx
ID: 18035740
do you mean like a weather radar chart?
if so, even though there may be code out there (not really aware of any) you would still need to purchase the rights to use the weather that is obtained from one of the weather servers.
I believe the coding would be fairly simple though.
The first step would be to contact one of the weather servers like accuweather.com and speak with them about cost and code.
Once paid for, I'm sure it's just a block of code.
Also, I imagine there is a free version that includes their advertising on it.
0
 
LVL 12

Accepted Solution

by:
mmc98dl1 earned 500 total points
ID: 18062911
cf 7 charting doesnt support radar in the cfchart tag.

webcharts3d is what CF uses and you can get that to do it by using the Java code.

<cfxml variable="request.chartModel">
<xml type="default">
      <cfoutput>
            <cfloop from="0" to="5" index="i" step="1">
                  <col>Col #i#</col>
            </cfloop>
            <cfloop from="0" to="3" index="i" step="1">
            <row <cfloop from="0" to="5" index="j" step="1">col#j#="#randRange(0,20)#" </cfloop>>Sample #i#</row>
            </cfloop>
      </cfoutput>
</xml>
</cfxml>
<cfscript>
s=createObject("java","com.gp.api.jsp.MxServerProperties").newInstance();
svr=createObject("java","com.gp.api.jsp.MxServerComponent").init(s);
chart=svr.newImageSpec();
chart.width = 320;
chart.height= 240;
chart.type = "swf";
chart.style = "<radarChart fill='false' />";
chart.model = request.chartModel;
svr.saveBytesTo(chart,
"c:\\Development\\mplus.mcgrath.com.au\\dev\\temp\\chart\\"& chartname &".swf");
</cfscript>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,2,0" ID="Images_100141_SWF" name="Images_100141_SWF" WIDTH="320" HEIGHT="240">
      <PARAM NAME="movie" VALUE="/temp/chart/<cfoutput>#chartname#</cfoutput>.swf"/>
      <PARAM NAME="quality" VALUE="high"/>
      <PARAM NAME="bgcolor" VALUE="#FFFFFF"/>
      <EMBED src="/temp/chart/<cfoutput>#chartname#</cfoutput>.swf" quality="high" bgcolor="#FFFFFF" WIDTH="320" HEIGHT="240" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
0

Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now