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. :)


FYI


Oğuz Demirkapı




-----Original Message-----
From: Oğuz_Demirkapı [mailto:[EMAIL PROTECTED] 
Sent: Freitag, 7. April 2006 01:15
To: CF-Talk
Subject: RE: CFCHART

As I have already sent I have a solution on Webcharts3D Java application as I 
sent in XML format.

The question is that: 
How can I define and populate these "COL" elements that I have on XML by using 
CFCHART.

:)




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237206
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ı

Reply via email to