Search found 9 matches
- Thu Mar 23, 2006 10:59 am
- Forum: JFreeChart
- Topic: Outline in XYBarRenderer - still has problem ?! Workaround ?
- Replies: 0
- Views: 2264
Outline in XYBarRenderer - still has problem ?! Workaround ?
Hi, I'm trying to use XYBarRenderer for which the space between two bars should be zero (I want them to stick together). I've been looking for examples and reading through the forum, and up to now I could state that there was indeed something lacking there, in 2004 already. It has been planned to ad...
- Tue Nov 08, 2005 9:12 am
- Forum: JFreeChart
- Topic: problem with zoom -- AffineTransform scale
- Replies: 1
- Views: 3048
Hello,
Have a look at this thread
http://www.jfree.org/phpBB2/viewtopic.php?t=14854
I guess this should address your problem.
Good luck,
Have a look at this thread
http://www.jfree.org/phpBB2/viewtopic.php?t=14854
I guess this should address your problem.
Good luck,
- Mon Nov 07, 2005 4:21 pm
- Forum: JFreeChart
- Topic: like selecting a point with mouse
- Replies: 9
- Views: 11652
you can also make use of double x_min = panel.getChart().getXYPlot().getDomainCrosshairValue() ; double y_min = panel.getChart().getXYPlot().getRangeCrosshairValue() ; after setting the crosshair to lock on data panel.getChart().getXYPlot().setDomainCrosshairVisible(true); panel.getChart().getXYPlot...
- Mon Nov 07, 2005 3:55 pm
- Forum: JFreeChart
- Topic: like selecting a point with mouse
- Replies: 9
- Views: 11652
Here's a piece of code you could use ... I need to do something familiar. I don't pretend it's the most efficient way though. public void mousePressed(MouseEvent e){ // get the chart coordinates for the mouse click Point2D p = ChartUtils.screenToChart(panel,e.getPoint()); // try to locate the closes...
- Fri Oct 21, 2005 1:58 pm
- Forum: JFreeChart
- Topic: scale problem when getting coordinates of the cursor
- Replies: 14
- Views: 24666
- Fri Oct 21, 2005 8:52 am
- Forum: JFreeChart
- Topic: scale problem when getting coordinates of the cursor
- Replies: 14
- Views: 24666
I noticed something weird and I suppose it's related to what you said, skunk (don't take this as an insult, but you chose that name :roll: ) : When resizing a frame holding a chart, let's say make it 3 times wider, in the ChartPanel the chart would look flat, the texts and shapes look quite terrible...
- Fri Oct 21, 2005 8:45 am
- Forum: JFreeChart
- Topic: scale problem when getting coordinates of the cursor
- Replies: 14
- Views: 24666
I'm not sure if this is exactly what you mean, but I tried this chartPanel.addComponentListener(new ComponentListener(){ public void componentHidden(ComponentEvent arg0) {} public void componentMoved(ComponentEvent arg0) {} public void componentResized(ComponentEvent arg0) { chartPanel.getChart().fi...
- Thu Oct 20, 2005 2:27 pm
- Forum: JFreeChart
- Topic: scale problem when getting coordinates of the cursor
- Replies: 14
- Views: 24666
- Thu Oct 20, 2005 8:56 am
- Forum: JFreeChart
- Topic: Zoom doesn't respect specifications
- Replies: 1
- Views: 2830
Here's a simple workaround, hope it could help others :) /** * Zooms a particular axis on a point, workaround to the centered version of ValueAxis * @param axis * @param x * @param zoomFactor */ public static void zoomOnPoint(ValueAxis axis, double x, double zoomFactor) { double oldLowerBound = axis...