Search found 479 matches

by John Matthews
Tue Mar 19, 2019 5:19 pm
Forum: JFreeChart
Topic: Graph Time and Point label distorted
Replies: 8
Views: 1796

Re: Graph Time and Point label distorted

Can you use SlidingCategoryDataset, or similar?
by John Matthews
Tue Mar 19, 2019 5:14 pm
Forum: JFreeChart
Topic: Question about timestamp values ?
Replies: 1
Views: 430

Re: Question about timestamp values ?

Have you looked at ChartFactory.createTimeSeriesChart(), aut seq.?
by John Matthews
Thu Mar 07, 2019 3:53 am
Forum: JFreeChart
Topic: Problem while loading
Replies: 4
Views: 967

Re: Problem while loading

For reference, I downloaded the relevant JAR files and verified the presence of CategoryDataset : $ jar tf jfreechart-1.0.14.jar | grep CategoryDataset org/jfree/data/category/CategoryDataset.class I then ran BarChartDemo1 , which imports CategoryDataset : $ java -cp jfreechart-1.0.14.jar:jcommon-1....
by John Matthews
Wed Feb 27, 2019 6:13 pm
Forum: JFreeChart
Topic: Graph Time and Point label distorted
Replies: 8
Views: 1796

Re: Graph Time and Point label distorted

Similar artifact pervades the entire image, which suggests that the chart has been resampled , perhaps repeatedly. Verify that you render the image at the largest practical size before downsampling. Verify that you don't inadvertently downsample the image and then upsample the image. Verify that you...
by John Matthews
Tue Feb 26, 2019 8:53 pm
Forum: JFreeChart
Topic: Ignore missing values
Replies: 1
Views: 598

Re: Ignore missing values

You might look at SegmentedTimeline, although it is no longer supported.
by John Matthews
Tue Feb 12, 2019 1:04 pm
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 1890

Re: setContentPane miss

I cited examples using org.jfree.chart.ui.ApplicationFrame, and you mention org.jfree.chart.ChartFrame; both are subclasses of javax.swing.JFrame, which provides setContentPane(). When using either, be sure to construct and manipulate Swing GUI objects _only_ on the event dispatch thread.
by John Matthews
Sat Feb 09, 2019 10:16 am
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 1890

Re: setContentPane miss

You can test your existing version like this:

Code: Select all

$ cd /jfreechart/lib
$ java -cp jfreechart-1.0.19.jar:jcommon-1.0.23.jar org.jfree.chart.demo.BarChartDemo1
The current release is cited here.
by John Matthews
Fri Feb 08, 2019 5:20 pm
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 1890

Re: setContentPane miss

You appear to be using an earlier version from a time when org.jfree.ui.ApplicationFrame was in a separate library. Either switch to the new version or add the required JAR to your class path, as shown here.
by John Matthews
Fri Feb 08, 2019 2:22 pm
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 1890

Re: setContentPane miss

Yes, I am sure; setContentPane() is a method of the JFreeChart class org.jfree.chart.ui.ApplicationFrame . Note that ApplicationFrame is a JFrame , from which it inherits setContentPane() . The JFreeChart class org.jfree.chart.JFreeChart is not a Swing component, and it has no such method.
by John Matthews
Fri Feb 08, 2019 3:40 am
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 1890

Re: setContentPane miss

The same fragment works in the demos, either old or new.
by John Matthews
Tue Jan 22, 2019 7:23 pm
Forum: JFreeChart
Topic: Memory Leak issue
Replies: 3
Views: 1378

Re: Memory Leak issue

Your fragment is incorrectly synchronized: it updates a GUI component from a thread other than the event dispatch thread ; the approach shown here may be appropriate. In addition, it is unclear why the TableCellRenderer is re-creating the entire chart with each invocation. Each chart should be creat...
by John Matthews
Sat Jan 19, 2019 1:29 pm
Forum: JFreeChart
Topic: Memory Leak issue
Replies: 3
Views: 1378

Re: Memory Leak issue

Several strategies are examined here.
by John Matthews
Sat Jan 19, 2019 1:22 pm
Forum: JFreeChart
Topic: hi guys, can you help me ?
Replies: 1
Views: 797

Re: hi guys, can you help me ?

Apply a suitable CategoryItemLabelGenerator to your plot's renderer.
by John Matthews
Sun Jan 13, 2019 12:32 pm
Forum: JFreeChart
Topic: unfamiliar jar files
Replies: 1
Views: 890

Re: unfamiliar jar files

This is an exact duplicate of this question.