Solved

Radar chart in CF 7

Posted on 2006-11-28
2
704 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 24

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

12 Experts available now in Live!

Get 1:1 Help Now