PDA

View Full Version : Generating a chart



rmarkey
01-10-2008, 06:49 PM
Hi all,

I am prototyping Pentaho's capabilities for an upcoming project. So for I have been able to create a report and flat text file from a standalone application, but when I create a chart the generated chart.html page is empty.

Here is the code I am executing. I pulled the xaction and xml files from a pentaho demo.


ISolutionEngine solutionEngine = SolutionHelper.execute(
"Chart Example",
"Chart",
"getting-started/piechart_data.xaction",
new HashMap(),
new File( outputPath + File.separator + "chart.html"));

Thanks for your help!

gmoran
01-16-2008, 04:28 PM
Can you attach the action sequence you are attempting to run? The default outputs from the ChartComponent (the platform component you are trying to use) expects that the chart image or a relative URL to the image will be streamed as output. If you have not accounted for this in the action sequence, the code you have above will not produce what you expect.