How to draw a graph with fixed Y-axis and varying X-axis....
-
- Posts: 13
- Joined: Tue Jun 19, 2007 6:03 am
How to draw a graph with fixed Y-axis and varying X-axis....
I can draw graph with given dataset.But the Scaling of the graph is high when a single value is high.So is there any solution to scale down the graph to a particular value.
Call the axis and change its range
You can determine the axis's range.
Get Plot(Maybe XYPlot) object from JFreechart, and use getDomainAxis or getRangeAxis to get the axis you want, do the necessary type transfer, call the setRange if the axis is instanceof ValueAxis.
Get Plot(Maybe XYPlot) object from JFreechart, and use getDomainAxis or getRangeAxis to get the axis you want, do the necessary type transfer, call the setRange if the axis is instanceof ValueAxis.
-
- Posts: 13
- Joined: Tue Jun 19, 2007 6:03 am
Thank you
Your suggestion worked out and i can get the graph what i expected.
Thank you for your help ....
Thank you for your help ....