I have defined a chart width as like below
Code: Select all
try
{
OutputStream outStream = response.getOutputStream();
response.setContentType("image/png");
ChartUtilities.writeChartAsPNG(outStream, chart, 1000, 500);
outStream.flush();
outStream.close();
}catch (IOException e)
{
System.err.println("Problem occurred creating chart.");
e.printStackTrace();
}
I am expecting a wide display of the chart, so that user can use the horizontal scrollbar to scroll right or left to see the chart.
Does that make sense?
Any suggestions please welcome
Surendran