Search found 483 matches

by John Matthews
Tue Jan 22, 2019 7:23 pm
Forum: JFreeChart
Topic: Memory Leak issue
Replies: 3
Views: 1718

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

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

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

Re: unfamiliar jar files

This is an exact duplicate of this question.
by John Matthews
Fri Jan 11, 2019 2:38 am
Forum: JFreeChart
Topic: Coordinates for XYShapeAnnotation?
Replies: 3
Views: 1523

Re: Coordinates for XYShapeAnnotation?

The shape's coordinates are data coordinates, not screen coordinates. A typical concrete implementation of java.awt.Shape contains nested classes with constructors that accept float or double arguments, e.g. Ellipse2D.Double in the first example cited.
by John Matthews
Thu Jan 10, 2019 8:26 pm
Forum: JFreeChart
Topic: Coordinates for XYShapeAnnotation?
Replies: 3
Views: 1523

Re: Coordinates for XYShapeAnnotation?

As shown here , XYShapeAnnotation coordinates should be specified relative to the data . As shown here , date values represent the number of milliseconds from the Java epoch . As shown here , use TimeSeries::getDataItem to get a particular TimeSeriesDataItem , and use TimeSeriesDataItem::getPeriod t...
by John Matthews
Thu Dec 20, 2018 7:24 pm
Forum: JFreeChart
Topic: StackedAreaRenderer modeling issue
Replies: 3
Views: 1674

Re: StackedAreaRenderer modeling issue

Math.nextUp(0) is a smaller value (1.4E-45) that appears to sustain higher zooming.
by John Matthews
Wed Dec 19, 2018 6:55 pm
Forum: JFreeChart
Topic: Impossible to change order of legend items???
Replies: 10
Views: 5884

Re: Impossible to change order of legend items???

I've only seen it in LegendTitleTest, but I suppose it might be handy in a vertical legend.
by John Matthews
Tue Dec 18, 2018 12:25 pm
Forum: JFreeChart
Topic: [XYPlot][ChartEditor] How to customize ChartEditor for a double range axis
Replies: 2
Views: 1510

Re: [XYPlot][ChartEditor] How to customize ChartEditor for a double range axis

While the relevant classes aren't public, they do have package-private access in org.jfree.chart.editor . You'll have to clone the repository, but you should be able to modify DefaultPlotEditor::createPlotTabs to (conditionally) include as many additional instances of DefaultAxisEditor as needed.
by John Matthews
Tue Dec 11, 2018 12:57 pm
Forum: JFreeChart
Topic: Impossible to change order of legend items???
Replies: 10
Views: 5884

Re: Impossible to change order of legend items???

Right. Addition order is meant to accommodate varying layouts; see fetchLegendItems() for details. For alphanumeric sorting, you might be able to override the method with your own implementation that adds the items in lexicographic order.
by John Matthews
Wed Dec 05, 2018 6:37 pm
Forum: JFreeChart
Topic: org.apache.batik
Replies: 1
Views: 1277

Re: org.apache.batik

You may be looking for JFreeSVG, which "has no dependencies other than the Java runtime (1.6 or later)."
by John Matthews
Wed Dec 05, 2018 6:31 pm
Forum: JFreeChart
Topic: unfamiliar jar files
Replies: 4
Views: 2173

Re: unfamiliar jar files

The JARs may be from here. You should also see jcommon-1.0.23.jar. The current version is here.
by John Matthews
Wed Nov 28, 2018 5:59 pm
Forum: JFreeChart
Topic: Impossible to change order of legend items???
Replies: 10
Views: 5884

Re: Impossible to change order of legend items???

SortOrder.ASCENDING is the default SortOrder for a LegendTitle. What happens if you specify SortOrder.DESCENDING?
by John Matthews
Thu Oct 11, 2018 5:22 pm
Forum: JFreeChart
Topic: Printing JavaFX charts
Replies: 7
Views: 5106

Re: Printing JavaFX charts

by John Matthews
Wed Oct 10, 2018 6:13 pm
Forum: JFreeChart
Topic: XY chart, interval painting related to Y-axel values
Replies: 2
Views: 1886

Re: XY chart, interval painting related to Y-axel values

A suitable Marker might work for the color ranges, and a suitable Annotation might work for the images.