Search found 10 matches
- Wed Mar 29, 2006 2:54 pm
- Forum: JFreeChart
- Topic: Refresh legend after changing series color?
- Replies: 2
- Views: 5803
Here is the class I wrote. It makes the assumption that the plot is an XYPlot of some form, but that can be worked around if necessary. It also invokes another utility class for checking if a plot is a combined plot and getting all subplots. You can either ignore that part, write your own, or get th...
- Thu Mar 16, 2006 6:44 pm
- Forum: JFreeChart
- Topic: Refresh legend after changing series color?
- Replies: 2
- Views: 5803
Refresh legend after changing series color?
I wrote a cewolf ChartPostProcessor to modify the color of the series in a chart rather than using the default ones. Changing the actual series colors was easy, but I don't see a quick way to get the legend to refresh the color boxes next to the LegendItems with the new colors. The LegendItems thems...
- Fri Jun 17, 2005 10:32 pm
- Forum: JFreeChart
- Topic: Extensions for data sources, XML manip, showing chart focus
- Replies: 1
- Views: 3097
For anyone interested, I have posted a new version of these extensions along with a more complete example and docs. http://sourceforge.net/projects/meta-jb/ The charting stuff is in the Extras package. It's a single zip download. You will need the jars in the Core release as well (again, a single do...
- Fri Jun 10, 2005 1:13 pm
- Forum: JFreeChart
- Topic: how to show values in bars of a stackedbarchart?
- Replies: 7
- Views: 13836
No prob. Glad it was of use. If you want the latest version with some better calcs for when to draw labels and some more stuff, I just pushed it to the sourceforge patches tracker: http://sourceforge.net/tracker/index.php?func=detail&aid=1218160&group_id=15494&atid=315494 Javadoc of what it does: Ha...
- Thu Jun 09, 2005 3:06 pm
- Forum: JFreeChart
- Topic: Have code to donate
- Replies: 5
- Views: 5889
Another chart-XML integration approach
Very nice! I have also done some work in this area. I posted a summary here a while back: http://www.jfree.org/phpBB2/viewtopic.php?t=12599 Dave's approach is straightforward and definately less intrusive. Mine is sort of a mini-charting-framework since it uses concepts from the meta-jb project othe...
- Mon Apr 18, 2005 1:41 pm
- Forum: JFreeChart
- Topic: Extensions for data sources, XML manip, showing chart focus
- Replies: 1
- Views: 3097
Extensions for data sources, XML manip, showing chart focus
All, I've written some extensions for reading in chart configurations from XML and feeding data into charts from a variety of objects without writing any new code to do so (again, configuration happens via XML). The extensions are a new package within the meta-jb project on source forge: http://sour...
- Thu Apr 07, 2005 3:56 pm
- Forum: JFreeChart
- Topic: Can I create "stacked bar chart" by using jFreeCha
- Replies: 3
- Views: 5519
- Thu Apr 07, 2005 3:47 pm
- Forum: JFreeChart
- Topic: how to show values in bars of a stackedbarchart?
- Replies: 7
- Views: 13836
More Sample Code
I actually pulled out the code to a temporary subclass so I don't have to custom build the jfreechart jars. Here is is. All but the last couple of lines are just copied from the parent class to get the proper coordinates. I use the .9.21 code base if that makes a difference to folks: public class St...
- Thu Apr 07, 2005 2:48 pm
- Forum: JFreeChart
- Topic: how to show values in bars of a stackedbarchart?
- Replies: 7
- Views: 13836
Funnny you should ask since I just had to do that this morning in StackedXYBarRenderer. If you mean the regular category StackedBarRenderer, I think that just turning on ItemLabelsVisible (see AbstractRenderer javadoc or look at the BarChartDemo3.java in the sample code for some good settings with t...
- Tue Apr 05, 2005 8:01 pm
- Forum: JFreeChart
- Topic: ChartEntity nearest to mouse click
- Replies: 2
- Views: 5758
ChartEntity nearest to mouse click
I have seen many posts for people asking for ways to get information from a mouse click when there isn't a ChartEntity directly under the click (like for a line on an XY line chart, for example). I had a similar need and came up with this mouse handler this morning. It finds the closest ChartEntity ...