SegmentedTimeline removal of weekends = DateAxis problems

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rantfoil
Posts: 9
Joined: Tue Dec 06, 2005 9:53 pm

SegmentedTimeline removal of weekends = DateAxis problems

Post by rantfoil » Thu Apr 06, 2006 4:49 am

I'm drawing a financial time series chart.

DateAxis appears to draw incorrectly when I'm using a SegmentedTimeline to remove weekends. When I am looking at about a week of data, the date ticks are about 1 tick per day, however since we throw out weekends, the date labels actually show a visual glitch and write on top of one another.

This visual glitch of drawing labels on top of each other looks horrible. Is there any way the DateAxis can take into account the timeline when generating ticks?

Does anyone have any suggestions for workaround solutions?

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 Apr 06, 2006 10:38 am

Can you post a screen-shot or a small self-contained demo that reproduces the problem? There's not a lot that can be done, but maybe I can spot something.

In generatl, the labelling is not handled very well...I'd like to find a more robust way of dealing with non-trading periods.
David Gilbert
JFreeChart Project Leader

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

rantfoil
Posts: 9
Joined: Tue Dec 06, 2005 9:53 pm

example

Post by rantfoil » Thu Apr 06, 2006 10:14 pm

Image

As you can see, the labels appear to run together above.

Jii
Posts: 128
Joined: Thu Apr 21, 2005 11:17 am

Post by Jii » Tue May 09, 2006 12:30 pm

The SegmentedTimeline+DateAxis combo has been much broken from the start and i would advise against using it.

Locked