Hi I have set values for horizal(X-axis) i have the dataset as XYSeries xydataset = new XYSeries("Height"); xydataset.add(0, 30); xydataset.add(3, 45); xydataset.add(6, 65); xydataset.add(9, 75); xydataset.add(12, 78); xydataset.add(15, 80); xydataset.add(18, 81); xydataset.add(21, 83); XYSeriesCollection dataset = new XYSeriesCollection(); dataset.addSeries(xydataset); JFreeChart jfreechart = ChartFactory.createXYLineChart("Growth Chart", "Age", "Height in Cms", dataset, PlotOrientation.VERTICAL, true, true, false); but in the graph im getting auto range ...