Search found 487 matches

by John Matthews
Wed Dec 05, 2018 6:31 pm
Forum: JFreeChart
Topic: unfamiliar jar files
Replies: 4
Views: 2681

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

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

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

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.
by John Matthews
Wed Oct 10, 2018 3:49 am
Forum: JFreeChart
Topic: The Futon Rise
Replies: 1
Views: 1784

Re: Plot by hand on scatter plot

Add a ChartMouseListener to your ChartPanel and examine the ChartEntity associated with the ChartMouseEvent.
by John Matthews
Wed Sep 12, 2018 3:03 am
Forum: JFreeChart
Topic: Add individual shapes to a series using XYLineShapeRenderer
Replies: 5
Views: 3180

Re: Add individual shapes to a series using XYLineShapeRenderer

Try returning an empty shape for the undesired points, e.g. ShapeUtilities.createUpTriangle(0).
by John Matthews
Tue Sep 04, 2018 4:42 pm
Forum: JFreeChart
Topic: How To Partially Fill The Bars in BarChart
Replies: 1
Views: 1733

Re: How To Partially Fill The Bars in BarChart

You might try a stacked bar chart; StackedBarChartDemo7 in the gallery looks relevant.
by John Matthews
Fri Aug 31, 2018 6:04 pm
Forum: JFreeChart
Topic: Add individual shapes to a series using XYLineShapeRenderer
Replies: 5
Views: 3180

Re: Add individual shapes to a series using XYLineShapeRenderer

Add a ChartMouseListener; examine the ChartEntity subclass to determine which point(s) should return a different shape from your implementation of getItemShape().
by John Matthews
Wed Aug 29, 2018 6:21 pm
Forum: JFreeChart
Topic: autoscale chart
Replies: 3
Views: 2156

Re: autoscale chart

You can control zooming and panning with the mouse, as suggested here, or by evoking the desired handlers, as suggested here.
by John Matthews
Wed Aug 29, 2018 3:55 am
Forum: JFreeChart
Topic: autoscale chart
Replies: 3
Views: 2156

Re: autoscale chart

Verify that your code is correctly synchronized.
by John Matthews
Tue Aug 28, 2018 2:50 am
Forum: JFreeChart
Topic: Restricting ToolTipText to Chart Line Only
Replies: 3
Views: 2107

Re: Restricting ToolTipText to Chart Line Only

gw1500se wrote:Would this be "instead of" or "in addition to?"
Instead. ChartPanel::getToolTipText queries the relevant ChartEntity for you, so you can focus on formatting.
by John Matthews
Mon Aug 27, 2018 6:09 pm
Forum: JFreeChart
Topic: Restricting ToolTipText to Chart Line Only
Replies: 3
Views: 2107

Re: Restricting ToolTipText to Chart Line Only

Apply an XYToolTipGenerator such as the StandardXYToolTipGenerator to your renderer, as shown in ChartFactory.createTimeSeriesChart(). Your implementation of generateToolTip() will have access to the relevant dataset, series and item.
by John Matthews
Sat Aug 25, 2018 2:28 am
Forum: JFreeChart
Topic: package org.jfree.data.general does not exist
Replies: 1
Views: 2677

Re: package org.jfree.data.general does not exist

If you're using JFreeChart 1.0.19, verify that both jfreechart-1.0.19.jar and jcommon-1.0.23.jar are in your class path when compiling.

Code: Select all

export JFREE_HOME=/jfreechart
javac -cp .:$JFREE_HOME/lib/* CreateChart.java …
If you're using JFreeChart 1.5, see Migration from JFreeChart 1.0.x.
by John Matthews
Mon Aug 20, 2018 6:29 pm
Forum: JFreeChart
Topic: Add individual shapes to a series using XYLineShapeRenderer
Replies: 5
Views: 3180

Re: Add individual shapes to a series using XYLineShapeRenderer

Yes. Override the renderer's getItemShape() method. A typical example may be found here.