Search found 8 matches
- Wed Mar 24, 2010 3:57 pm
- Forum: JFreeChart
- Topic: Questions on drawing bars with arrows on one or both ends
- Replies: 1
- Views: 1589
Re: Questions on drawing bars with arrows on one or both ends
I thought I would post my solution to this. Fortunately my application only requires an arrow point on only one end. My workaround uses the CategoryPointerAnnotation for plotting. I basically set the bar graph data to zero, and then use CategoryPointerAnnotation to draw an arrow where the bar would ...
- Tue Mar 23, 2010 9:42 pm
- Forum: JFreeChart
- Topic: CategoryPointerAnnotation Help - Translate plot coordinates
- Replies: 1
- Views: 1745
CategoryPointerAnnotation Help - Translate plot coordinates
I am trying to use CategoryPointerAnnotation to draw arrows at specific locations, angles, and lengths on a plot. As an example, I want to draw an arrow anchored at 9.0 in a category, with base at 5.0. However, base radius is in Java2D units/pixels. So I need to translate "9 minus 5" into a pixel co...
- Tue Feb 23, 2010 9:52 pm
- Forum: JFreeChart
- Topic: Questions on drawing bars with arrows on one or both ends
- Replies: 1
- Views: 1589
Questions on drawing bars with arrows on one or both ends
From a quick search on the Internet and in the documentation that I have, I think the answer is "No", but I want to ask here: Is it possible to draw the bars in a graph so that one or both ends of the bar are an arrow? This for the IntervalBarRenderer, where I would like to show that a graph should ...
- Mon Feb 08, 2010 3:31 pm
- Forum: JFreeChart
- Topic: Question on Item Labels and IntervalCategoryItemLabelGenerat
- Replies: 0
- Views: 1802
Question on Item Labels and IntervalCategoryItemLabelGenerat
Question on Item Labels and IntervalCategoryItemLabelGenerator I am finding that if the bar length is smaller than the item label length (such as for "1.000-2.500"), that the label is not displayed. In my case, I rotate the item label so that it runs the length of the vertical-oriented bar. If I do ...
- Mon Feb 08, 2010 3:23 pm
- Forum: JFreeChart
- Topic: Problem with bar not centered over label with CategoryPlot
- Replies: 5
- Views: 4983
- Thu Feb 04, 2010 7:48 pm
- Forum: JFreeChart
- Topic: Problem with bar not centered over label with CategoryPlot
- Replies: 5
- Views: 4983
Re: Problem with bar not centered over label with CategoryPlot
With further experimentation...if I use smaller values with renderer.setMaximumBarWidth(), such as 0.02, the bar shifts further and further to the left. So it looks like it is the bar not being center-aligned over the label and not an empty data set. Does anyone have ideas on what I may be doing wro...
- Tue Feb 02, 2010 5:48 pm
- Forum: JFreeChart
- Topic: Problem with bar not centered over label with CategoryPlot
- Replies: 5
- Views: 4983
Re: Problem with bar not centered over label with CategoryPlot
Below is a demo. Note that I have left the line 'renderer.setMaximumBarWidth(0.05);' active so you can see the offset. Commenting this out results in the bar being centered. Thanks for your help! import java.awt.Color; import java.awt.Font; import java.text.DecimalFormat; import org.jfree.chart.*; i...
- Mon Feb 01, 2010 8:29 pm
- Forum: JFreeChart
- Topic: Problem with bar not centered over label with CategoryPlot
- Replies: 5
- Views: 4983
Problem with bar not centered over label with CategoryPlot
I am trying to use CategoryPlot with the IntervalBarRenderer. I have one series for each category. I am trying to control the width of the bars in the plot. If I DO NOT use renderer.setMaximumBarWidth(0.05), the bars are centered over the category labels. If I use renderer.setMaximumBarWidth(0.05), ...