Search found 513 matches

by John Matthews
Sun Nov 11, 2012 4:42 am
Forum: JFreeChart
Topic: How to change the menu location in PiaChart
Replies: 1
Views: 2254

Re: How to change the menu location in PiaChart

JFreeChart puts the legend on RectangleEdge.BOTTOM by default, but you can put it on any edge.
by John Matthews
Sat Nov 10, 2012 4:21 pm
Forum: JFreeChart
Topic: Legend Alignment
Replies: 2
Views: 8775

Re: Legend Alignment

An alternative is to render LegendItem instances in a separate JPanel having the desired layout. This minimal example uses a JLabel with Icon in a GridLayout.

Image
by John Matthews
Wed Nov 07, 2012 10:43 pm
Forum: JFreeChart
Topic: Changing line plot thickness and resetting the axis.
Replies: 1
Views: 2350

Re: Changing line plot thickness and resetting the axis.

This example overrides getItemStroke() to alter a line's appearance. To reset a series, you could removeSeries() from the chosen TimeSeriesCollection or delete() from a contained TimeSeries. This example is another variation on updating a chart dynamically.
by John Matthews
Tue Nov 06, 2012 8:55 pm
Forum: JFreeChart
Topic: How to hide tick lines on axis
Replies: 1
Views: 2118

Re: How to hide tick lines on axis

Using this should work:

Code: Select all

axis.setTickMarksVisible(false);
by John Matthews
Thu Nov 01, 2012 2:28 pm
Forum: JFreeChart
Topic: How to connect a JPanel created by JFreeChart to JFrame
Replies: 3
Views: 3926

Re: How to connect a JPanel created by JFreeChart to JFrame

Jack wrote this.setContentPane(chartPanel); It's unlikely that you want to replace the content pane. Instead, note that add() has "been overridden to forward to the contentPane as necessary." See the API for details. Also note that org.jfree.chart.demo.PieChartDemo1 is one of the demos , the curren...
by John Matthews
Tue Oct 30, 2012 5:13 pm
Forum: JFreeChart
Topic: Balloonchart
Replies: 5
Views: 5544

Re: Balloonchart

RadialGradientPaint class, which is JDK 1.6
The class java.awt.RadialGradientPaint is JDK 1.6; org.gcs.kinetic.RadialGradientPaint is JDK 1.5; the license was recently changed to LGPL for compatibility with JFreeChart.
by John Matthews
Sat Oct 27, 2012 4:02 am
Forum: JFreeChart
Topic: Zooming bug with XYStepRenderer (?) [JFreeChart 1.0.14]
Replies: 4
Views: 4794

Re: Zooming bug with XYStepRenderer (?) [JFreeChart 1.0.14]

I tried (and failed) to match your zoom level. I didn't see a memory problem, even with an artificially small heap. The saturated event queue bogged the whole machine down until I killed the JVM. Sorry, I have no helpful insight. Update: On a whim, I tried a different rendering engine, Apple's Quart...
by John Matthews
Fri Oct 26, 2012 12:01 am
Forum: JFreeChart
Topic: PieChart missing value.
Replies: 1
Views: 2486

Re: PieChart missing value.

Cross-posted here.
by John Matthews
Thu Oct 25, 2012 6:47 pm
Forum: JFreeChart
Topic: Zooming bug with XYStepRenderer (?) [JFreeChart 1.0.14]
Replies: 4
Views: 4794

Re: Zooming bug with XYStepRenderer (?) [JFreeChart 1.0.14]

Using Mac OS X with Java 6, I see a pattern of progressively longer updates with each zoom. The critical one seems to saturate the event queue (solid green, instead of short segments on a yellow background): http://i.imgur.com/Y7zmp.png But the expected sawtooth pattern of heap management remains no...
by John Matthews
Tue Oct 23, 2012 6:21 pm
Forum: JFreeChart
Topic: Resize JFreeChart
Replies: 1
Views: 3379

Re: Resize JFreeChart

Supply your org.jfree.chart.JFreeChart as a parameter to an org.jfree.chart.ChartPanel constructor. Add that panel to a Container having a layout that ignores the componet's preferred size, such as BorderLayout.CENTER. This example uses GridLayout.
by John Matthews
Mon Oct 22, 2012 1:22 am
Forum: JFreeChart
Topic: Balloonchart
Replies: 5
Views: 5544

Re: Balloonchart

by John Matthews
Sun Oct 21, 2012 12:34 am
Forum: JFreeChart
Topic: CustomXYToolTipGenerator fails with Custom Renderer
Replies: 2
Views: 3047

Re: CustomXYToolTipGenerator fails with Custom Renderer

Your CustomRenderer lacks entity support, required for tool tips, IIUC. You can change the Shape, as shown below. There's a related example here.

Code: Select all

chart.getXYPlot().getRenderer().setSeriesShape(0, new Ellipse2D.Double(-5, -5, 10, 10));
by John Matthews
Sat Oct 20, 2012 11:58 pm
Forum: JFreeChart
Topic: Regarding accuracy when plotting XYSeries Charts
Replies: 7
Views: 6849

Re: Regarding accuracy when plotting XYSeries Charts

campiador wrote:I need to have some sample ecg dataset…
The article ECG elementary filtering includes a prototypical example and cites PhysioNet as another source.