Search found 48 matches

by yccheok
Mon May 14, 2012 4:36 pm
Forum: JFreeChart
Topic: Weird color change behavior
Replies: 3
Views: 4733

Re: Weird color change behavior

Hello, anyone has any idea regarding this?
by yccheok
Wed May 09, 2012 6:53 pm
Forum: JFreeChart
Topic: Implement Google Finance liked MACD charting
Replies: 2
Views: 4434

Re: Implement Google Finance liked MACD charting

Dear paradoxoff,

Thanks for your suggestion! I shall look into your solution very soon, as I have to put aside MACD feature, to look into other more urgent issues.
by yccheok
Mon May 07, 2012 5:14 pm
Forum: JFreeChart
Topic: Implement Google Finance liked MACD charting
Replies: 2
Views: 4434

Implement Google Finance liked MACD charting

Recently, I try to create MACD technical analysis chart for a price volume chart. Here is what I am getting. http://i.imgur.com/SIT1o.png Here is the code which I am using to create the MACD. final MACD.ChartResult macdChartResult = org.yccheok.jstock.charting.TechnicalAnalysis.createMACD(this.chart...
by yccheok
Tue Mar 20, 2012 6:38 pm
Forum: JFreeChart
Topic: Weird color change behavior
Replies: 3
Views: 4733

Weird color change behavior

If I add additional plot, I will get from the below screenshot to another screenshot. FROM http://i.imgur.com/51MTl.png TO http://i.imgur.com/5hQ42.png The code is as follow : http://jstock.hg.sourceforge.net/hgweb/jstock/jstock/file/b5dfdb3855bc/src/org/yccheok/jstock/gui/charting/ChartJDialog.java...
by yccheok
Sun Mar 18, 2012 6:28 am
Forum: JFreeChart
Topic: Automatic generate line color visible on white background
Replies: 1
Views: 2816

Automatic generate line color visible on white background

Currently, I have a chart which is using white color as background. Most of the time, the drawn line series with auto color, may yield certain line colors, which its color is hardly visible on white background. I try to manual specific the color. public static void setPriceSeriesPaint(XYItemRenderer...
by yccheok
Sun Mar 27, 2011 5:45 am
Forum: JFreeChart
Topic: Axis out of scale problem
Replies: 3
Views: 4265

Re: Axis out of scale problem

There is a workaround for this problem, Before showing up the dialog box, call. dialog.pack dialog.setBounds - As I need to decide the dialog size. dialog.setVisible The key is to call dialog pack. However, there is a problem after dialog box is visible. Sometimes, I need to perform chart switching,...
by yccheok
Fri Mar 25, 2011 2:48 pm
Forum: JFreeChart
Topic: Axis out of scale problem
Replies: 3
Views: 4265

Re: Axis out of scale problem

Here is the demo code which demonstrate this problem. package problem; import java.awt.Color; import java.awt.Dimension; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Date; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.char...
by yccheok
Sat Mar 19, 2011 5:06 pm
Forum: JFreeChart
Topic: Axis out of scale problem
Replies: 3
Views: 4265

Axis out of scale problem

Currently, I have a chart which looks as follow : https://sites.google.com/site/yanchengcheok/Home/before-mouse-click.PNG Its x-axis is out of scale. When I manually single click on the chart, it will look like this : https://sites.google.com/site/yanchengcheok/Home/after-mouse-click.PNG What API I ...
by yccheok
Mon Feb 14, 2011 5:41 pm
Forum: JFreeChart
Topic: Developer who is interested in open source project
Replies: 0
Views: 3443

Developer who is interested in open source project

Hello all, Currently, I am the programmer of JStock - Free Stock Market Software http://jstock.sourceforge.net , a free and open source project. We are using JFreeChart to implement a history chart, along with several technical indicators - RSI, EMA, SMA, CCI. However, currently, we still lack of MA...
by yccheok
Sun Dec 19, 2010 5:36 pm
Forum: JFreeChart
Topic: Any plan to port JFreeChart to Android Platform
Replies: 0
Views: 3774

Any plan to port JFreeChart to Android Platform

Currently, there are not much charting library available for Android platform. I was wondering whether JFreeChart team has any intention, to plot JFreeChart over to Android platform, while preserve the original visual look n feel?

Thanks.
by yccheok
Sun Jul 04, 2010 7:57 pm
Forum: JFreeChart
Topic: Change the font family for entire JFreeChart
Replies: 1
Views: 13806

Re: Change the font family for entire JFreeChart

I am able to make it works by the following code public static void applyChartTheme(JFreeChart chart) { final StandardChartTheme chartTheme = (StandardChartTheme)org.jfree.chart.StandardChartTheme.createJFreeTheme(); // The default font used by JFreeChart unable to render Chinese properly. // We nee...
by yccheok
Sat Jun 19, 2010 11:01 am
Forum: JFreeChart
Topic: Change the font family for entire JFreeChart
Replies: 1
Views: 13806

Change the font family for entire JFreeChart

Due to Chinese character display problem in JFreeChart as described here http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=27887&p=82686&hilit=chinese#p82686 , we need to change the fonts for entire chart, when we are in Chinese locale. I wrote an utilities method to do so. /** * The default font used...
by yccheok
Mon May 17, 2010 4:06 pm
Forum: JFreeChart
Topic: getDataArea Returns Incorrect Rectangle
Replies: 2
Views: 2766

Re: getDataArea Returns Incorrect Rectangle

Thanks for the proposed solution. It works charming! :D :D :D