Search found 513 matches

by John Matthews
Tue Sep 11, 2012 11:24 am
Forum: JFreeChart
Topic: Set color of a single task in a Gantt chart
Replies: 1
Views: 2331

Re: Set color of a single task in a Gantt chart

You could override the renderer's getItemPaint() method, as shown here?
by John Matthews
Fri Sep 07, 2012 7:41 pm
Forum: JFreeChart
Topic: JFreeChart Demo version.
Replies: 0
Views: 2572

JFreeChart Demo version.

It looks like the link to my favorite demo is pointing to the penultimate version, jfreechart-1.0.13-demo-all.jar. Shouldn't it reference jfreechart-1.0.14-demo-all.jar? Sorry if this is a duplicate.

For reference, here is an example of a jnlp file that runs the demo locally.
by John Matthews
Thu Sep 06, 2012 1:12 am
Forum: JFreeChart
Topic: Adding date/time to graph
Replies: 2
Views: 3051

Re: Adding date/time to graph

Cross-posted here.
by John Matthews
Thu Aug 30, 2012 2:33 pm
Forum: JFreeChart
Topic: bar chart not clickable
Replies: 4
Views: 4451

Re: bar chart not clickable

That's four orders of magnitude! Were you able to try the `LogAxis` approach, suggested here?
by John Matthews
Mon Aug 27, 2012 7:36 pm
Forum: JFreeChart
Topic: SpiderWebPlot: draw grid? [incl. solution]
Replies: 6
Views: 10337

Re: SpiderWebPlot: draw grid?

A similar problem is illustrated here. It appears that the feature is still to do.
by John Matthews
Fri Aug 24, 2012 5:13 pm
Forum: JFreeChart
Topic: minimum height for bar
Replies: 1
Views: 2507

Re: minimum height for bar

Without more detail it's hard to say. If your data has a large dynamic range, LogAxis may be helpful. I modified BarChartDemo1 as shown below to see what it might look like. http://i.imgur.com/4zIdK.png dataset.addValue(1.0, series1, category1); dataset.addValue(4.0, series1, category2); dataset.add...
by John Matthews
Thu Aug 23, 2012 5:54 am
Forum: JFreeChart
Topic: Possible rendering anomaly when panning zoomed chart
Replies: 4
Views: 5995

Re: Possible rendering anomaly when panning zoomed chart

Thank you for looking at this! I've cited a link to this thread. Please let me know if I should do anything else, e.g. file a bug report.
by John Matthews
Wed Aug 22, 2012 8:57 pm
Forum: JFreeChart
Topic: Possible rendering anomaly when panning zoomed chart
Replies: 4
Views: 5995

Possible rendering anomaly when panning zoomed chart

I noticed this report of a possible rendering anomaly when panning a zoomed time series chart. The effect can be reproduced using this example and the release JARs for jfreechart-1.0.14 & jcommon-1.0.17. Can anyone see an obvious flaw in the example?
by John Matthews
Wed Aug 15, 2012 12:55 am
Forum: JFreeChart
Topic: How to reduce JFree library size.
Replies: 3
Views: 3737

Re: How to reduce JFree library size.

I don't know; I never tried; I'm just adding a sign-post for future visitors. I see that a second answer has been added there. Does your target platform offer any support for this?
by John Matthews
Mon Aug 13, 2012 7:45 pm
Forum: JFreeChart
Topic: How to reduce JFree library size.
Replies: 3
Views: 3737

Re: How to reduce JFree library size.

Cross-posted here.
by John Matthews
Sat Aug 04, 2012 11:44 am
Forum: JFreeChart
Topic: ChartPanel not resizing with JPanel
Replies: 8
Views: 14904

Re: ChartPanel not resizing with JPanel

The default layout of JPanel is FlowLayout, which relies on a component's preferred size. As David Gilbert notes, BorderLayout.CENTER ignores a component's preferred size: "Whatever component occupies the center of the layout will be resized to fit all remaining space." GridLayout responds similarly...
by John Matthews
Sat Aug 04, 2012 11:06 am
Forum: JFreeChart
Topic: Zooming in jfree line chart
Replies: 1
Views: 2253

Re: Zooming in jfree line chart

Have you tried setMouseWheelEnabled() on your ChartPanel?