Setting unveven intervals in chart range axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Deeps83
Posts: 1
Joined: Mon Mar 29, 2010 7:06 am
antibot: No, of course not.

Setting unveven intervals in chart range axis

Post by Deeps83 » Mon Mar 29, 2010 7:18 am

Hi all,
Is it possible to set uneven scaling in range axis of jfreecharts?
I want to have the scaling to be something lke 1,2,3,4,5,25,50,75,100.How can I attain this?
Can I override the setTickUnit function and do this?
Pls help..

thanks in advance,
deeps

jsnel
Posts: 19
Joined: Thu Apr 19, 2007 12:00 pm

Re: Setting unveven intervals in chart range axis

Post by jsnel » Tue Apr 20, 2010 11:53 am

You would have to create your own implementation of ValuesAxis in order to achieve this. I assume you want the axis space between 1 and 2 to be the same as between 25 and 50, right? I am working on something that would come close to this kind of functionality. It will be a linear-logarithmic axis, where a part of the axis is linear (say the 1-5 part) and a part is logarithmic (the 5-100 part).
Once I have a relatively stable version (in a couple of days) I'll release into the public domain so you can improve upon it until it fits your needs exactly.
Be sure to check back here in a week or so.
Creator of Glotaran, a software program developed for global and target analysis of time-resolved spectroscopy and microscopy data. Big fan of JFreeChart.

Locked