Thanks Ulf for replying.
On the more easier note, I have been trying to render this 3D barchart in channel using JSP Provider.
I have put the code below that I have written in the JSP. The code contains the hard coded values only.
This code works good when run in the local tomcat server but doesnt in the portal server. When run in portal as a channel it gives an error: "Content not available".
I tried to debug and found that the method createBarChart3D() is not getting called but it doesnt throw any exceptions.
Would it been an issue with the img src, it would have created the jpg file atleast which is not happening.
Ulf, hope you are able to understand the problem. Please help.
<%
out.println("Creating the 3D bar chart...");
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.setValue(7, "Science", "Mike");
dataset.setValue(18, "Science", "Craig");
dataset.setValue(9, "Science", "Casey");
dataset.setValue(6, "Science", "Tanmoy");
dataset.setValue(16, "Science", "Kathy");
dataset.setValue(6, "Science", "Ben");
JFreeChart chart1 = ChartFactory.createBarChart3D("Comparison between Students","Students", "Marks",
dataset, PlotOrientation.VERTICAL, true,true,false);
chart1.setBackgroundPaint(Color.yellow);
chart1.getTitle().setPaint(Color.blue);
CategoryPlot p = chart1.getCategoryPlot();
p.setRangeGridlinePaint(Color.red);
ChartUtilities.saveChartAsJPEG(new File("chart_03March09.jpg"), chart1, 300, 300);
%>