Search found 440 matches

by John Matthews
Thu Oct 11, 2018 5:22 pm
Forum: JFreeChart
Topic: Printing JavaFX charts
Replies: 7
Views: 2169

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

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: Plot by hand on scatter plot
Replies: 1
Views: 58

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

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

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

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

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

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

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

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

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

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: 1
Views: 205

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

Re: help me, please

Search the forum for the keyword subtask, for example.