Simple Java Application Creating and Saving Different Charts [message #658614] |
Wed, 09 March 2011 09:26 |
Carl Emmoth Messages: 8 Registered: March 2010 |
Junior Member |
|
|
The application will:
1) Fully configurable paths and database selection
2) Make charts (pie, line and 3d bars)
3) Save it to design, report and html
4) View the html in a JEditorPane
The application will use the test database to retrieve data with some restrictions. Only the two first columns from the sql-selection will be used, and the first one must be in string-format.
1) You need to include the follwing jar-files (included in birt engine, model and chart api):
engineapi.jar
coreapi.jar
com.ibm.icu...jar
modelapi.jar
js.jar
org.apache.commons.codec...jar
org.eclipse.birt.chart.engine...jar
org.eclipse.birt.chart.reportitem.source...jar
org.eclipse.emf.ecore...jar
org.eclipse.emf.common...jar
org.eclipse.emf.ecore.xmi...jar
scriptapi.jar
2) Create icons in "./resources" folder or ignore them.
3) If you need to write a report, change the IRunAndRenderTask to one IRunTask and one IRenderTask.
Source:
Pastbin:
http://pastebin.com/VUvyDsgW
Link to other forums:
"Charts Example with JDBC"
Home / DevShare / Deploying BIRT Reports
http://www.birt-exchange.org/org/devshare/deploying-birt-rep orts/1171-charts-example-with-jdbc/
[Updated on: Wed, 09 March 2011 09:28] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03393 seconds