Search found 47 matches

by MitchBuell
Fri Feb 06, 2009 7:17 pm
Forum: JFreeChart
Topic: How to delete or remove a Dataset and Renderer?
Replies: 4
Views: 8217

How to delete or remove a Dataset and Renderer?

How do you fully delete or remove an entire Dataset and Renderer? I'm not worried about removing the Axis the deleted Dataset is mapped to, as another Dataset may be using them. I have tried setting everything to null, but JFreeChart still considers a null Dataset to be an exisiting Dataset. For exa...
by MitchBuell
Fri Jan 30, 2009 9:02 pm
Forum: JFreeChart
Topic: Graphing 4 million points, EntityCollection, Out of Memory
Replies: 11
Views: 13214

For reference, below is the general idea of my solution that I used. It is based off of RoyW's and mkivinie's code linked above ( http://www.jfree.org/phpBB2/viewtopic.php?p=69588#69588 ). I tried to make is as general purpose as possible, but I only cared about XYPlots and XYDatasets. It works with...
by MitchBuell
Tue Jan 27, 2009 5:21 pm
Forum: JFreeChart
Topic: How to make JFreeChart support real-time charting?
Replies: 7
Views: 12688

I am extremely interested in a working copy as well. I wish to create a real time chart class that the user will eventually have LOTS of. Up to nearly 100 little JFreeCharts on a single JPanel. They will only be updated at a max of once a second. And obviously each little JFreeChart redrawing itself...
by MitchBuell
Thu Jan 22, 2009 2:44 pm
Forum: JFreeChart
Topic: X Axis Value too long and got truncated. Help!!!
Replies: 1
Views: 2082

Code: Select all

chart.getXYPlot().getDomainAxis().setVerticalTickLabels(true);
by MitchBuell
Fri Jan 16, 2009 8:22 pm
Forum: JFreeChart
Topic: legend -> visible/invisible
Replies: 4
Views: 5453

Thank you paradoxoff! You're absolutely correct.
by MitchBuell
Fri Jan 16, 2009 3:52 pm
Forum: JFreeChart
Topic: legend -> visible/invisible
Replies: 4
Views: 5453

Is there a way to simply toggle the Legend on or off? In my program the user needs to be able to show or hide the legend. Hiding can be accomplished by chart.removeLegend(); but that completely removes the legend. To get the legend back, you need to recreate it, which is what I'm doing now. public v...
by MitchBuell
Tue Jan 13, 2009 8:57 pm
Forum: JFreeChart
Topic: LCBLayout causes ChartEditor to shift right on Mac OS X
Replies: 1
Views: 1718

LCBLayout causes ChartEditor to shift right on Mac OS X

I've found a strange bug when running JFreeChart on a Mac. In the ChartEditor when you click on a tab (other than the current tab) the entire ChartEditor JPanel inside the JOptionPane shifts to the right by about 10 pixels. If you click on enough different tabs, the GUI will slide off and disappear....
by MitchBuell
Tue Jan 06, 2009 3:36 pm
Forum: JFreeChart
Topic: Graphing 4 million points, EntityCollection, Out of Memory
Replies: 11
Views: 13214

I am able to graph 4 million data points using a XYLineAndShapeRenderer in 2 minutes using 330 MB of memory. Considering that our current tool takes roughly 35 minutes, I'm quite happy.
by MitchBuell
Mon Jan 05, 2009 2:06 pm
Forum: JFreeChart
Topic: Graphing 4 million points, EntityCollection, Out of Memory
Replies: 11
Views: 13214

While you can't see all 4 million data points when the chart is zoomed to Auto Range, once the user starts zooming in, then the user will begin to see the finer points. My program is a long term trending and extreme value charting program, and 4 million data points is my worst case.
by MitchBuell
Mon Dec 29, 2008 5:57 pm
Forum: JFreeChart
Topic: pl help...version 11 is taking too much time
Replies: 2
Views: 2643

The biggest speedup you can get is to disable the EntityCollection and Tooltips. The EntityCollection provides information about where the data is located in the chart, and is used by the Tooltips. If you aren't using any Entity stuff and aren't using any Tooltips, disable them: chart.getXYPlot().ge...
by MitchBuell
Mon Dec 22, 2008 5:38 pm
Forum: JFreeChart
Topic: Properties- dialog
Replies: 10
Views: 10335

Did you try to run my Demo application?
by MitchBuell
Mon Dec 22, 2008 3:00 pm
Forum: JFreeChart
Topic: Properties- dialog
Replies: 10
Views: 10335

First thing to do: move the MyChartEditorFactory cef = new MyChartEditorFactory(); // here are the important lines ChartEditorManager.setChartEditorFactory(cef); out of getChart() and into your public static void main(String[] args) or Constructor. These two lines have to be called before you make y...
by MitchBuell
Fri Dec 19, 2008 3:55 pm
Forum: JFreeChart
Topic: Graphing 4 million points, EntityCollection, Out of Memory
Replies: 11
Views: 13214

Thank you both for your help!
by MitchBuell
Fri Dec 19, 2008 3:50 pm
Forum: JFreeChart
Topic: Properties- dialog
Replies: 10
Views: 10335

The general order of operation when you click on Properties... - The DefaultChartEditorFactory creates a DefaultChartEditor with the JFreeChart that you are editing. - The DefaultChartEditor builds a JPanel full of options for the user to play with. - The updateChart method applies the user selectio...
by MitchBuell
Mon Dec 15, 2008 8:48 pm
Forum: JFreeChart
Topic: Graphing 4 million points, EntityCollection, Out of Memory
Replies: 11
Views: 13214

I have completely disabled ToolTips by setting the ToolTipGenerator to null. But I have kept the EntityCollection in the ChartPanel. With only the EntityCollection and XYLineAndShapeRenderer(true, false) creating a line chart, my program works within reasonable memory usage and drawing times. But wh...