Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Implementation of 3D char and use of Jfreechart

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Implementation of 3D char and use of Jfreechart

    Hi there,
    I'm not really familiar with charting in java but I wish to create an xyz environment (with axes)
    in order to put cubes in the places I want, just reading from a coordinates vector.

    E.g. I wish to put 3 cubes with coordinates
    x[1]: 0 y[1]:0 z[1]: 0 and x[2]: 1 y[2]:0 z[2]: 0 x[3]: 1 y[3]:1 z[3]: 0

    And the cubes are displayed on xyz bar chart format

    Then I wish to distinguish two kind of cubes by using different colors.

    I am using jfreechart currently for plotting charts but there is no chart in this library with a Z axis.

    Can anyone help me?


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: 3D Charts

    Hello tomcat, welcome to the Java Programming Files.

    Have you tried the JOpenChart Library?

    JOpenChart Java Library

    I believe this allows for a Z axis.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: 3D Charts

    Hi JavaPF,
    Thanks for your reply.
    I explored JOpenChart but found that this also doesn't support Z-Axis.
    Also there is not much documentation available for this library.

  4. #4
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: 3D Charts

    This may seem crazy but if you are not after a graph tha tis going to be joining lines after plotting points then you could create your own library in not too much time i imagine. Thus it would be completely customised to you and will require little maths to work out. However, if you require it to plot join points with curves etc then the mathsbehind it will be a bit more complex, but I'm sure there are adequate exaples out there on the internet. It would just be a case of finding out where it is located

    Regards.
    Chris