Tick marks along the X-Axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sumanseshadri
Posts: 19
Joined: Mon Mar 27, 2006 5:19 am

Tick marks along the X-Axis

Post by sumanseshadri » Thu Sep 28, 2006 2:41 am

Hi All,

I am trying to display tick marks along the X-Axis. ie if I have 1,2,3 along the X-axis, I need a dot or a tiny line on top of 1,2,3 that clearly demarcates the category.

[In fact, I am looking for a line that would be say 1 cm below x-axis and extends upto 1 cm above x-axis].

I tried CategoryAxis.setTickMarksVisible(true) but no luck. I read in a previous post that it has not been implemented.

Is there any other way to do it?

Any help is appreciated.

Thanks,
Suman

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 » Thu Sep 28, 2006 11:05 am

It is not implemented. There is a patch that I haven't looked at yet:

http://sourceforge.net/tracker/index.ph ... tid=315494

Perhaps you could try it out, and comment on whether it should be integrated into a future release of JFreeChart.
David Gilbert
JFreeChart Project Leader

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

sumanseshadri
Posts: 19
Joined: Mon Mar 27, 2006 5:19 am

Post by sumanseshadri » Thu Sep 28, 2006 8:14 pm

Hi Dave,

Thank you for your reply. I did take a look at the sample. It works well and setTickMarksVisible(true) / (false) works fine.

I think it would be nice to implement that enhancement into the product.

And as for my requirement, I am now using the TimeSeriesChart where the tick marks are displayed automatically.

Thanks again,
Suman

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 » Thu Sep 28, 2006 8:22 pm

Great, thanks for the feedback on the patch...I'll bump it higher on my to-do list.
David Gilbert
JFreeChart Project Leader

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

Locked