Tick marks

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
PortlandDeveloper
Posts: 4
Joined: Fri Aug 11, 2006 11:08 pm

Tick marks

Post by PortlandDeveloper » Fri Aug 11, 2006 11:11 pm

I am displaying a dynamic chart for which I have a preset graph range. I would like to display the upper label on the range axis. For example, the range of the chart is 0 through 1024. I need to display "1024" on the range axis. How can I accomplish this?

oacis
Posts: 101
Joined: Fri Jan 07, 2005 5:57 am
Location: Australia, Sydney

Post by oacis » Mon Aug 14, 2006 8:46 am

have a look at this post:
http://www.jfree.org/phpBB2/viewtopic.p ... ght=#52545

Which may have some more information for you. Have a look at the axis.setRange() method(s).

PortlandDeveloper
Posts: 4
Joined: Fri Aug 11, 2006 11:08 pm

Post by PortlandDeveloper » Mon Aug 14, 2006 8:00 pm

Thank you :)

I did look at that post, but my issue is a bit different. I do want the chart to determine tickunits on its own, but I want to display the upper bound number on the top of the range axis.

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 » Tue Aug 15, 2006 7:45 am

The existing code doesn't guarantee that the axis end points are labelled, so you would have to modify the code to support this. I may see if it can be introduced as an optional feature in the future (patches are welcome, of course).
David Gilbert
JFreeChart Project Leader

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

PortlandDeveloper
Posts: 4
Joined: Fri Aug 11, 2006 11:08 pm

Post by PortlandDeveloper » Tue Aug 15, 2006 5:30 pm

Thank you very much for your help :)

Locked