Hi,
In order to achieve what you have suggested would you suggest replacing the draw method of the XYShapeAnnotation class to ignore the width and height?
Thanks
Snoopygee
Search found 18 matches
- Fri Jul 10, 2009 7:56 pm
- Forum: JFreeChart
- Topic: Logarithmic XYShapeAnnotation
- Replies: 4
- Views: 5424
- Thu Jul 09, 2009 4:35 pm
- Forum: JFreeChart
- Topic: Logarithmic XYShapeAnnotation
- Replies: 4
- Views: 5424
Re: Logarithmic XYShapeAnnotation
Hi David, That sounds like a great approach! Without meaning to sound like I want you to write the whole thing for me, I'm not entirely sure how to approach writing a custom annotation class. Any suggestions on the approach would be much appreciated. Would you suggest simply replacing the draw metho...
- Thu Jul 09, 2009 1:42 pm
- Forum: JFreeChart
- Topic: Logarithmic XYShapeAnnotation
- Replies: 4
- Views: 5424
Logarithmic XYShapeAnnotation
Hi, When I'm using the standard linear axis (X and Y), I can draw elipses around my selected XYPlot chart points using the XYShapeAnnotation and they appear as I expect (i.e circles aroudn the points). However when I create XYPlot charts with a log axis using LogarithmicAxis for example on the y axi...
- Mon May 18, 2009 9:38 am
- Forum: JFreeChart
- Topic: XYPlot Exponential Y Axis smoother scrolling
- Replies: 2
- Views: 3563
Re: XYPlot Exponential Y Axis smoother scrolling
Guys,
Anyone have any idea's about how to return the tick intervals at a given point yet?
Thanks
Snoopygee
Anyone have any idea's about how to return the tick intervals at a given point yet?
Thanks
Snoopygee
- Fri May 15, 2009 2:28 pm
- Forum: JFreeChart
- Topic: How to highlight The dataPoints Of A series ?
- Replies: 4
- Views: 6847
Re: How to highlight The dataPoints Of A series ?
...just re-read your post. Just in case you mean that you want to change every single point in a series once you select only one of them, the easiest way to accomplish this is to reset the parameters of the actual series renderer such as:
renderer.setSeriesShape
renderer.setSeriesPaint
renderer.setSeriesShape
renderer.setSeriesPaint
- Fri May 15, 2009 2:24 pm
- Forum: JFreeChart
- Topic: How to highlight The dataPoints Of A series ?
- Replies: 4
- Views: 6847
Re: How to highlight The dataPoints Of A series ?
There is no way to do this automatically, the chart does not supply this exact functionality by default. The only way to do this is to identify the x, y values from the mouse event and manually draw a XYShapeAnnotation as a circle (or another shape) around each point you want to highlight. This of c...
- Fri May 15, 2009 2:14 pm
- Forum: JFreeChart
- Topic: XYPlot Exponential Y Axis smoother scrolling
- Replies: 2
- Views: 3563
Re: XYPlot Exponential Y Axis smoother scrolling
Guys, I've had an idea how I can occomplish this but still stuck on a small detail. If I can return the unit amount currently being used on a given axis, then I can iterate this amount with my scroll bar. For example, for the easy linear axis of 1 - 100 with 10 tick unit markers, the tick interval w...
- Wed May 13, 2009 4:24 pm
- Forum: JFreeChart
- Topic: XYPlot Exponential Y Axis smoother scrolling
- Replies: 2
- Views: 3563
XYPlot Exponential Y Axis smoother scrolling
Hi guys, I have a small problem that I hope you can advise me on. I've implemented an XYPlot with a linear x-axis and exponential y-axis, each axis with it's own scroll bar. As the x-axis is linear enabling a consistant scrolling action is very easy, If I have 100 points on the axis I simply set the...
- Thu Apr 23, 2009 1:25 pm
- Forum: JFreeChart
- Topic: Can't access XYPlot data point behind XYBoxAnnotation
- Replies: 2
- Views: 4282
Re: Can't access XYPlot data point behind XYBoxAnnotation
OK seems as though I have found the solution.
Rather than using Annotations I can use a Domain Marker. This allows be to enforce a layer order so that the points appear above the Marker and remain selectable.
Cheers
Snoopygee
Rather than using Annotations I can use a Domain Marker. This allows be to enforce a layer order so that the points appear above the Marker and remain selectable.
Cheers
Snoopygee
- Thu Apr 23, 2009 11:46 am
- Forum: JFreeChart
- Topic: Can't access XYPlot data point behind XYBoxAnnotation
- Replies: 2
- Views: 4282
Can't access XYPlot data point behind XYBoxAnnotation
Hi All, When I add an XYBoxAnnotation to an XYPlot I can no longer access any data points which happen to be drawn within the same area, the XYBoxAnnotation seems to be drawn ontop of the data points. As I still need the mouse to be able to highlight and select these points I would like a method to ...
- Thu Apr 23, 2009 11:41 am
- Forum: JFreeChart
- Topic: Position legend within xyplot
- Replies: 1
- Views: 2964
Position legend within xyplot
Hi all,
Can anyone please tell me how to position the legend within an XYPlot (ideally top right hand side of the chart), in a vertical orientation.
Thanks in advance.
Snoopygee
Can anyone please tell me how to position the legend within an XYPlot (ideally top right hand side of the chart), in a vertical orientation.
Thanks in advance.
Snoopygee
- Mon Feb 23, 2009 11:30 am
- Forum: JFreeChart
- Topic: How to retrieve XYItemEntity from Domain/RangeCrosshair
- Replies: 7
- Views: 10610
How to retrieve XYItemEntity from Domain/RangeCrosshair
Hi, I have set the following in my chart: XYPlot.DomainCrosshairVisible(true) XYPlot.DomainCrosshairVisible(true) This enables the functionality that wherever I click on the chart the doman and range crosshairs jump to the nearest data point on my chart. This functionality is exactly what I'm lookin...
- Fri Feb 13, 2009 3:56 pm
- Forum: JFreeChart
- Topic: Highlight selected data point
- Replies: 6
- Views: 12975
Thanks for all your replies guys. The tricky bit for me is how to alter the renderer. I understand how to receive the mouse events and to retrieve the underline data for the selected points, but not sure how to actually alter the paint method to redraw the specific point differently. Extra brownie p...
- Fri Feb 13, 2009 10:21 am
- Forum: JFreeChart
- Topic: Highlight selected data point
- Replies: 6
- Views: 12975
- Thu Feb 12, 2009 12:02 pm
- Forum: JFreeChart
- Topic: Highlight selected data point
- Replies: 6
- Views: 12975
Highlight selected data point
Hi All, When I mouse over a data point in an YXSeries chart I would like the point to highlight somehow (by changing colour and/or become encircled) to indicate that a particular point is selected. Would someone please be able to point me in the right direction on how to perform this action. Thanks ...