Need Help....

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
manjusha0110
Posts: 10
Joined: Tue May 02, 2017 7:24 am
antibot: No, of course not.

Need Help....

Post by manjusha0110 » Tue May 09, 2017 12:42 pm

Hi,

I am new to Jfreechart and need your help to resolve the below 2 issues :-

1. I need to display a small cross hair at the center of my Jfreechart. Currently i am using the XYSeries and am displaying a point at the center.
2. My Domain Axis displays alphabets on outside of the axis at the top, I need to show them inside the Jfreechart. Is this possible?


Thanks
Manjusha

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Need Help....

Post by John Matthews » Tue May 09, 2017 2:31 pm

You might look at one of the annotations, such as XYShapeAnnotation. See also ShapeUtilities.

manjusha0110
Posts: 10
Joined: Tue May 02, 2017 7:24 am
antibot: No, of course not.

Re: Need Help....

Post by manjusha0110 » Wed May 10, 2017 6:23 am

Thank you John...My first issue is now resolved.
Any idea how I can resolve the second one.

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Need Help....

Post by John Matthews » Wed May 10, 2017 7:51 am


manjusha0110
Posts: 10
Joined: Tue May 02, 2017 7:24 am
antibot: No, of course not.

Re: Need Help....

Post by manjusha0110 » Wed May 10, 2017 11:24 am

Hi,

My first issue is still unresolved, as after i use annotation, the ChartEntity entity = cme.getEntity(); call in the mousepressed event is giving me null;
how can i resolve this issue.

What i want is after i draw a square at the center of the chart and if i plot any data points within the square also, i should be able to move those points. but its not happening. I am able to move the points which are on Jfreechart outside the square(annotation).

Please help

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Need Help....

Post by John Matthews » Thu May 11, 2017 3:49 am

Verify that your annotation is added to Layer.BACKGROUND.

Locked