Search found 11 matches

by vuj2010
Sun Dec 10, 2006 8:10 pm
Forum: JFreeChart - Stockmarket
Topic: dynamic candlestick update
Replies: 2
Views: 18475

Try this. I modified the DefaultOHLCDataset, DefaultHighLowDataset, and TimeSeries as follows: Then everything will be as normal, and you just addOrUpdate and get the realtime chart. I hope David can incorporate so I don't have to modify for every version. Thank you for providing such a great produc...
by vuj2010
Mon Nov 13, 2006 12:14 am
Forum: JFreeChart
Topic: How to using candlestick chart dynamically
Replies: 4
Views: 6508

Candlestick realtime chart

Try this. I modified the DefaultOHLCDataset, DefaultHighLowDataset, and TimeSeries as follows: Then everything will be as normal, and you just addOrUpdate and get the realtime chart. I hope David can incorporate so I don't have to modify for every version. Thank you for providing such a great produc...
by vuj2010
Wed Sep 20, 2006 11:42 pm
Forum: JFreeChart
Topic: Urgen: label donot fix in bar chart
Replies: 2
Views: 4581

Set domain

You could also control your valueaxis this way:
m_valueAxis1.setLowerBound(yourMin);
m_valueAxis1.setUpperBound(yourMax);
m_valueAxis1.setAutoRangeIncludesZero(false);
by vuj2010
Wed Aug 30, 2006 5:08 am
Forum: JFreeChart - Stockmarket
Topic: How to get rid of the gaps in the chart if the exch. closed?
Replies: 8
Views: 36132

Remove holidays

This is how I do it: SegmentedTimeline timeline = SegmentedTimeline.newMondayThroughFridayTimeline(); ArrayList alHDate = new ArrayList(); //HDate-Hide Date Calendar now= Calendar.getInstance(); int iYear= now.get(Calendar.YEAR); for (int iy=iYear-1;iy<=iYear;++iy){ alHDate.add(Holidays.NewYearsDayO...
by vuj2010
Wed Aug 30, 2006 4:35 am
Forum: JFreeChart - Stockmarket
Topic: One Chart for Candlestick, Other for Volume
Replies: 9
Views: 30950

candle and volume

try something like this: OHLCDataset dataset=createDataset(); // creates dataset for candlestick TimeSeriesCollection dataset2 =createDataset2(); //creates dataset for volume chart String charttitle = ""; valueAxis timeAxis = new DateAxis("Date",SegmentedTimeline.newMondayThroughFridayTimeline()); t...
by vuj2010
Sun Aug 20, 2006 2:36 am
Forum: JFreeChart
Topic: Sample code of segmentedtimeline
Replies: 11
Views: 21231

intraday

by vuj2010
Sun Aug 20, 2006 1:52 am
Forum: JFreeChart
Topic: intraday Chart and SegmentedTimeline.java
Replies: 4
Views: 7991

intraday Chart and SegmentedTimeline.java

I have been struggle for a long time and recent found the problem with intraday the following is my solution. Please add this blue portion to SegmentedTimeline.java and recompile. I hope it helps whoever needed it. Good luck. public static long FIRST_SUNDAY_AFTER_1900; static { // make a time zone w...
by vuj2010
Thu Jul 13, 2006 5:51 am
Forum: JFreeChart - Stockmarket
Topic: Whatever happened to Update on the DefaultHighLowDataset?
Replies: 1
Views: 9581

dynamic Candlestick charts

I have updated my own version and it seem to work well. I wonder how to post it.[/code]
by vuj2010
Sat Jul 08, 2006 3:23 am
Forum: JFreeChart - Stockmarket
Topic: (Candle Stick)Trim the Non-Market Trading Day of X-axis
Replies: 19
Views: 347776

SegmentedTimeline not working

It is great that you could exclude the holidays. Could you take a look and comment on my code. Don't seem to work for me. Thank you My code: SegmentedTimeline timeline = SegmentedTimeline.newMondayThroughFridayTimeline(); Calendar calNow = GregorianCalendar.getInstance(); Date endDate = cal.getTime(...
by vuj2010
Thu Jun 01, 2006 5:18 am
Forum: JFreeChart - Stockmarket
Topic: Whatever happened to Update on the DefaultHighLowDataset?
Replies: 1
Views: 9581

Whatever happened to Update on the DefaultHighLowDataset?

kingguppy mentioned back in 2003 that he submitted changes to DefaultHighLowDataset so that it is possible to do dynamic Candlestick charts. Anyone has a solution that they want to share?