Values on the X axis appear as three dots

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Khaledinho
Posts: 1
Joined: Fri Dec 22, 2006 10:19 pm

Values on the X axis appear as three dots

Post by Khaledinho » Fri Dec 22, 2006 10:26 pm

I use the regular line chart in a web application.The x-Axis display years
and the y-Axis display a number of accidents that happened in that year.

When the period of the chart is large for example (20 years),
the x-Axis dont display years number instead it display three dots,because
there is no space to display year numbers.

When the number of years is less, they are displayed.

How can i solve this problem.

demonhead
Posts: 24
Joined: Thu May 25, 2006 5:44 am

Re: Values on the X axis appear as three dots

Post by demonhead » Sun Dec 24, 2006 8:23 pm

Khaledinho wrote:I use the regular line chart in a web application.The x-Axis display years
and the y-Axis display a number of accidents that happened in that year.

When the period of the chart is large for example (20 years),
the x-Axis dont display years number instead it display three dots,because
there is no space to display year numbers.

When the number of years is less, they are displayed.

How can i solve this problem.
Increase the width of the chart or theres a setMaximumCategoryLabelLines function with the category plot or a mixture of both should solve ur problem

Locked