Search found 106 matches

by DavidThi808
Tue Sep 29, 2009 1:11 am
Forum: JFreeChart
Topic: custom text & color for axis & data labels
Replies: 3
Views: 5176

custom text & color for axis & data labels

Hi;

Can someone point me to a url that shows the best way to tell JFreeChart how to format the text and set the color for the axis and data labels?

thanks - dave
by DavidThi808
Tue Sep 29, 2009 1:10 am
Forum: JFreeChart
Topic: get axis min/max/major/minor
Replies: 4
Views: 5754

get axis min/max/major/minor

For a dataset how can we get the axis minimum, maximum, major units, & minor units that re the default for that set of data?

thanks - dave
by DavidThi808
Tue Sep 29, 2009 1:08 am
Forum: JFreeChart
Topic: How much prettier over 1.0.1
Replies: 2
Views: 3416

How much prettier over 1.0.1

Hi; We are very happy with 1.0.1 in terms of functionality. However, we do get questions at times about can we make our charts a bit prettier. Does the latest version render prettier? (I know that's a subjective question.) I ask because switching to the new version is a serious time hit for us (we h...
by DavidThi808
Tue Jul 31, 2007 5:33 pm
Forum: JFreeChart
Topic: Thousands, millions, billions, & gazillions?
Replies: 10
Views: 9480

Hi;

You guys know much better than me what is needed as you read this daily. But the 2 main things I think you need for the number is a multiplier (which normally would be values like 0.001, 0.000001, ...) and a pattern for the formatter.

thanks - dave
by DavidThi808
Tue Jul 31, 2007 3:23 pm
Forum: JFreeChart
Topic: Thousands, millions, billions, & gazillions?
Replies: 10
Views: 9480

Here you go - it is a large and very complex class: public class DivNumberFormat extends DecimalFormat { private int magnitude; public DivNumberFormat(int magnitude) { this.magnitude = magnitude; } public StringBuffer format(double number, StringBuffer result, FieldPosition fieldPosition) { return s...
by DavidThi808
Mon Jul 30, 2007 11:54 pm
Forum: JFreeChart
Topic: Thousands, millions, billions, & gazillions?
Replies: 10
Views: 9480

I overrode NumberFormat and it works great - piece of cake.

thanks - dave
by DavidThi808
Fri Jul 27, 2007 3:23 pm
Forum: JFreeChart
Topic: Thousands, millions, billions, & gazillions?
Replies: 10
Views: 9480

Re: Thousands, millions, billions, & gazillions?

DavidThi808 wrote:ps - what order of magnitude is a gazillion?
Sorry, I guess I should have put a :D after the ps - that part was a joke.

Seriously - can the axis be set to divide all values for thou/mil/bil?
by DavidThi808
Fri Jul 27, 2007 3:08 am
Forum: JFreeChart
Topic: Thousands, millions, billions, & gazillions?
Replies: 10
Views: 9480

Thousands, millions, billions, & gazillions?

Hi;

Is there a way to tell an axis to divide all numbers by 1,000; 1,000,000; and 1,000,000,000 so if all my values are 1,000 - 29,000 the axis is 1 - 29?

thanks - dave

ps - what order of magnitude is a gazillion?
by DavidThi808
Tue Jul 24, 2007 5:26 pm
Forum: JFreeChart
Topic: BarRenderer.setMaximumBarWidth() seems to be ignored
Replies: 3
Views: 4859

Hi;

I did 0.05 and 20.0 and there was a difference - but the one was merely twice as wide as the other. I expected a much greater difference. Is that all it should be?

thanks - dave
by DavidThi808
Tue Jul 24, 2007 1:20 am
Forum: JFreeChart
Topic: 3D charts - how to set the 3D axis walls?
Replies: 1
Views: 2500

3D charts - how to set the 3D axis walls?

Hi;

For 3D charts (like 3D bar) there is a grey wall along both the X and Y axis. How can I set the color of that and/or turn it off?

thanks - dave
by DavidThi808
Tue Jul 24, 2007 1:11 am
Forum: JFreeChart
Topic: BarRenderer.setMaximumBarWidth() seems to be ignored
Replies: 3
Views: 4859

BarRenderer.setMaximumBarWidth() seems to be ignored

I've set this to 0.5 and 2.0 and I get the same bars I get when it's left to the default of 1.0. Am I missing something?

thanks - dave
by DavidThi808
Mon Jul 23, 2007 4:57 pm
Forum: JFreeChart
Topic: Can JFreeChart do the following?
Replies: 2
Views: 3315

Here you go - http://www.windwardreports.com/temp/bars.png (if you were here in Colorado I'd just lend you a copy of Excell 2007). 1) horizontal majr & minor grid lines, vertical major only. (Excel also supports minor only as well as none). I think this is the most useful of the 4 things listed here...
by DavidThi808
Mon Jul 23, 2007 4:04 pm
Forum: JFreeChart
Topic: Line width (Stroke) - what units?
Replies: 2
Views: 3442

The units are Java2D units, which are 1/72 inch. It's never been entirely clear to me what happens on, say, a 96dpi screen - is the line slightly wider than 1 pixel? In theory, I guess the answer is yes. In practice, I think the rendering hints come into play here. Ok, that makes sense I think. My ...
by DavidThi808
Mon Jul 23, 2007 4:03 pm
Forum: JFreeChart
Topic: GradientPaint - what units?
Replies: 4
Views: 5055

david.gilbert wrote:In short, yes the coordinates you specify in the GradientPaint object usually are ignored.
Is a good way to look at it that a 0 -> 0 means no gradient and a 0 -> 1 (or any positive value) means JFreeChart will run the gradient over the length of the object?

thanks - dave
by DavidThi808
Mon Jul 23, 2007 4:02 pm
Forum: JFreeChart
Topic: DualAxisDemo1 questions - setDomainAxisLocation
Replies: 2
Views: 3479

Re: DualAxisDemo1 questions - setDomainAxisLocation

Thanks for the answer - maybe I am starting to get a good understanding of JFreeChart.

thanks - dave