Search found 27 matches

by ptd26
Mon Nov 15, 2010 12:09 am
Forum: JFreeChart - Stockmarket
Topic: Remove shadow offset on Bar Charts?
Replies: 2
Views: 13882

Re: Remove shadow offset on Bar Charts?

That didn't seem to fix it. I think the problem might not be the shadow. If you look at the bars carefully, they appear to be drawn vertically instead of horizontally. I think the gap between the 0 on the x-axis the the bottom of each bar might be the margin. I'm using a CombinedXYRangeChart and abo...
by ptd26
Sun Nov 14, 2010 12:02 pm
Forum: JFreeChart - Stockmarket
Topic: Remove shadow offset on Bar Charts?
Replies: 2
Views: 13882

Remove shadow offset on Bar Charts?

http://img560.imageshack.us/img560/710/screenshotwx.jpg 2 issues: 1. How do I get rid of the offset from 0? The blue bars should be touching the green bars at 0 on the x-axis (not shown). 2. How do I either get rid of the 3d or make the 3D bars render horizontally instead of vertically as shown abo...
by ptd26
Wed Sep 29, 2010 4:51 am
Forum: JFreeChart - Stockmarket
Topic: How do I get no gaps between candlesticks?
Replies: 2
Views: 12903

Re: How do I get no gaps between candlesticks?

I figured it out. You do want to set: setAutoWidthGap(0); setAutoWidthFactor(1); As I had below. However, the reason there are gaps when zooming in is due to this: case WIDTHMETHOD_AVERAGE: itemCount = highLowData.getItemCount(series); if (horiz) { xxWidth = dataArea.getHeight() / itemCount; } else ...
by ptd26
Tue Sep 28, 2010 5:27 am
Forum: JFreeChart - Stockmarket
Topic: How do I get no gaps between candlesticks?
Replies: 2
Views: 12903

How do I get no gaps between candlesticks?

I have a candlestick chart and I want the candlesticks to always be touching so that there's no gaps between adjacent sticks. This question is not about accounting for missing time. It is simply about how do I get the candlesticks to be as large as possible without overlapping each other? I am using...
by ptd26
Wed Aug 18, 2010 2:52 am
Forum: JFreeChart
Topic: Chart does not auto-zoom out after dataset updates
Replies: 1
Views: 3138

Re: Chart does not auto-zoom out after dataset updates

I had implemented my own dataset classes and forgot to call fireDataSetUpdate(). It's working now.
by ptd26
Mon Aug 16, 2010 9:24 am
Forum: JFreeChart
Topic: Chart does not auto-zoom out after dataset updates
Replies: 1
Views: 3138

Chart does not auto-zoom out after dataset updates

I created a JFreeChart which has periodic updates to the dataset after the chart is created. That part works fine, the chart correctly updates with new data. Problem is that eventually, it starts plotting off the chart. I tried adding in the RestoreAutoBounds() from ChartPanel class right after I up...
by ptd26
Wed Aug 04, 2010 10:36 am
Forum: JFreeChart
Topic: How do I multithread BufferedImage rendering in ChartPanel?
Replies: 8
Views: 12298

Re: How do I multithread BufferedImage rendering in ChartPanel?

It is using bufferedImage. I was able to tell by placing print statements / debugging. I'm using the latest release. I think you're right that the best bang for the buck will be in optimizing the single-thread case so that's where I'll focus my attention for now. The more I think about it, I really ...
by ptd26
Wed Aug 04, 2010 10:25 am
Forum: JFreeChart - Stockmarket
Topic: trend line showing future values
Replies: 1
Views: 7936

Re: trend line showing future values

There's a regression function in one of the utility classes, I haven't played around with it yet though.
by ptd26
Sun Aug 01, 2010 9:22 pm
Forum: JFreeChart
Topic: How do I multithread BufferedImage rendering in ChartPanel?
Replies: 8
Views: 12298

Re: How do I multithread BufferedImage rendering in ChartPanel?

I thought calling super.repaint() would cause a repaint request to be enqueued in Swing Event Dispatch. I still think the code above should speed things up, but don't know why it doesn't. I understand that paintComponent() is the function that actually does the painting, but the reason it only takes...
by ptd26
Sat Jul 31, 2010 11:51 pm
Forum: JFreeChart
Topic: How do I multithread BufferedImage rendering in ChartPanel?
Replies: 8
Views: 12298

Re: How do I multithread BufferedImage rendering in ChartPanel?

Skunk, thanks for your response. I have already modified the library source code slightly. I do everything in one pass. Indeed, a better idea would be to save the image buffer and then only add on most recent updated points. This would save having to redraw the buffer everytime. However, normally JF...
by ptd26
Sat Jul 31, 2010 9:42 am
Forum: JFreeChart
Topic: How do I multithread BufferedImage rendering in ChartPanel?
Replies: 8
Views: 12298

How do I multithread BufferedImage rendering in ChartPanel?

I am trying to use JFreeChart to display several charts on one window. I would like to use threading to speed up the performance of my application. My first attempt was to pull out the buffered image rendering from paint component and put it in a separate thread. But it's not working out well. It's ...
by ptd26
Tue Jul 27, 2010 7:41 am
Forum: JFreeChart
Topic: Buffered Image
Replies: 2
Views: 3774

Re: Buffered Image

What I really wanted to do was render 4 charts in parallel on separate threads. I thought I could render each of them separately and then simply add them to my window. However, doing that would disable the interactive charting features such as cursor and range zoom, correct? Can someone tell me the ...
by ptd26
Mon Jul 26, 2010 10:20 am
Forum: JFreeChart
Topic: Buffered Image
Replies: 2
Views: 3774

Buffered Image

Can someone tell me how to use JFreeChart to render onto a BufferedImage? I want to render several charts in parallel.
by ptd26
Sun Jul 11, 2010 9:25 am
Forum: JFreeChart
Topic: How do I disable all event notifiers?
Replies: 1
Views: 2410

How do I disable all event notifiers?

Each time I update my charts, I call several methods whether they need updating or not...just simpler than checking. For example, I may reset range, cursor, and others. I want to disable all notifiers so that the chart is not repainted after each individual change, but only once at the end after I c...
by ptd26
Mon May 03, 2010 8:14 am
Forum: JFreeChart - Stockmarket
Topic: How to implement constant volume candlestick bars?
Replies: 5
Views: 46427

Re: How to implement constant volume candlestick bars?

getCandlesticks() simply returns a ConstVolumeOHLCDataset.