Search found 513 matches

by John Matthews
Wed Oct 10, 2018 3:49 am
Forum: JFreeChart
Topic: The Futon Rise
Replies: 1
Views: 4883

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

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

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

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

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

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

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

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

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

Re: Add individual shapes to a series using XYLineShapeRenderer

Yes. Override the renderer's getItemShape() method. A typical example may be found here.
by John Matthews
Thu Aug 02, 2018 4:49 pm
Forum: JFreeChart
Topic: hi guys, i have a question
Replies: 0
Views: 4788

Re: hi guys, i have a question

katherin04 wrote:There is no setFont() method in DefaultCategoryDataset?
Nor should there be. The particular font used is an attribute of the view. In contrast, a dataset is a model of the data displayed by the view. The separation is intentional.
by John Matthews
Sat Jul 28, 2018 1:31 pm
Forum: JFreeChart
Topic: help me, please
Replies: 1
Views: 4369

Re: help me, please

Search the forum for the keyword subtask, for example.
by John Matthews
Sat Jul 28, 2018 1:25 pm
Forum: JFreeChart
Topic: i have a question about color
Replies: 1
Views: 4084

Re: i have a question about color

Search the forum for DrawingSupplier, for example.
by John Matthews
Sat Jul 21, 2018 5:28 pm
Forum: JFreeChart
Topic: Attempting to assign weaker access privileges error in ChartViewer class
Replies: 4
Views: 7744

Re: Attempting to assign weaker access privileges error in ChartViewer class

NB: "When migrating from JFreeChart 1.0.x to JFreeChart 1.5.0…all the classes from JCommon that are used by JFreeChart have [been] integrated within the JFreeChart jar file within a different package than before (you will need to change your imports)."