Problem in stretched the graphed data on the left

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
reach2kanchan
Posts: 32
Joined: Wed Jan 07, 2009 5:09 am

Problem in stretched the graphed data on the left

Post by reach2kanchan » Tue Dec 01, 2009 6:11 am

Hi,
I have generated a barchart using

Code: Select all

  BarRenderer renderer = new BarRenderer();
           CategoryAxis categoryAxis = new CategoryAxis("");
            ValueAxis valueAxis = new NumberAxis("");
            CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, valueAxis, null);
But i have requirement to stretched the graphed data both on the left to go closer to the y-axis.
For better understanding i have posted two images
Image


Using which property i can able to plot the graph data left,closer to the y-axis.

Can any body help to solve the problem?

Thanks in advance.

remiohead
Posts: 201
Joined: Fri Oct 02, 2009 3:53 pm
antibot: No, of course not.

Re: Problem in stretched the graphed data on the left

Post by remiohead » Tue Dec 01, 2009 2:29 pm

Code: Select all

categoryAxis.setLowerMargin(0.01);
categoryAxis.setUpperMargin(0.01);

reach2kanchan
Posts: 32
Joined: Wed Jan 07, 2009 5:09 am

Re: Problem in stretched the graphed data on the left

Post by reach2kanchan » Thu Dec 03, 2009 5:17 am

Thank you very very much.

Locked