Search found 10 matches

by Celso
Tue Mar 03, 2009 5:30 pm
Forum: JFreeChart - Stockmarket
Topic: New Approach to show LegendTitle
Replies: 6
Views: 18983

Re: New Approach to show LegendTitle

Hi David, thank you for the answer. I changed to make it more generalised. package br.com.crmsoft.finstock.chart.plot; import static br.com.crmsoft.finstock.Constantes.FONT_LEGEND_TITLE; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics2D; import java.awt.geom.Point2D; imp...
by Celso
Tue Mar 03, 2009 4:39 pm
Forum: JFreeChart - Stockmarket
Topic: Correction to PeriodAxis and improve performance
Replies: 2
Views: 9642

Re: Correction to PeriodAxis and improve performance

Hi David, take a look at those screenshots: http://picasaweb.google.com.br/ricardo.celso/JFreeChart#5308981050976390434 http://picasaweb.google.com.br/ricardo.celso/JFreeChart#5308284425919896594 I´ve made the following code to correct the location of divisors of MONTH and YEAR, but now the Jan and ...
by Celso
Tue Mar 03, 2009 1:55 am
Forum: JFreeChart - Stockmarket
Topic: Add Drawing Figure Capability To JFreeChart
Replies: 5
Views: 15121

Re: Add Drawing Figure Capability To JFreeChart

Hi RoyW,

could you post a piece of your code?
I can draw trendlines, but i can´t move or edit with mouse!

Could you help me?

Thanks a lot,
Celso
by Celso
Sun Mar 01, 2009 7:52 pm
Forum: JFreeChart - Stockmarket
Topic: Correction to PeriodAxis and improve performance
Replies: 2
Views: 9642

Correction to PeriodAxis and improve performance

I extended class PeriodAxis and I made some corrections in it. 1st: draw method: I put some verification before drawing somethings 2nd: using periods to calculate and put the divisors at correct position 3rd: improving performance using two class variables, firstMillisecond and lastMillisecond, call...
by Celso
Sun Mar 01, 2009 7:33 pm
Forum: JFreeChart - Stockmarket
Topic: New Approach to show LegendTitle
Replies: 6
Views: 18983

New Approach to show LegendTitle

I have created a class named FinStockXYPlot that extends XYPlot and has a member of type LegendTitle, so it can be drawn in any position relative to XYPlot (namely TOP, BOTTOM, LEFT, RIGHT), according to a parameter passed in a call to the method drawTitle. I think this is better than the default be...
by Celso
Fri Feb 27, 2009 12:21 am
Forum: JFreeChart - Stockmarket
Topic: Problem with CombinedDomainXYPlot and SegmentedTimeline
Replies: 5
Views: 13117

Re: Problem with CombinedDomainXYPlot and SegmentedTimeline

thank you skunk, it´s exactly that happens with me.....
by Celso
Tue Feb 17, 2009 1:47 am
Forum: JFreeChart - Stockmarket
Topic: Problem with CombinedDomainXYPlot and SegmentedTimeline
Replies: 5
Views: 13117

The problem is when you use so much data... Catch the example of RoyW at: http://www.jfree.org/phpBB2/viewtopic.php?t=25016 and change this line: String strUrl= "http://ichart.finance.yahoo.com/table.csv?s="+symbol+"&a=2&b=1&c=2005&d=6&e=22&f=2005&ignore=.csv"; for this one ( f=2006 ): String strUrl...
by Celso
Mon Feb 16, 2009 7:31 pm
Forum: JFreeChart - Stockmarket
Topic: Problem with CombinedDomainXYPlot and SegmentedTimeline
Replies: 5
Views: 13117

Hi skunk,

can you post your code creating CombinedDomainXYPlot?
how many bars you use to shown your charts?

Thanks,
Celso
by Celso
Mon Feb 16, 2009 7:05 pm
Forum: JFreeChart - Stockmarket
Topic: Problem with CombinedDomainXYPlot and SegmentedTimeline
Replies: 5
Views: 13117

Problem with CombinedDomainXYPlot and SegmentedTimeline

Hi folks, I have a problem with this combination (SegmentedTimeline.newMondayThroughFridayTimeline() and CombinedDomainXYPlot). At the beginning I was using just XYPlot and it works perfectly, but now I changed to CombinedDomainXYPlot and my system became frozen! I don´t know what happened, because ...
by Celso
Mon Feb 16, 2009 6:56 pm
Forum: JFreeChart - Stockmarket
Topic: Profiling SegmentedTimeline
Replies: 2
Views: 10098

Profiling SegmentedTimeline

Hi folks, i created a candlestick chart and i use SegmentedTimeline, but my dataset has a lot of information (about 2500 bars). I am using NetBeans Profiler to view the performace of my application, and i saw a big problem with SegmentedTimeline, it consumes about 50MB!!! Problem has encountered at ...