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
Need Help....
-
- Posts: 10
- Joined: Tue May 02, 2017 7:24 am
- antibot: No, of course not.
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Need Help....
You might look at one of the annotations, such as XYShapeAnnotation. See also ShapeUtilities.
-
- Posts: 10
- Joined: Tue May 02, 2017 7:24 am
- antibot: No, of course not.
Re: Need Help....
Thank you John...My first issue is now resolved.
Any idea how I can resolve the second one.
Any idea how I can resolve the second one.
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Need Help....
Maybe an XYItemLabelGenerator?
-
- Posts: 10
- Joined: Tue May 02, 2017 7:24 am
- antibot: No, of course not.
Re: Need Help....
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
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
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Need Help....
Verify that your annotation is added to Layer.BACKGROUND.