• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

java class for CFCHART

New Here ,
May 26, 2006 May 26, 2006

Copy link to clipboard

Copied

I'm trying to locate the java class that is utilized with CFCHART. Can someone tell me? Thanks.
TOPICS
Advanced techniques

Views

478

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2006 May 26, 2006

Copy link to clipboard

Copied

LATEST
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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation