Search found 11 matches
- Fri Apr 15, 2011 10:26 pm
- Forum: JFreeChart
- Topic: Constant plot-position when setting axis visibility?
- Replies: 2
- Views: 3560
Re: Constant plot-position when setting axis visibility?
If you want to see a blank area where the now invisible axis was drawn before, then I have no quick idea. Maybe I could just override the ChartPanel / Chart / Plot (whereever the correct location is) and instead of making the axis invisible, just set it's color to transparent (so JFreeChart does th...
- Sat Mar 26, 2011 12:03 am
- Forum: JFreeChart
- Topic: Constant plot-position when setting axis visibility?
- Replies: 2
- Views: 3560
Constant plot-position when setting axis visibility?
Hello, I have a simple XYPlot in a ChartPanel with two range axis (one left and one right). For that plot, I let the user set the visibility for one of the range axis. However, when I hide a range axis, the plot will resize to use more space, of course. Is it possible to set a constant drawing "posi...
- Tue Apr 27, 2010 11:02 pm
- Forum: JFreeChart
- Topic: Wrong calculation of java2d pos. after resizing ChartPanel
- Replies: 2
- Views: 3616
Re: Wrong calculation of java2d pos. after resizing ChartPanel
Hello skunk, All repainting in Swing occurs asynchronously. You need to install a listener using this method public void addProgressListener(ChartProgressListener listener) and wait until you receive a DRAWING_FINISHED notification before doing the calculation. a big question and such a small answer...
- Tue Apr 27, 2010 3:06 pm
- Forum: JFreeChart
- Topic: Wrong calculation of java2d pos. after resizing ChartPanel
- Replies: 2
- Views: 3616
Wrong calculation of java2d pos. after resizing ChartPanel
Hello, I have a problem with calculating the location (java2d Point) for a given value for a NumberAxis (or point of time for a DateAxis) just after resizing the ChartPanel. It is hard to explain, I try my best: My code to calculate the position is the following: public Point getCoordinatesByChartLo...
- Mon Apr 26, 2010 10:27 pm
- Forum: JFreeChart
- Topic: What is wrong with chartPanel.getScreenDataArea()?
- Replies: 3
- Views: 5579
Re: What is wrong with chartPanel.getScreenDataArea()?
Hello, thanks a lot for your replies. How did the calculation fail? Did it return a negative number? Let's say I click on the plot where the y-value is "25". Then my code really returns a 25. When I now change the height of the plot enough (maybe 800 pixels high) and click again where the "25" is in...
- Mon Apr 26, 2010 5:30 pm
- Forum: JFreeChart
- Topic: What is wrong with chartPanel.getScreenDataArea()?
- Replies: 3
- Views: 5579
What is wrong with chartPanel.getScreenDataArea()?
Hello, I just wanted to calculate the Plot value according to the mouse coordinates in a XYPlot. A task, which has been solved a lot of times when one googles for it. I also managed to calculate the right value, although there is a question left behind. This is how I calculate the plot value (vertic...
- Thu Aug 07, 2008 7:49 am
- Forum: JFreeChart
- Topic: Bug with zooming and axis autorange set to false?
- Replies: 0
- Views: 2310
Bug with zooming and axis autorange set to false?
Hello, I don't know if the following is a bug, but it is definitevely a "strange" behavior: 1. Create a chart with an NumberAxis which range is set (e.g. via ".setRange( 0, 1.5 )"). This causes the "autoRange" member of the class ValueAxis to get set to "false". 2. Start your application and do a zo...
- Wed Aug 06, 2008 8:55 am
- Forum: JFreeChart
- Topic: OHLC dates always renders in the middle of the year
- Replies: 2
- Views: 3729
- Tue Aug 05, 2008 10:57 am
- Forum: JFreeChart
- Topic: Overlay of several charts into one chart?
- Replies: 4
- Views: 4811
Hello Siniz, thanks a lot for your offer. I was not able to get started with it, but I will definitively later today. My goal is to have that "multi chart" as I explained above, and I need to paint the values of each nodes of the charts next to the node. For example, a chart with a node with an y-va...
- Mon Aug 04, 2008 8:22 pm
- Forum: JFreeChart
- Topic: Overlay of several charts into one chart?
- Replies: 4
- Views: 4811
- Sun Aug 03, 2008 7:57 pm
- Forum: JFreeChart
- Topic: Overlay of several charts into one chart?
- Replies: 4
- Views: 4811
Overlay of several charts into one chart?
Hello, I would like to use JFreeChart for a medical application we are building. I've serach the forum and looked into the FAQ but did not quite get an answer for the following use case: Theoretically, I have several different charts, or to be pricise, I have the data for several different charts (y...