Search found 30 matches
- Tue Jan 09, 2018 6:27 pm
- Forum: JFreeChart
- Topic: Tooltips for Pie Chart as Annotation?
- Replies: 2
- Views: 4764
Re: Tooltips for Pie Chart as Annotation?
Thank you as that was extremely helpful! I had already created my own AbstractXYAnnotation class as I needed the pie chart to to be displayed in a relative position (similar to XYTitleAnnotation) near the corner, as opposed to a fixed location in data space. This is because I want the pie chart to a...
- Mon Jan 08, 2018 3:27 pm
- Forum: JFreeChart
- Topic: Clickable Annotation?
- Replies: 2
- Views: 4009
Re: Clickable Annotation?
Thanks! I will give this a try.
- Mon Jan 08, 2018 3:20 pm
- Forum: JFreeChart
- Topic: Tooltips for Pie Chart as Annotation?
- Replies: 2
- Views: 4764
Tooltips for Pie Chart as Annotation?
In my program, my main chart is a CombinedDomainXYPlot which displays different sets of data. I also have a small pie chart which I'm adding to this x-y chart as an XYDrawableAnnotation. Everything works fine. However, I'm having trouble figuring out how/if I can implement tooltips for the individua...
- Wed Dec 13, 2017 2:52 pm
- Forum: JFreeChart
- Topic: Clickable Annotation?
- Replies: 2
- Views: 4009
Clickable Annotation?
Is there any way to create an annotation with a mouse-click event? Specifically, I'm using an XYTitleAnnotation and would like to call some code if the user clicks it.
- Thu Feb 19, 2015 5:04 pm
- Forum: JFreeChart
- Topic: Overwriting Zoom Rectangle Issue
- Replies: 0
- Views: 3716
Overwriting Zoom Rectangle Issue
I'm trying to create my own zoom rectangle where the user is not forced to always move the mouse to the bottom-right. Ideally, I'd like to create a zoom rectangle using any of the other three starting orientations (bottom-left, top-right, top-left). To do this, I have to change code in ChartPanel.ja...
- Wed Aug 20, 2014 1:26 pm
- Forum: JFreeChart
- Topic: Clone() Not Supported
- Replies: 6
- Views: 7521
Re: Clone() Not Supported
Thanks. That makes sense.
- Mon Aug 18, 2014 7:36 pm
- Forum: JFreeChart
- Topic: Clone() Not Supported
- Replies: 6
- Views: 7521
Re: Clone() Not Supported
I managed to "fix" the issue by changing all my "implements XYToolTipGenerator" classes to "extends StandardXYToolTipGenerator".
- Mon Aug 18, 2014 7:16 pm
- Forum: JFreeChart
- Topic: Clone() Not Supported
- Replies: 6
- Views: 7521
Re: Clone() Not Supported
Clone fails in this self-contained code. There seems to be an issue with the XYToolTipGenerator. import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.labels.XYToolTipGenerator; import org.jfree.chart.plot.XYPlot; import org.jfree.data.time.Month; import org....
- Mon Aug 18, 2014 1:35 pm
- Forum: JFreeChart
- Topic: Clone() Not Supported
- Replies: 6
- Views: 7521
Re: Clone() Not Supported
Here is the stack trace. I'll try to get the code into a self-contained program. Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.CloneNotSupportedException: Failed to clone. at org.jfree.chart.util.CloneUtils.cloneMapValues(CloneUtils.java:100) at org.jfree.chart.rendere...
- Fri Aug 15, 2014 8:07 pm
- Forum: JFreeChart
- Topic: Clone() Not Supported
- Replies: 6
- Views: 7521
Clone() Not Supported
I have been using the clone function with success until I updated to version 1.0.19. Now I get a CloneNotSupportedException. Here is my code: JFreeChart exportChart = null; try { exportChart = (JFreeChart) getChart().clone(); } catch (CloneNotSupportedException e) { logger.log(Level.SEVERE, null, e)...
- Sun Oct 27, 2013 4:19 pm
- Forum: JFreeChart
- Topic: LGPL requirements for Web Start application
- Replies: 0
- Views: 2626
LGPL requirements for Web Start application
In a Web Start application using JFreeChart, it's not possible for the user to "swap out" the JFreeChart JAR with their own version. Because of this, how does a Web Start application comply with the LGPL? If the Web Start application includes 1) "prominent" notice that the JFreeChart library is bein...
- Wed Nov 19, 2008 4:46 pm
- Forum: JFreeChart
- Topic: Tooltips for invisible shapes?
- Replies: 1
- Views: 2251
Tooltips for invisible shapes?
I'm using an XYLineAndShapeRenderer with shapes set to "hidden". My problem is that the tooltips are not being displayed when the mouse is hovering over these "hidden" shapes. If I set the shapes to visible in the renderer constructor, then the tooltips are correctly displayed when the mouse hovers ...
- Mon Apr 21, 2008 7:58 pm
- Forum: JFreeChart
- Topic: chartMouseMoved bug?
- Replies: 6
- Views: 5379
- Tue Apr 15, 2008 7:47 pm
- Forum: JFreeChart
- Topic: chartMouseMoved bug?
- Replies: 6
- Views: 5379
chartMouseMoved bug?
I have implemented the ChartMouseListener for my ChartPanel. However, the method chartMouseEvent.getEntity() is not always returning an XYItemEntity. Sometimes the mouse cursor will be directly on top of a point in the line, yet getEntity() will return NULL. Here is my code: public void chartMouseMo...
- Tue Mar 04, 2008 9:16 pm
- Forum: JFreeChart
- Topic: ChartUtilities.saveChartAsJPEG bug in 1.0.9
- Replies: 2
- Views: 3866
ChartUtilities.saveChartAsJPEG bug in 1.0.9
Using the ChartUtilities.saveChartAsJPEG function in 1.0.9 seems to produce a JPEG with a transparent red background. Using the code in 1.0.8a produces a correct JPEG. Is this a bug? Here is my code: ChartUtilities.saveChartAsJPEG(file, chartPanel.getChart(), JPEG_WIDTH, JPEG_HEIGHT); 1.0.9 http://h...