JFreeCharts And NetBeans

TheV

TheV

@thev-iGmS6y Oct 18, 2024
I want to display a bar chart in my web app. I am using ' jfreechart ' but I don't know how to configure netbean to make it to write jfreechart's codes.
I want to write the chart code in servlet, but can it be written in jsp? Please give example code so that I can understand easily.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • PraveenKumar Purushothaman

    PraveenKumar Purushothaman

    @praveenkumar-66Ze92 Feb 8, 2012

    Check out their API Docs here: <a href="https://www.jfree.org/jfreechart/api.html" target="_blank" rel="nofollow noopener noreferrer">JFreeChart: API Docs</a>
    This would help you! 😀
  • TheV

    TheV

    @thev-iGmS6y Feb 9, 2012

    Thank you...!
    Do you know How can I return the chart into the web page...and display along with the other component..?
  • PraveenKumar Purushothaman

    PraveenKumar Purushothaman

    @praveenkumar-66Ze92 Feb 9, 2012

    Use an applet...
  • TheV

    TheV

    @thev-iGmS6y Feb 9, 2012

    OK...I try..n let you know.!
  • PraveenKumar Purushothaman

    PraveenKumar Purushothaman

    @praveenkumar-66Ze92 Feb 9, 2012

    Sure, if web page, try this:
    <applet code = 'className.methodName' 
            width = 300, 
            height = 300 />