Just throwing this out, just in case someone might find it useful. I"m 1/3 way done of my component to interacting with FusionChart. I'm thinking of creating a project in RiaForge...trying to guage the community if they would have a need for just a product. The project is just a simple CFC wrapper to interact with infosoftglobal's flash charts.
Here is a simple code:
Checkout what is looks like, http://vad.aidmatrix.org/cadence.cfm right click on the pie and choose enable rotation, and play with the rotation, pretty neat.
<cfquery name="rs" datasource="dsn">
select company,(donationamount * 1255.56) as donationamount from donations
where vfd_id = 1822
group by company,donationamount
</cfquery>
<cfset application.fusionChart = createObject("component", "org.aidmatrix.chart.fusionchart").init()>
<html>
<head>
<script src="" type="text/_javascript_"></script>
</head>
<body bgcolor="#ffffff">
<cfoutput>
<!--- set the chart name, to create a unique div to hold the chart --->
#application.fusionChart.setChartID("MyChart1")#
<!--- set the name of the record set --->
#application.fusionChart.setQuery(rs)#
<!--- set the DataName of your chart--->
#application.fusionChart.setDataName("company")#
<!--- set the DataValue of your chart --->
#application.fusionChart.setDataValue("donationamount")#
<!--- set the chart type, dozen to chose from, pie, doughnut, column, area etc --->
#application.fusionChart.setChartType("PIE3D")#
<!--- set wheter or not to have decimals and commas --->
#application.fusionChart.setFormatNumber("1")#
#application.fusionChart.setFormatNumberScale("0")#
<!--- set your number prefix, since I'm usig the dollar, I pass in the dollar sign --->
#application.fusionChart.setNumberPrefix("$")#
<!--- And finally create and display the chart --->
#application.fusionChart.displayChart(chartID='MyChart1',width='600',height='300')#
</cfoutput>
</body>
</html>
_______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/
