I'm new to charts. I'm able to create a bar chart. But no knowledge on how to show an arrow shape/image on top of a bar. Please share me few lines of code if possible to get that.
|
|
|
|_|^|__|_|__|_|__|_|__
Its quite urgent, I appreciate early response.
How to display arrow mark at specific bar in the barchart
-
- Posts: 1
- Joined: Tue Sep 18, 2012 7:50 am
- antibot: No, of course not.
Re: How to display arrow mark at specific bar in the barchar
There are a few possibilities. Which is the best depends on the concrete needs.
- martin
- You could use XYPointerAnnotation/CategoryPointerAnnotation for drawing arbitrary pointers in the plot. There is also XYImageAnnotation for drawing images. Search the forum and read the JavaDoc for details.
- You could modify the used renderer. Basically this is derive from your renderer class (e.g. XYBarRenderer) and override drawItem() Method.
- martin
Re: How to display arrow mark at specific bar in the barchar
even i want to do the same thing.can anione please tell us.Thanks in advance