Beginner questions about PieCharts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ssnyder
Posts: 5
Joined: Fri Jan 20, 2012 4:54 pm
antibot: No, of course not.

Beginner questions about PieCharts

Post by ssnyder » Fri Jan 20, 2012 5:04 pm

Hi,

I'm evaluating using JFreeChart in my company's internally used Eclipse RCP application and I have a few questions. I've read the forum and have some answers, but wanted to verify them since I still have other questions.

We are not planning on using BIRT because I don't want to deal with a web server on the backend - right now we communicate with our backend using tcpip messaging....and I don't want to go through the hassle of getting a web server (even tomcat) installed in our production environment. Trust me, it's not worth it if I don't have to do it.

1. Apparently there is no issue including the various .jar files into a plugin and linking/exporting as appropriate. I am just double checking that nobody has created a freely available for commercial use plugin version of the library.

2. I need to be able to detect when the user clicks on a section of the pie, when they are hovering over a section of the pie (so I can bold the information and somehow focus on the pie slice)....is this supported in the API? I admit that I didn't read the API that well...so if it is in there, please give me a pointer, or if someone has a great demo.... :)

3. It is not clear to me, but the SWT rendering is available - right? What can I export to? (html, pdf, png?) Printing support?

3. Are there any big gotchas that I should be aware of given that this is to be incorporated into an Eclipse RCP application - and added to one of our existing editors for display to our users? I plan on installing it and trying to run through the demos - but a heads up would be nice!

Thanks!

Sharon

ssnyder
Posts: 5
Joined: Fri Jan 20, 2012 4:54 pm
antibot: No, of course not.

Re: Beginner questions about PieCharts

Post by ssnyder » Mon Jan 23, 2012 9:48 pm

Ok, I will answer my own questions....

1. following the directions in http://www.vogella.de/articles/EclipseJ ... ticle.html I was able to create a view, using the piechart example. No problem, just have to remember the first step of creating a plugin project for the libraries. Still no idea if anyone has made this available anywhere or not, but at least it is easy to do.

2. Yes, you can. I also used the setExplodePercent() api to highlight what was currently hovered. It took me a couple of tries to get it working right, but using the addChartMouseListener() to the ChartComposite made it very simple and straightforward.

-Sharon

Locked