Search found 10 matches

by vcardona
Tue Apr 12, 2005 3:31 pm
Forum: JFreeChart
Topic: Switching between 3D and 2D
Replies: 1
Views: 2323

Switching between 3D and 2D

Is there an easy way to switch a chart between 3D and 2D views without recreating the chart? I currently recreate the entire chart when a user toggles between 2D and 3D. However this loses any customizations that the user may have made to the chart. So I am looking to avoid doing that. I am only wor...
by vcardona
Mon Apr 11, 2005 3:07 pm
Forum: JFreeChart
Topic: Problem in New Version of jfreechart
Replies: 1
Views: 1998

You need the jcommon jar file in your path, and you need to import the required classes.
by vcardona
Fri Apr 08, 2005 4:30 pm
Forum: JFreeChart
Topic: need a part of jfree
Replies: 2
Views: 2633

There are several possible answers to this question. Can you tell us more about what you are trying to do? Generally speaking, there is nothing that forces you to use all of the functionality of JFreeChart. For example, a project I am working on only displays pie and bar charts. I am assuming that y...
by vcardona
Fri Apr 08, 2005 3:24 pm
Forum: JFreeChart
Topic: Removing values from legend of pie chart
Replies: 1
Views: 3201

Removing values from legend of pie chart

I noticed that the legend on a pie chart contains the value of each slice. Is there a way to not display the value? For example, if a slice in the pie chart represents the number of cars in a car lot, the legend will display "cars = 10". Basically, it displays the same label as the tooltips and call...
by vcardona
Thu Mar 31, 2005 4:11 pm
Forum: JFreeChart
Topic: Mysterious subtitle
Replies: 2
Views: 2888

Great! Thanks for shedding some light on that.
by vcardona
Wed Mar 30, 2005 8:54 pm
Forum: JFreeChart
Topic: Toggling between integer and float range axis ticks
Replies: 2
Views: 3011

OK, I have worked around my problem by calling the fireChartChanged() method. I noticed that the code posted above should work, and firing a chartchagedevent does update the chart panel. My only question now is why are some events (i.e. the first time the tick units are changed) processed as normal,...
by vcardona
Wed Mar 30, 2005 6:08 pm
Forum: JFreeChart
Topic: closing frame
Replies: 4
Views: 4661

OK, well what version are you using? I know that at least since 0.9.21 the default operation is DISPOSE_ON_CLOSE. In anycase, there is nothing stopping you from changing that.
by vcardona
Wed Mar 30, 2005 5:30 pm
Forum: JFreeChart
Topic: Toggling between integer and float range axis ticks
Replies: 2
Views: 3011

Toggling between integer and float range axis ticks

I am using the example in the developer's guide to change the standard tick units so that they display integer values only. However, I would like to be able to toggle that behavior, so I wrote the folllowing code. CategoryPlot plot = chart.getCategoryPlot(); NumberAxis axis = (NumberAxis) plot.getRa...
by vcardona
Wed Mar 30, 2005 5:22 pm
Forum: JFreeChart
Topic: closing frame
Replies: 4
Views: 4661

I'm not sure I understand what you are asking, so the stuff below might not apply. ChartFrame is just a subclass of JFrame. Its constructor sets the default close operation to dispose(). That should only destroy that particular frame. So unless it was the last frame still open your application will ...
by vcardona
Tue Mar 29, 2005 10:11 pm
Forum: JFreeChart
Topic: Mysterious subtitle
Replies: 2
Views: 2888

Mysterious subtitle

I am writing a custom chart customization panel that people can use to change the appearance of charts created with JFreeChart. None of the charts should have any subtitles by default so I expected that the code inside the if statement would be skipped. if (chart.getSubtitleCount() > 0) { this.txtSu...