Search found 32 matches

by jiangshachina
Tue Dec 01, 2009 1:59 am
Forum: JFreeChart
Topic: highlight selected bar item?
Replies: 1
Views: 2485

Re: highlight selected bar item?

I think I made a gread mistake, JFreechart may never provide such feature.
Now, I customize the BarRenderer, and override the drawItem method.

Thanks!
by jiangshachina
Tue Nov 24, 2009 1:47 am
Forum: JFreeChart
Topic: How to set color for specified chart item?
Replies: 2
Views: 2960

Re: How to set color for specified chart item?

Thanks, I'll have a try.
by jiangshachina
Mon Nov 23, 2009 9:09 am
Forum: JFreeChart
Topic: How to set color for specified chart item?
Replies: 2
Views: 2960

How to set color for specified chart item?

For instance, I have a bar chart, which has two categories(C1, C2) and three series(S1, S2, S3).
Now I want to set red color for the bar item at (C2, S3), how to do?
Or, I have to customize bar renderer?
Thanks in advance!
by jiangshachina
Tue Nov 10, 2009 5:31 am
Forum: JFreeChart
Topic: Two range axes share one grid line?
Replies: 0
Views: 1962

Two range axes share one grid line?

In a dual-axes chart, can I make two range axis ticks that from the two axes respectively share one grid line? For instance, as shown as the following chart, http://www.java2s.com/Code/JavaImages/JFreeChartDualAxisDemo4.PNG I wish Value axis tick "3" and Secondary axis tick "20" could locate at the ...
by jiangshachina
Fri Nov 06, 2009 7:02 am
Forum: JFreeChart
Topic: highlight selected bar item?
Replies: 1
Views: 2485

highlight selected bar item?

Hi,
When I used an old version JFreechart, I could highlight a selected bar chart item with method CategoryPlot.setSelectCategoryIndex(),
now, I'm using JFreeChart 1.0.13, how to achieve the same goal?

Thanks in advance!
by jiangshachina
Thu Sep 03, 2009 2:09 am
Forum: JFreeChart
Topic: use draw/paint utilities?
Replies: 0
Views: 1541

use draw/paint utilities?

JFreeChart can draw wonderful lines and shapes, can I use the painting utilities directly?
Thanks!
by jiangshachina
Sat Sep 20, 2008 10:08 am
Forum: JFreeChart - Stockmarket
Topic: Financial Time Series Customizing?
Replies: 14
Views: 36974

Re: The yellow horizontal line

Aniket_kedari wrote: I don't see a horizontal yellow line. I see 2 charts in a CombinedDomainXYPlot on a yellow background
Yeah :-)
by jiangshachina
Tue Aug 26, 2008 8:58 am
Forum: JFreeChart
Topic: set different color for different tick in a axis?
Replies: 0
Views: 1777

set different color for different tick in a axis?

Hi,
However I can set color for all of ticks in an axis with method Axis.setTickLabelPaint(),
but how to set different color for each tick in the axis?

Thanks!
by jiangshachina
Mon Aug 18, 2008 10:06 am
Forum: JFreeChart
Topic: Change subplot weight?
Replies: 5
Views: 5035

I have another two questions: [1]As shown as the above pictures, all of tick label are too close to the bottom of the Volume area. How to adjust the gap between them? Note: All of ticks are added by manual(override method DateAxis.refreshTicks). I shall know Axis.setTickLabelInsets(RectangleInsets ...
by jiangshachina
Tue Aug 12, 2008 9:39 am
Forum: JFreeChart
Topic: Change subplot weight?
Replies: 5
Views: 5035

I have another two questions: [1]As shown as the above pictures, all of tick label are too close to the bottom of the Volume area. How to adjust the gap between them? Note: All of ticks are added by manual(override method DateAxis.refreshTicks). [2]I wish each "Price" point has the same X-axis value...
by jiangshachina
Mon Aug 11, 2008 9:06 am
Forum: JFreeChart
Topic: Change subplot weight?
Replies: 5
Views: 5035

Something may not be notified.
by jiangshachina
Fri Aug 08, 2008 10:19 am
Forum: JFreeChart
Topic: Change subplot weight?
Replies: 5
Views: 5035

Change subplot weight?

I made a CombinedDomainXYPlot, and used method combinedDomainXYPlot.add(plot1, 2) combinedDomainXYPlot.add(plot2, 1) to add two sub-XYPlots. The image is shown as the followings, http://farm4.static.flickr.com/3041/2743026957_4a0fba55b2_o.jpg If I had added the two sub-XYPlots, and then changed thei...
by jiangshachina
Fri Aug 01, 2008 8:35 am
Forum: JFreeChart - Stockmarket
Topic: Financial Time Series Customizing?
Replies: 14
Views: 36974

I have tried SegmentedTimeline(maybe too late *_*). As mentioned above, the valid time ranges are: 09:30-11:30, 13:00-15:00. I made a SegmentedTimeline: SegmentedTimeline segmented = new SegmentedTimeline(SegmentedTimeline.MINUTE_SEGMENT_SIZE, 1351, 89); segmented.setBaseTimeline(SegmentedTimeline....
by jiangshachina
Mon Jul 28, 2008 11:02 am
Forum: JFreeChart - Stockmarket
Topic: Financial Time Series Customizing?
Replies: 14
Views: 36974

I made some segmented Candlestick charts, and also have some puzzles. As show as the below, http://farm4.static.flickr.com/3269/2709259961_ae6ba5d956_o.png although I use SegmentedTimeline: SegmentedTimeline segmented = SegmentedTimeline.newMondayThroughFridayTimeline(); the chart has some "gaps"(th...
by jiangshachina
Mon Jul 28, 2008 10:20 am
Forum: JFreeChart - Stockmarket
Topic: Financial Time Series Customizing?
Replies: 14
Views: 36974

you can try
1、set your TimeRange from 09:29 to 15:01
2、
SegmentedTimeline segmented = new SegmentedTimeline(SegmentedTimeline.MINUTE_SEGMENT_SIZE, 1350, 90);
Thanks for the reply, but that's not my want :-)