Jump to content
Software FX Community

Using ChartFX java for batch file generation


User (Legacy)

Recommended Posts

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

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

  • 3 months later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...