library to display graphs [message #1006673] |
Fri, 01 February 2013 06:41  |
Eclipse User |
|
|
|
Hi there,
I am looking for a library that can handle the display of graphs. I just need simple graphs with labeling and maybe a a "tooltip" if I hover over a certain point on the graph. I don't need diagrams or charts. Is Birt the right tool for me? And is there a difference between Birt and Birt designer?
I tried to figure it out myself, but I can't get it running.
First of all, I can't find the link with which I can download v4.2. Here http://wiki.eclipse.org/BIRT_Update_Site_URL only 3.7 is mentioned.
Also I can't find any good documentation on how to get startet. http://www.eclipse.org/articles/article.php?file=Article-BIRTChartEngine/index.html helps a little, but there is no complete example code. And when I try to put some of the basic classes of com.ibm.examples.chart.zip in my own project it doen't work either, because this:
chart.getPlot().setBackground(ColorDefinitionImpl.ORANGE());
causes this:
Access restriction: The method setBackground(Fill) from the type Block is not accessible due to restriction on required library E:\eclipse42\plugins\org.eclipse.birt.chart.engine_3.7.2.v20120213.jar
Actually I wanted to use JFreeChart, but I heard that the SWT-Connection is not beeing developed any further.
http://sourceforge.net/mailarchive/message.php?msg_id=24569902
|
|
|
|
|
Re: library to display graphs [message #1007408 is a reply to message #1006830] |
Tue, 05 February 2013 13:44  |
Eclipse User |
|
|
|
You can just use the chart engine api similar to what you posted in the example. The only reason I mentioned the designer is it is very simple to use and allows you to update your report anytime you want without having to change code. For example if you use the BIRT Chart api in your webapp you would code a pie chart and attach data to it. If you decide to change to a bar chart later, this will require a recompile. If you used a report, which is just an xml document that describes the data source and chart in your case, then this would just require swapping the xml report design file.
Jason
|
|
|
Powered by
FUDForum. Page generated in 0.03282 seconds