User (Legacy) Posted December 19, 2003 Report Share Posted December 19, 2003 I have a requirement to generate chart images in a batch process. I just downloaded the 30-day trial, and from the examples, it looks like ChartFX/Java only supports embedding in JSPs: ChartServer chart = new ChartServer(application, request, response); // Populate Data // Set formatting // Embed link in page <%= chart.getHtmlTag("450", "280")%> I need something that doesn't require a J2EE/web application context, for exampe: Chart chart = new Chart(); // Populate Data // Set Formatting // Save to File chart.saveToFile("png", "450", "280", "/var/chart1.png"); Is this possible with ChartFX? -Chip Link to comment Share on other sites More sharing options...
Software FX Posted December 19, 2003 Report Share Posted December 19, 2003 Yes, it is possible. Chart chart1 = new Chart(); // Your code here... chart1.exportChart(FileFormat.PNG,"filepath/filename.png"); GA Software FX, "Chip Trowbridge" <ctrowbridge@atg.com> wrote in message news:jlRUC2kxDHA.3072@WEBSERVER1... > I have a requirement to generate chart images in a batch process. I just > downloaded the 30-day trial, and from the examples, it looks like > ChartFX/Java only supports embedding in JSPs: > > ChartServer chart = new ChartServer(application, request, response); > // Populate Data > // Set formatting > // Embed link in page > <%= chart.getHtmlTag("450", "280")%> > > I need something that doesn't require a J2EE/web application context, for > exampe: > > Chart chart = new Chart(); > // Populate Data > // Set Formatting > // Save to File > chart.saveToFile("png", "450", "280", "/var/chart1.png"); > > Is this possible with ChartFX? > > -Chip > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 16, 2004 Author Report Share Posted April 16, 2004 Is it not possible to export charts with the Developer Edition? I tried it and I get a nice ChartFX logo that says not for production use. SoftwareFX Support wrote: > Yes, it is possible. > > Chart chart1 = new Chart(); > > // Your code here... > > chart1.exportChart(FileFormat.PNG,"filepath/filename.png"); > > > GA > Software FX, > > "Chip Trowbridge" <ctrowbridge@atg.com> wrote in message > news:jlRUC2kxDHA.3072@WEBSERVER1... > >>I have a requirement to generate chart images in a batch process. I just >>downloaded the 30-day trial, and from the examples, it looks like >>ChartFX/Java only supports embedding in JSPs: >> >> ChartServer chart = new ChartServer(application, request, response); >> // Populate Data >> // Set formatting >> // Embed link in page >> <%= chart.getHtmlTag("450", "280")%> >> >>I need something that doesn't require a J2EE/web application context, for >>exampe: >> >> Chart chart = new Chart(); >> // Populate Data >> // Set Formatting >> // Save to File >> chart.saveToFile("png", "450", "280", "/var/chart1.png"); >> >>Is this possible with ChartFX? >> >>-Chip >> >> > > > Link to comment Share on other sites More sharing options...
Software FX Posted April 17, 2004 Report Share Posted April 17, 2004 The developer edition will always produce the logo output unless it is being used from a web page and hit from the SAME computer (hitting localhost). This is the difference between the developer edition and the production version. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.