Get the XYPlot of the chart and set the DomainAxis with SegmentedTimeline as shown below:
SegmentedTimeline segmentedTimeline = SegmentedTimeline.newMondayThroughFridayTimeline();
XYPlot xyPlot = chart.getXYPlot();
xyPlot.setDomainAxis(new DateAxis("", segmentedTimeline));
Search found 4 matches
- Tue Sep 16, 2003 8:26 am
- Forum: JFreeChart - Stockmarket
- Topic: Create chart with special timeline
- Replies: 1
- Views: 12641
- Tue Sep 16, 2003 8:26 am
- Forum: JFreeChart
- Topic: Create chart with special timeline
- Replies: 1
- Views: 3101
- Tue Sep 16, 2003 7:56 am
- Forum: JFreeChart
- Topic: Create chart with special timeline
- Replies: 1
- Views: 3101
Create chart with special timeline
Is it possible to create a chart (other than HighLowChart) with a special timeline such as the Monday through Friday timeline?
I have tried "createHighLowChart" and it works properly. However, I found that there have no API provided for other kind of chart.
I have tried "createHighLowChart" and it works properly. However, I found that there have no API provided for other kind of chart.
- Tue Sep 16, 2003 7:55 am
- Forum: JFreeChart - Stockmarket
- Topic: Create chart with special timeline
- Replies: 1
- Views: 12641
Create chart with special timeline
Is it possible to create a chart (other than HighLowChart) with a special timeline such as the Monday through Friday timeline?
I have tried "createHighLowChart" and it works properly. However, I found that there have no API provided for other kind of chart.
I have tried "createHighLowChart" and it works properly. However, I found that there have no API provided for other kind of chart.