As shown in image the graph is from line y=0, here i want to plot a graph from y=50, how can i specify this in JFreeChart
?
You can specify the bottom value of the Y axis with the setLowerBound() method of the ValueAxis class.
Using your example:
JFreeChart chart;
chart = ChartFactory.createXYAreaChart("Profile View Of Contour", "Distance", "Contour Value", xyDataset, PlotOrientation.VERTICAL, true, true, false);
ValueAxis rangeAxis = chart.getXYPlot().getRangeAxis();
rangeAxis.setLowerBound(50.0f);