Search found 11 matches

by javageek
Mon May 25, 2009 4:26 am
Forum: JFreeChart
Topic: Turn off mouse click crosshair
Replies: 2
Views: 3663

Turn off mouse click crosshair

In my application I have a domain crosshair that is set and moved as the mouse is moved. It works great. I also have it so I can "freeze" the crosshair by clicking the mouse. Then when I click the mouse again the crosshair will start moving again with the mouse movement. The problem is when I do the...
by javageek
Mon May 25, 2009 4:18 am
Forum: JFreeChart
Topic: Quadratic and higher-order regressions
Replies: 6
Views: 5575

Re: Quadratic and higher-order regressions

If you wrote your own code you are covered. Many large companies including IBM have lost lawsuites against some guy who wrote his own programs that duplicated capabilities of their applications. It's the code itself that is protected by copyright laws. Not the idea. The idea would have to be patente...
by javageek
Sun May 24, 2009 10:43 pm
Forum: JFreeChart
Topic: Angles between lines
Replies: 0
Views: 1897

Angles between lines

Things are going great with the charts development. But I have run into a new challenge. I need to calculate the angle of divergence between two lines. I automatically assumed this would be easy. The two lines represent the hypotenuse of two right angle triangles. Simple trig. Not so fast!! The angl...
by javageek
Wed Apr 29, 2009 10:35 pm
Forum: JFreeChart
Topic: Problem with SegmentedTimeline on 1.0.13
Replies: 0
Views: 1952

Problem with SegmentedTimeline on 1.0.13

I just upgraded to version 1.0.13. Now SegmentedTimeline no longer works. I just use a simple statement in my code. DateAxis timeAxis = new DateAxis("Date"); timeAxis.setTimeline(SegmentedTimeline.newMondayThroughFridayTimeline()); The chart never gets displayed. I have tried tracing execution on Ec...
by javageek
Wed Apr 29, 2009 10:29 pm
Forum: JFreeChart
Topic: Determining axis values at a mouse poisition
Replies: 3
Views: 3906

Re: Determining axis values at a mouse poisition

That helped a lot. I am now able to get the value of the x and y axis. Thank you very much!!!

One more question. Is it possible to also get the index of the domain axis instead of the actual value?
by javageek
Wed Apr 29, 2009 2:01 am
Forum: JFreeChart
Topic: Determining axis values at a mouse poisition
Replies: 3
Views: 3906

Determining axis values at a mouse poisition

I am trying to come up with the code to take the location of a mouse pointer and determine the value of the domain and value axis that cooresponds to that location. I set up a ChartMouseListener on the ChartPanel and can pick up the X and Y coordinates from the MouseEvent trigger in the chartMouseMo...
by javageek
Thu Apr 23, 2009 12:52 pm
Forum: JFreeChart - Stockmarket
Topic: Missing ticks for montly
Replies: 0
Views: 5961

Missing ticks for montly

I have my OHLC chart working pretty good now. But I have run into a bit of a problem. It was an interesting challenge to get the segmented timeline to include only the days that the market is open. But I did make that happen. But this has introduced a problem. When the chart goes out to 12+ months i...
by javageek
Wed Apr 15, 2009 3:35 pm
Forum: JFreeChart - Stockmarket
Topic: Overlaying HighLow chart with scatter chart
Replies: 3
Views: 10074

Re: Overlaying HighLow chart with scatter chart

WOW!! Thank you !!! That worked wonderfully. Everything is lining up perfectly now. I am beginning to think I might actually be able to manage what I need to do here! Now I have another questions. Is it possible to use a gif or jpg file as the image to use for the scatter plot? I am using the scatte...
by javageek
Tue Apr 14, 2009 6:05 pm
Forum: JFreeChart - Stockmarket
Topic: Overlaying HighLow chart with scatter chart
Replies: 3
Views: 10074

Overlaying HighLow chart with scatter chart

I am trying to mark certain lines of a HighLow chart with a scatter chart. Basically I have identified certain lines that I want highlighted. So on the data consists of zero values and then non-zero values where I want a bar identified. What I am getting is wierd. Instead of the scatter chart symbol...
by javageek
Tue Apr 14, 2009 4:04 pm
Forum: JFreeChart - Stockmarket
Topic: Moving Average algorithm, problem or not?
Replies: 4
Views: 11930

Re: Moving Average algorithm, problem or not?

I think you can use the createPointMovingAverage() method to calculate the average the same way your project manager wants it. I don't know which is the standard way, but then technical analysis of stock prices is not really a science, so it probably doesn't matter a whole lot. Actually it could ma...
by javageek
Tue Apr 14, 2009 3:58 pm
Forum: JFreeChart - Stockmarket
Topic: itemlabel for HighLowChart (and image labels)
Replies: 14
Views: 150906

Re: itemlabel for HighLowChart (and image labels)

Hey dmitryx, what you have done may work for something I am trying to accomplish. I need to place text and/or symbols at specific spots on a chart. Please post your code.

Is it possible to, instead of text, have it pick up an image file (gif, jpg, etc) and place it where the text would go?