Search found 27 matches

by kingguppy
Mon Dec 08, 2003 12:57 pm
Forum: JFreeChart
Topic: questions about what jfreechart can do
Replies: 5
Views: 5426

The add() method in the XYSeries class sorts by x position, so you might want to subclass it to override that behaviour. "XYChartEntity"s give you the dataset, series and item which was selected. So you could store any metadata in your dataset (or in a separate list). Or you could subclass the rende...
by kingguppy
Mon Dec 08, 2003 11:08 am
Forum: JFreeChart
Topic: questions about what jfreechart can do
Replies: 5
Views: 5426

I don't know about the legend (I've never needed to use a legend in my charts), but everything else you've mentioned is possible. You can set the Shape and Paint for individual data points, which covers your "circle or square" requirement. There's a "ChartEntity" concept, which maps shapes that have...
by kingguppy
Thu Dec 04, 2003 7:33 pm
Forum: JFreeChart
Topic: How can I get the maximal visible value?
Replies: 8
Views: 8091

I've implemented this, it's one of the many patches I'll be submitting soon.
by kingguppy
Thu Dec 04, 2003 7:30 pm
Forum: JFreeChart - Stockmarket
Topic: Suitability of JFreeChart for Realtime Stock Charts
Replies: 18
Views: 47847

Unfortunately there are so many modifications I've made to JFreeChart that my application depends on, it would take a lot of work to run it against the original source for comparison. It might be an order of magnitude faster than it was... but that's just a guess. I'm submitting the patches one at a...
by kingguppy
Tue Dec 02, 2003 10:35 pm
Forum: JFreeChart
Topic: Need help with my diagram
Replies: 10
Views: 11367

I don't really understand what you want with the tooltips, but I hope this helps with the JScrollPane-like behaviour:

http://www.jfree.org/phpBB2/viewtopic.php?t=6342

If you search the forums, there's at least one other example of axis-scrolling code available.
by kingguppy
Mon Dec 01, 2003 2:57 pm
Forum: JFreeChart - Stockmarket
Topic: Suitability of JFreeChart for Realtime Stock Charts
Replies: 18
Views: 47847

Following up my own message, in case someone's interested in this... I haven't submitted my patches yet, but I have had quite a bit of success: Rendering 10 years of day data for MSFT on NASDAQ (around 2800 data items) simultaneously as candlesticks, bars, and two lines (in a combination of overlaid...
by kingguppy
Fri Nov 21, 2003 12:37 am
Forum: JFreeChart
Topic: Need help with my diagram
Replies: 10
Views: 11367

Would you mind posting your latest code? I'll try to see what's going wrong.
by kingguppy
Thu Nov 20, 2003 2:09 pm
Forum: JFreeChart
Topic: thanks, but ....
Replies: 1
Views: 2915

by kingguppy
Thu Nov 20, 2003 1:01 pm
Forum: JFreeChart
Topic: Need help with my diagram
Replies: 10
Views: 11367

I think that XYBarRenderer requires an IntervalXYDataset, so you'll need to implement that interface in your dataset.
by kingguppy
Wed Nov 19, 2003 5:39 pm
Forum: JFreeChart
Topic: JFreeChart + Scrollbar
Replies: 7
Views: 9546

by kingguppy
Wed Nov 19, 2003 4:49 pm
Forum: JFreeChart
Topic: Need help with my diagram
Replies: 10
Views: 11367

I think you want to use an XYBarRenderer.
by kingguppy
Wed Nov 19, 2003 4:44 pm
Forum: JFreeChart
Topic: gaussian curve
Replies: 3
Views: 4261

The solution I would use would be to define my own renderer, and use the data items as inputs to the function I want to plot.
by kingguppy
Wed Nov 19, 2003 4:13 pm
Forum: JFreeChart
Topic: Format of the Date on chart
Replies: 1
Views: 3075

Yes. Use a DateTickUnit, and specify a DateFormat. For example: TickUnits units = new TickUnits(); units.add(new DateTickUnit(DateTickUnit.MONTH, 1, new SimpleDateFormat("MMM-yyyy"))); units.add(new DateTickUnit(DateTickUnit.MONTH, 2, new SimpleDateFormat("MMM-yyyy"))); units.add(new DateTickUnit(Da...
by kingguppy
Wed Nov 19, 2003 3:44 pm
Forum: JFreeChart - Stockmarket
Topic: JFreeChart + Scrollbar
Replies: 8
Views: 40805

It's not perfect, it's not generic, and it may not work for you, but here's what I'm using for scrolling: import java.awt.*; import java.awt.event.*; import javax.swing.*; import org.jfree.chart.*; import org.jfree.chart.axis.*; import org.jfree.chart.event.*; import org.jfree.chart.plot.*; import o...
by kingguppy
Wed Nov 19, 2003 3:31 pm
Forum: JFreeChart - Stockmarket
Topic: Bug Found in Version 13
Replies: 4
Views: 12042

Can you please post some more code, which shows the data that you're using (and can preferably be compiled and run to see the problem)? The construction code doesn't have any problems that are obvious to me, though I don't know what the "com.analysis.util.CustomIndicators" class does.