Various questions (label, color, html map, axis)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
paquerette
Posts: 10
Joined: Wed Apr 20, 2005 6:23 pm
Location: Paris, France

Various questions (label, color, html map, axis)

Post by paquerette » Thu Apr 21, 2005 2:34 pm

Hi,

I'm new to JFreeChart and AWT too...

I've successfully made awesome chart thanks to JFreeChart, but I'd like to fix some things to make my chart even more pretty :P

I'm make 3D bar Chart, Horizontal.

1/ I'd like to incline the domainAxis label
I've tried
domainAxis.setCategoryLabelPositions(CategoryLabelPositions.createUpRotationLabelPositions(Math.PI / 8.0));

But there no effect...

2/Gradient effect on 3D Bar
I've tried this :

GradientPaint gp0 = new GradientPaint(
0.0f, 0.0f, Color.green,
0.0f, 0.0f, Color.lightGray
);
GradientPaint gp1 = new GradientPaint(
0.0f, 0.0f, Color.red,
0.0f, 0.0f, Color.lightGray
);
GradientPaint gp2 = new GradientPaint(
0.0f, 0.0f, Color.orange,
0.0f, 0.0f, Color.lightGray
);
GradientPaint gp3 = new GradientPaint(
0.0f, 0.0f, Color.blue,
0.0f, 0.0f, Color.lightGray
);

But, i've only the first color

3/I've made a subtitle like AnnotationDemo1, but i would like to draw a thin border around it with a light grey background color. How can I do that...

4/In my chart, i may have big difference between values... and i'd like that big values don't flatten the little one...
Is there anyway to cut the axis like this :

Code: Select all

|
|___________
|_____
|________________________________//_________
|________________________________//_______________
|__ __ __ __ __ __ __ __ __ __ __// __ __ __ __ __ __ _
 10     20     30      40     50 //    200 210  

5/Is there any way to customize the url generated in the html map?


Paquerette

paquerette
Posts: 10
Joined: Wed Apr 20, 2005 6:23 pm
Location: Paris, France

Post by paquerette » Thu Apr 21, 2005 3:13 pm

I've found out why 1/ was not working :

i was doing this after :

CategoryLabelPosition left = new CategoryLabelPosition(

RectangleAnchor.LEFT , TextBlockAnchor.CENTER_LEFT,
TextAnchor.CENTER_LEFT , Math.PI/8.0 ,
CategoryLabelWidthType.RANGE, 0.30f
);
domainAxis.setCategoryLabelPositions(CategoryLabelPositions.replaceLeftPosition(p, left));

so it replaces my first intsruction :p

paquerette
Posts: 10
Joined: Wed Apr 20, 2005 6:23 pm
Location: Paris, France

Post by paquerette » Mon Apr 25, 2005 8:52 am

up!

paquerette
Posts: 10
Joined: Wed Apr 20, 2005 6:23 pm
Location: Paris, France

Post by paquerette » Tue Apr 26, 2005 10:06 am

Hhhhheeeelllllloooooooo....

Is there anybody in there??

Locked