1 Reply Latest reply on May 26, 2006 8:04 PM by Newsgroup_User

    java class for CFCHART

    GuyPhempoompanitch Level 1
      I'm trying to locate the java class that is utilized with CFCHART. Can someone tell me? Thanks.
        • 1. Re: java class for CFCHART
          Level 7
          GuyPhempoompanitch wrote:
          > I'm trying to locate the java class that is utilized with CFCHART. Can someone tell me? Thanks.

          there are several involved like com.gp.api.jsp.MxServerProperties,
          com.gp.api.jsp.MxServerComponent but you won't be able to make direct use of
          them w/out a license (web3d 3rd party lib). all the charts produced this way
          will be visibly stamped as evaluation version.


          <cfscript>
          swfFile=GetDirectoryFromPath(expandpath("*.*")) & "\radar.swf";
          swfFile=replace(swfFile,'\','\\','all'); // just in case
          s=createObject("java","com.gp.api.jsp.MxServerProperties").newInstance();
          svr=createObject("java","com.gp.api.jsp.MxServerComponent").init(s);
          chart=svr.newImageSpec();
          chart.width = 400;
          chart.height= 300;
          chart.type = "swf";
          chart.style = "<radarChart fill='false' />";
          chart.model = "<?xml version='1.0' encoding='UTF-8'?><XML
          type='default'><COL>2000</COL><COL>2001</COL><COL>2002</COL><COL>2003</COL><COL>2004</COL ><ROW
          col0='100.0' col1='200.0' col2='100.0' col3='180.0' col4='200.0'>Sample
          0:</ROW><ROW col0='150.0' col1='300.0' col2='250.0' col3='230.0'
          col4='250.0'>Sample 1:</ROW><ROW col0='200.0' col1='400.0' col2='400.0'
          col3='280.0' col4='300.0'>Sample 2:</ROW></XML>";
          svr.saveBytesTo(chart, swfFile);
          </cfscript>