dshrenik
asked on
JFreeChart: Time Series Chart
For a TImeSeriesChart, is it possible to generate a chart and then extract only a part of the chart.
For example, the first chart in the attached image is the original chart. The second chart is the extracted portion from the original between t=12:00PM and t = 4:00AM.
If possible, please provide some sample code. Thanks!
For example, the first chart in the attached image is the original chart. The second chart is the extracted portion from the original between t=12:00PM and t = 4:00AM.
If possible, please provide some sample code. Thanks!
ASKER
I think this can be possible if there is a way to auto zoom onto a portion of the chart.
You can generate another chart with shorter interval - ?
ASKER
I'm keeping that for the last option, because in my chart, things can get a little complicated.
I don't think you can zoom, but it is equivalent to geenrating the chart on a smaller range
ASKER
After creating the chart, if I fix the domain range, will that automatically display only the required portion?
ASKER
Can you tell me how I can set the range for the domain axis (which is a DateAxis)?
final DateAxis domainAxis = (DateAxis) plot.getDomainAxis();
not sure how I must pass arguments to:
rangeAxis.setRange()
(I want to pass the 2 Date arguments)
final DateAxis domainAxis = (DateAxis) plot.getDomainAxis();
not sure how I must pass arguments to:
rangeAxis.setRange()
(I want to pass the 2 Date arguments)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER