Search found 487 matches

by John Matthews
Mon Mar 05, 2012 6:02 pm
Forum: JFreeChart
Topic: Equation of a line
Replies: 2
Views: 1188

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

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

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

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

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

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