Search found 479 matches

by John Matthews
Tue May 01, 2012 3:40 pm
Forum: JFreeChart
Topic: Line break in legend
Replies: 4
Views: 4137

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: 5275

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: 2732

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: 5275

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: 1565

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: 923

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: 1036

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: 1088

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: 1601

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: 6339

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: 1911

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.
by John Matthews
Sun Feb 19, 2012 8:43 pm
Forum: JFreeChart
Topic: Left justified title
Replies: 6
Views: 1911

Re: Left justified title

TextTitle has parameters that let you change position, alignment and padding. You can experiment with differrent effects using setTitle().
by John Matthews
Wed Sep 12, 2007 7:40 pm
Forum: JFreeChart
Topic: Unable to control coloring of Line in LineAndShapeRenderer !
Replies: 4
Views: 2869

Matt:

Another stumbling block: I sometimes forget that the series index in such methods is 0-based! For a LineAndShapeRenderer that's only used by one series, the index is always zero.

Code: Select all

plot.setRenderer(myDatasetIndex, myRenderer);
myRenderer.setSeriesOutlinePaint(0, Color.GREEN);
John