How to discard time intervals with Time Series / XYPlots using JFreeChart?
Posted
by Alex Arnon
on Stack Overflow
See other posts from Stack Overflow
or by Alex Arnon
Published on 2010-06-15T13:57:44Z
Indexed on
2010/06/16
3:02 UTC
Read the original article
Hit count: 247
java
|jfreechart
Hi All,
I am building a set of chart displays, one of which is for a month display of daily trading - that is, one point of data per day (closing).
Since there is no trade during weekends and holidays, I need to discard these data points. Not only that, but data points should still appear adjacent to each other, regardless of any gaps in time. This can be seen in any such chart e.g. in the 3 month graph for Nasdaq on Yahoo Finance - see how weekends are skipped.
My question is: how should one correctly implement this in JFreeChart?
Thanks in advance!
© Stack Overflow or respective owner