Good job, looks like you must have spent a lot of time on this.  I agree, it 
would be nice if Adobe would give some more documentation on this charting 
stuff. 

> -----Original Message-----
> From: Oğuz_Demirkapı [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 07, 2006 3:14 PM
> 
> Hi,
> 
> I think I have found a solution for my problem.
> 
> I have just converted Webcharts3D JSP code into CF as below 
> with some modifications.
> 
> <cfscript>
>       
> request.chartsroot="E:\\SERVER\\CFusionMX7\\wwwroot\\cfchart\\
> samples\\";
>       
> cObj1=createObject("java","com.gp.api.jsp.MxServerProperties")
> .newInstance();
>       
> cObj2=createObject("java","com.gp.api.jsp.MxServerComponent").
> init(cObj1);
>       MyChart=cObj2.newImageSpec();
>       MyChart.type = "png";
>       MyChart.width = 600;
>       MyChart.height= 300;
>     MyChart.style = "<frameChart is3D='false'><elements 
> place='Stacked' shape='Column'><series index='0'><paint 
> color='ED0A1B'/></series><series index='1'><paint 
> color='F9731F'/></series><series index='2'><paint 
> color='A9F2C0'/></series><series index='3'><paint 
> color='208325'/></series></elements><frame    
> isHGridVisible='false' type='None' 
> outline='333333'/><xAxis><labelFormat style='Percent' 
> pattern='##.####0,######'/><labelStyle 
> isHideOverlapped='false' orientation='Horizontal' 
> isMultilevel='true'/></xAxis><insets left='10' right='10' 
> bottom='40' top='40'/><yAxis scaleMin='-1' scaleMax='1' 
> isVisible='false'><labelFormat 
> style='Percent'/></yAxis><legend isVisible='true' 
> showColumnLegend='true' placement='bottom'><decoration 
> style='None'/></legend><dataLabels style='Value' 
> placement='Inside' foreground='black'/><paint 
> paint='Plain'/></frameChart>";
>       MyChart.model = "<?xml version='1.0' encoding='UTF-8'?>
>       <XML type='default'>
>       <COL>Left 1</COL>
>       <COL>Left 2</COL>
>       <COL>Left 3</COL>
>       <COL>Left 4</COL>
>       <COL>Left 5</COL>
>       <ROW col0='-0.07' col1='-0.06' col2='-0.06' 
> col3='-0.08' col4='-0.06'>Sample 1</ROW>
>       <ROW col0='-0.10' col1='-0.06' col2='-0.10' 
> col3='-0.07' col4='-0.07'>Sample 2</ROW>
>       <ROW col0='0.25' col1='0.29' col2='0.26' col3='0.20' 
> col4='0.24'>Sample 3</ROW>
>       <ROW col0='0.24' col1='0.26' col2='0.30' col3='0.32' 
> col4='0.34'>Sample 4</ROW>
>       </XML>"; 
>       cObj2.saveBytesTo(MyChart, "#request.chartsroot#mychart.png");  
> </cfscript>
> 
> And it works for me.
> 
> 
> You can see a sample output at 
> "http://demirkapi.net/cfchart/mychart.png";
> 
> I think, if anybody from Adobe would inform us for Java 
> object names that we reached direct via Webcharts3D 
> libraries, we can get also licensed versions of charts. :)


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237208
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
  • RE: CFCHART Oğuz_Demirkapı
    • RE: CFCHART Munson, Jacob

Reply via email to