I have a JDCXYDataset and I want to make a timeserieschart but I select from my table only dates in a x month from Monday to Friday, but the chart show me all days in the month.
I don't want to show Saturday neither Sunday.
My recordset don't get those days, but when I make the chart those days are drawing with some x valuie between the value of Friday and Monday.
This is confused, because we don't know if there is this data for weekdays And I didn't selected from the database.
What can I do to skip this two days from my chart?
I have read some skip post but I didn't find the answer.
Thanks for any help that you can post.
I want to show in the graph only from Monday to Friday
-
- Posts: 11
- Joined: Sun Feb 06, 2005 2:05 pm
- Location: Hyderabad, India
- Contact:
replay
Hi, The method
'public static SegmentedTimeline newMondayThroughFridayTimeline()' in
'package org.jfree.chart.axis.SegmentedTimeLine' class is may be usefull for you.
s.manchikalapudi@rediffmail.com
'public static SegmentedTimeline newMondayThroughFridayTimeline()' in
'package org.jfree.chart.axis.SegmentedTimeLine' class is may be usefull for you.
s.manchikalapudi@rediffmail.com
SAMBASIVARAO MANCHIKALAPUDI
Re: replay
Hi manchi...
Thanks very much!!!
Your hint is that I look for...
And works as I want ..
Thanks a lot
Thanks very much!!!
Your hint is that I look for...
I do next implementation to my Classs.manchikalapudi wrote:Hi, The method
'public static SegmentedTimeline newMondayThroughFridayTimeline()' in
'package org.jfree.chart.axis.SegmentedTimeLine' class is may be usefull for you.
Code: Select all
DateAxis dateaxis = (DateAxis) xyplot.getDomainAxis();
dateaxis.setDateFormatOverride(new SimpleDateFormat("EEE dd"));
dateaxis.setVerticalTickLabels(true);
SegmentedTimeline stl= SegmentedTimeline.newMondayThroughFridayTimeline();
dateaxis.setTimeline(stl);
Thanks a lot