Y Axis scale is missing

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vani_hegde
Posts: 17
Joined: Tue Oct 11, 2005 9:27 pm

Y Axis scale is missing

Post by vani_hegde » Sun Mar 11, 2007 9:51 pm

hi I have a problem, where the Range Axis does not display the tick labels.
There is nothing along y axis to display the value of the graphs.
This is my Dataset. I am trying to draw a simple line chart.
Can someone tell me what to do to see the Y axis scale back?

4.66,4.68,4.7,4.7,4.71,4.71,4.71,4.
72,4.72,4.72,4.69,4.72,4.72,4.72,4.72,4.72,4.66,4.59,4.400,
6,4.6,4.21,4.21,4.21,4.21,4.22,4.22,4.22,4.23,4.23,4.24,4.24,4.25,4.25,4.26,4.27
,4.27,4.28,4.28,4.29,4.29,4.3,4.31,4.31,4.32,4.32,4.33,4.33,4.5,4.67,4.67,4.72,4
.78,4.78,4.78,4.78,4.74,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4
.78,4.79,4.78,4.79,4.79,4.79,4.79,4.79,4.79,4.78,4.74,4.68,4.69,4.54,4.39,4.39,4
.39,4.39,4.39,4.39,4.39,4.4,4.4,4.4,4.4,4.4,4.41,4.41,4.41,4.41,4.41,4.42,4.42,4
.42,4.42,4.43,4.43,4.43,4.42,4.34,4.45,4.65,4.66,4.67,4.79,4.79,4.8,4.8,4.78,4.7
8,4.79,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4.8,4
.81,4.76,4.71,4.72,4.72,4.44,4.44,4.45,4.43,4.44,4.45,4.45,4.45,4.45,4.45,4.45,4
.45,4.45,4.45,4.45,4.46,4.46,4.46,4.44,4.43,4.44,4.46,4.46,4.46,4.46,4.46,4.46,4
.59,4.73,4.73,4.77,4.82,4.82,4.82,4.82,4.82,4.82,4.82,4.82,4.82,4.82,4.82,4.81,4
.81,4.81,4.82,4.82,4.82,4.82,4.82,4.82,4.82,4.81,4.8,4.8,4.81,4.81,4.82,4.73,4.7
1,4.5,4.28,4.26,4.3,4.33,4.35,4.38,4.31,4.33,4.36,4.38,4.31,4.34,4.37,4.39,4.4,4
.33,4.36,4.29,4.23,4.27,4.21,4.25,4.29,4.32,4.35,4.37,4.54,4.69,
400
4.66,4.68,4.76,4.77,4.78,4.79,4.79,4.77,4.78,4.78,4.79,4.79,4.79,4.79,4.79,4.79,
4.79,4.79,4.79,4.79,4.79,4.79,4.79,4.79,4.8,4.8,4.8,4.8,4.75,4.7,4.7,4.67,4.37,4
.39,4.41,4.41,4.41,4.41,4.37,4.39,4.4,4.41,4.41,4.35,4.28,4.31,4.34,4.37,4.39,4.
31,4.34,4.35,4.38,4.39,4.39,4.34,4.36,4.38,4.39,4.49,4.67,4.66,4.74,4.79,4.79,4.
79,4.79,4.79,4.79

Kousu
Posts: 63
Joined: Wed Mar 07, 2007 10:40 pm

Post by Kousu » Mon Mar 12, 2007 9:40 pm

Post your code, please.

vani_hegde
Posts: 17
Joined: Tue Oct 11, 2005 9:27 pm

Post by vani_hegde » Wed Mar 14, 2007 6:02 pm

hi I have a very elaborate code, which handles a lot of type s of charts
The problem is all the xy charts show up fine.
Problem is when i use the above dataset. Then only y axis scale is missing

vani

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Mar 14, 2007 6:10 pm

I saw the image you e-mailed me. Can you check whether you've set the axis up to show integer tick values only? In this case, all your data values fall between about 4.2 and 4.8, so no integer ticks would be visible. But if you use the default axis behaviour (fractional tick values allowed) then you should see some tick marks and labels.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked