Search found 513 matches

by John Matthews
Thu May 10, 2012 2:09 am
Forum: JFreeChart
Topic: Clickable legends?
Replies: 3
Views: 4663

Re: Clickable legends?

Looks OK to me in 1.0.14: LegendItemEntity java.awt.geom.Rectangle2D$Double[x=249.0,y=458.515625,w=38.0,h=18.484375] LegendItemEntity java.awt.geom.Rectangle2D$Double[x=289.0,y=458.515625,w=56.0,h=18.484375] LegendItemEntity java.awt.geom.Rectangle2D$Double[x=347.0,y=458.515625,w=44.0,h=18.484375] c...
by John Matthews
Mon May 07, 2012 11:27 am
Forum: JFreeChart
Topic: CategoryPlot and XYplot in the same image
Replies: 2
Views: 3163

Re: CategoryPlot and XYplot in the same image

Construct a ChartPanel from each chart and add each such panel to a GridLayout(0, 1).
by John Matthews
Sun May 06, 2012 10:29 pm
Forum: JFreeChart
Topic: Gradient XYAreaRender
Replies: 1
Views: 2675

Re: Gradient XYAreaRender

It's deprecated, but setPaint() works after a fashion.
by John Matthews
Sun May 06, 2012 10:00 pm
Forum: JFreeChart
Topic: CSV TO JFREECHART
Replies: 2
Views: 4015

Re: CSV TO JFREECHART

It looks like you could start with CSV and JDBCCategoryDataset.
by John Matthews
Tue May 01, 2012 3:40 pm
Forum: JFreeChart
Topic: Line break in legend
Replies: 4
Views: 7717

Re: Line break in legend

Cross-posted here.
by John Matthews
Tue May 01, 2012 3:36 pm
Forum: JFreeChart
Topic: Updating and refreshing the graph per second
Replies: 4
Views: 9834

Re: Updating and refreshing the graph per second

I prefer `javax.swing.Timer`; if you `sleep()` on a separate thread, you need to use `invokeLater()` to run on the event dispatch thread. Java Web Start is a good deployment strategy.
by John Matthews
Fri Apr 27, 2012 11:19 am
Forum: JFreeChart
Topic: line under the dynamic graph
Replies: 4
Views: 8463

Re: line under the dynamic graph

It's hard to say without seeing your code, but the picture suggests trying the approach shown here.
by John Matthews
Thu Apr 19, 2012 10:13 pm
Forum: JFreeChart
Topic: Updating and refreshing the graph per second
Replies: 4
Views: 9834

Re: Updating and refreshing the graph per second

As an alternative to java.util.Timer, suggested by remiohead, javax.swing.Timer offers several advantages outlined in How to Use Swing Timers. DTSCTest is an example.
by John Matthews
Thu Apr 19, 2012 9:58 pm
Forum: JFreeChart
Topic: Shift the origin from (0,0) to (0,-3)
Replies: 2
Views: 3494

Re: Shift the origin from (0,0) to (0,-3)

Cross-posted here; possible approach suggested here.
by John Matthews
Sun Mar 18, 2012 12:15 pm
Forum: JFreeChart
Topic: Automatic generate line color visible on white background
Replies: 1
Views: 2876

Re: Automatic generate line color visible on white backgroun

Cross-posted here.

Although now deleted, a commenter there suggested the Q&A How to automatically generate N “distinct” colors.
by John Matthews
Wed Mar 07, 2012 10:48 am
Forum: JFreeChart
Topic: JFreechart XYPlot DataArea
Replies: 1
Views: 2817

Re: JFreechart XYPlot DataArea

Cross-posted here.
by John Matthews
Mon Mar 05, 2012 6:02 pm
Forum: JFreeChart
Topic: Equation of a line
Replies: 2
Views: 3287

Re: Equation of a line

See this Q&A for one possible approach.
by John Matthews
Sat Mar 03, 2012 1:13 am
Forum: JFreeChart
Topic: Deploy jFreeChart app in jar form ->NoClassDefFoundError
Replies: 3
Views: 3936

Re: Deploy jFreeChart app in jar form ->NoClassDefFoundError

You have to add the required names to the Class-Path attribute of your JAR's manifest.
by John Matthews
Mon Feb 20, 2012 6:19 pm
Forum: JFreeChart
Topic: Bug - AutoRange in TimeSeriesChart
Replies: 13
Views: 15332

Re: Bug - AutoRange in TimeSeriesChart

You might compare your approach to the example discussed here:
Using JFreeChart to display recent changes in a time series.
by John Matthews
Mon Feb 20, 2012 6:09 pm
Forum: JFreeChart
Topic: Left justified title
Replies: 6
Views: 5792

Re: Left justified title

HorizontalAlignment.LEFT, suggested by @paradoxoff, does exactly what you show. Using addSubtitle() is another convenient way to experiment with the myriad settings.