Intersection of both X and Y axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mahesh_burgu
Posts: 25
Joined: Mon Oct 08, 2007 7:16 am

Intersection of both X and Y axis

Post by mahesh_burgu » Wed Oct 31, 2007 9:37 pm

i have a line chart with X axis as String values and Y axis as double values,intersection of both AXES is 0(by default). How can i start the intersection point starting from my String value instead of 0.

Its urgent....
Any help is greatly appreciated....
thanks
mahesh

mahesh_burgu
Posts: 25
Joined: Mon Oct 08, 2007 7:16 am

Post by mahesh_burgu » Wed Oct 31, 2007 10:05 pm

is the question clear?????
thanks
mahesh

mahesh_burgu
Posts: 25
Joined: Mon Oct 08, 2007 7:16 am

Post by mahesh_burgu » Fri Nov 02, 2007 10:20 am

is any one there to help me??
thanks
mahesh

badi3
Posts: 3
Joined: Thu Nov 01, 2007 6:13 pm

Post by badi3 » Fri Nov 02, 2007 11:06 am

try this whith this code...

ValueAxis valueAxis = (ValueAxis) plot.getDomainAxis();
valueAxis.setRange(-10.0, 10.0) ;

mahesh_burgu
Posts: 25
Joined: Mon Oct 08, 2007 7:16 am

Post by mahesh_burgu » Fri Nov 02, 2007 11:37 am

I think u did not get the question

30 |
|
20 |
|
10 |
|
0 |__________________________________
time1 time2 time3 time4 time5


I want the figure to be like this as below.....time1 should be the first point in Yaxis(in place of zero).....

30 |
|
20 |
|
10 |
|
0 |__________________________________
time1 time2 time3 time4 time5

I think this time my explanation is pretty much clear.....
thanks
mahesh

Locked