List data =datas;

// the 'timeline' indicates the segmented time range '09:30-11:30,
// 13:30-15:30'.
SegmentedTimeline timeline = new SegmentedTimeline(
SegmentedTimeline.MINUTE_SEGMENT_SIZE, 1320, 120);
timeline.setStartTime(SegmentedTimeline.firstMondayAfter1900() + 810
* SegmentedTimeline.MINUTE_SEGMENT_SIZE); // Creates timeseries data set.
TimeseriesDataset dataset = new TimeseriesDataset(Minute.class, 1,
timeline, true);
dataset.addDataItems(data); // Creates logic price axis.
CentralValueAxis logicPriceAxis = new CentralValueAxis(
last_settle, new Range(dataset.getMinPrice().intValue(), dataset.getMaxPrice().intValue()), 9,
new DecimalFormat("0"));
PriceArea priceArea = new PriceArea(logicPriceAxis);
// Creates logic volume axis.
LogicNumberAxis logicVolumeAxis = new LogicNumberAxis(new Range(dataset
.getMinVolume().intValue(), dataset.getMaxVolume().intValue()
), 5, new DecimalFormat("0"));// LogicNumberAxis logicVolumeAxis = new LogicNumberAxis(new Range(0, 0), 2, new DecimalFormat("0"));

VolumeArea volumeArea = new VolumeArea(logicVolumeAxis);

TimeseriesArea timeseriesArea = new TimeseriesArea(priceArea,
volumeArea, createlogicDateAxis(DateUtils
.createDate(year,month,day)));
JFreeChart jfreechart = JStockChartFactory.createTimeseriesChart(
titleName, dataset, timeline, timeseriesArea,
false);

ChartUtilities.saveChartAsPNG(new File(imageFile), jfreechart, 300, 250);