Non-Liner Date Axis
Non-Liner Date Axis
Is it possible to have a DateAxis that is non linear in nature?
That is I only want to display values for dates that are in the DataSet not all those are are between and minimum, and maximum date.
Thanks in Advance,
Mubashar Iqbal
--
miqbal@geocities.com
That is I only want to display values for dates that are in the DataSet not all those are are between and minimum, and maximum date.
Thanks in Advance,
Mubashar Iqbal
--
miqbal@geocities.com
RE: Non-Liner Date Axis
Hi Mubashar,
This is not possible at present. However, I have a similar requirement, so it will get implemented at some point (I can't make any promises about when though!).
I need to be able to display interest rate yield curves, which typically have data points at 1, 7, 30, 60, 90 and 180 days, then 1, 2, 3, 4, 5, 7, 10, 15 and 20 years, and I want to be able to display ticks only at those points.
What I'll probably do is modify the axis code so that a set of custom ticks can be specified so that you can choose irregular ticks that don't even necessarily match your datasource. But also I'll implement a method to create a set of custom ticks from a specific data source, so that it is easy to get custom ticks that exactly match the data source.
All this will be optional - you can still use the existing auto-ticks if that works OK (which it does quite often).
Regards,
DG.
This is not possible at present. However, I have a similar requirement, so it will get implemented at some point (I can't make any promises about when though!).
I need to be able to display interest rate yield curves, which typically have data points at 1, 7, 30, 60, 90 and 180 days, then 1, 2, 3, 4, 5, 7, 10, 15 and 20 years, and I want to be able to display ticks only at those points.
What I'll probably do is modify the axis code so that a set of custom ticks can be specified so that you can choose irregular ticks that don't even necessarily match your datasource. But also I'll implement a method to create a set of custom ticks from a specific data source, so that it is easy to get custom ticks that exactly match the data source.
All this will be optional - you can still use the existing auto-ticks if that works OK (which it does quite often).
Regards,
DG.
RE: Non-Liner Date Axis
I've registered this as a Feature Request on SourceForge (http://sourceforge.net/projects/jfreechart) with id=408766. This will prevent me from forgetting about it!
Regards,
DG.
Regards,
DG.
Was anything ever done on this? The related feature request on sourceforge has no updates, and I couldn't find anything related in the user's guide or Javadocs. I have a need for non-linear / custom numeric range axes similar to what is discussed here. Example: a range of 0-99 but expanded between 35 and 65. Something like this:
Suggestions on how to implement this myself are also welcome.
This is a great library - would love to use it. This seems to be the biggest hurdle I've found so far...
- Jim
jsarne87@netscape.net
Code: Select all
0 35 43 57 65 99
This is a great library - would love to use it. This seems to be the biggest hurdle I've found so far...
- Jim
jsarne87@netscape.net
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Nothing yet, but here are some hints:Jim Sarne wrote:Was anything ever done on this? The related feature request on sourceforge has no updates, and I couldn't find anything related in the user's guide or Javadocs. I have a need for non-linear / custom numeric range axes similar to what is discussed here.
<snip>
Suggestions on how to implement this myself are also welcome.
The key methods are defined (but not implemented) in the ValueAxis class:
Code: Select all
public abstract double translateValueToJava2D(double dataValue, Rectangle2D dataArea);
public abstract double translateJava2DtoValue(float java2DValue, Rectangle2D dataArea);
Regards,
Dave Gilbert
Well, this could be my answer
I need just the same thing, a graph that autoranges on the minimum and maximumvalues, and an inclusion of 0. The 0 should be just below the minimum range, not linear with the scale.
like:
Is it implemented now? This is an urgent feature, we already bought the developer guide.
I need just the same thing, a graph that autoranges on the minimum and maximumvalues, and an inclusion of 0. The 0 should be just below the minimum range, not linear with the scale.
like:
Code: Select all
0 1.8 1.9 2.0
Maybe this can help:
http://www.jfree.org/phpBB2/viewtopic.php?t=17473
http://www.jfree.org/phpBB2/viewtopic.php?t=17473
Re: Non-Liner Date Axis
It has been passed long time since it was posted. Is it still impossible? Do I have to override those methods to make it work? Can someone give me an example of how it works?Mubashar Iqbal wrote:Is it possible to have a DateAxis that is non linear in nature?
That is I only want to display values for dates that are in the DataSet not all those are are between and minimum, and maximum date.
Thanks in Advance,
Mubashar Iqbal
--
miqbal@geocities.com
Thanks in advance
PLEASE HELP
Please, this is very important to me. I need to fix it asap! Can someone give me a light?
Alternatively you could use a CategoryPlot where the rows would be your "series" and the columns would be the time points. It's not a perfect solution, but if you need it urgently, it does show only the specified points, as they are just categories.
You can even use a LineAndShapeRenderer to make it a line graph.
Just a thought.
- Ruben
You can even use a LineAndShapeRenderer to make it a line graph.
Just a thought.
- Ruben
The problem is that i have a lot of lines to show and using CategoryPlot im forced to show the y-axis values of each category. So, it wont help me.rubenq wrote:Alternatively you could use a CategoryPlot where the rows would be your "series" and the columns would be the time points. It's not a perfect solution, but if you need it urgently, it does show only the specified points, as they are just categories.
You can even use a LineAndShapeRenderer to make it a line graph.
Just a thought.
- Ruben
Thanks anyway