About "StackedHorizontalBarChart3D"

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mikio Kishi

About "StackedHorizontalBarChart3D"

Post by Mikio Kishi » Thu Aug 29, 2002 8:57 am

Hi,

Is it possible to create StackedHorizontalBarChart3D ?

Sincerely,

Mikio Kishi

David Gilbert

Re: About "StackedHorizontalBarChart3D"

Post by David Gilbert » Fri Aug 30, 2002 7:42 am

Hi Mikio,

It isn't...the 3D effect has only been added to the stacked vertical bar chart so far. If you look at the difference between StackedVerticalBarRenderer.java and StackedVerticalBarRenderer3D.java, you might be able to work out how to write a StackedHorizontalBarRenderer3D.java file. I'll do this at some point, but I have a million other things to complete first.

Regards,

DG.

Mikio Kishi

Re: About "StackedHorizontalBarChart3D"

Post by Mikio Kishi » Fri Aug 30, 2002 4:52 pm

Hi David,

I see.
Now, I try to implement StackedHorizontalBarRenderer3D.java.
But if I have some questions about this, please give me some advice.

Sincerely,

Mikio Kishi

Mikio Kishi

Re: About "StackedHorizontalBarChart3D"

Post by Mikio Kishi » Sat Aug 31, 2002 9:02 pm

Hi David,

I have one question about implement of "StackedHorizontalBarRenderer3D.java".

I think that it is possible to create
"StackedHorizontalBarRenderer3D.java" by only replacing X plot with Y plot
in "StackedVerticalBarRenderer3D.java" .
Is this right ?

Sincerely,

Mikio Kishi

David Gilbert

Re: About "StackedHorizontalBarChart3D"

Post by David Gilbert » Mon Sep 02, 2002 9:58 am

The code will be very similar, you'll just need to swap around the x's and y's, and change the direction of the 3D effect.

Regards,

DG.

Mikio Kishi

Re: About "StackedHorizontalBarChart3D"

Post by Mikio Kishi » Mon Sep 02, 2002 1:17 pm

I implemented "StackedHorizontalBarRenderer3D.java".
This program can be downloaded from the following URL.
Please check my program.

http://www.jaist.ac.jp/~mkishi/JFreeCha ... rer3D.java

Additionally, I think that it is better to call drawCategoryItem() in
HorizontalCategoryPlot.render() from "bottom" category
because of overlap of bars.

Sincerely,

Mikio Kishi

Locked