Skip to main content



      Home
Home » Archived » BIRT » Working chart sample report
Working chart sample report [message #18466] Mon, 14 March 2005 07:19 Go to next message
Eclipse UserFriend
Originally posted by: jmp.robotbait-mobiquity.net

I have been trying to get a chart based report working.

I have grouped table reports working just fine, but as soon as I insert a
chart & try and bind it, the preview window just shows a blank & I can't
see any useful error logs anywhere.

Can anyone post, or email me a working report example showing use of a bar
or line chart. I had a sniff around CVS but couldn't see one there.

Thanks,
Matthew
Re: Working chart sample report [message #18486 is a reply to message #18466] Mon, 14 March 2005 16:37 Go to previous message
Eclipse UserFriend
Hi Matthew,

We're working on addressing a few usability issues with binding charts to
datasets via the UI. To get charts working in the preview and linked to a
datasource, here's a checklist of user tasks:

A] Define a dataset in your report design ... call it 'my dataset'

B] After you have inserted the chart into the report design, dispose the
chart builder, enable the 'Properties' view and set the 'Data set'
property for the selected chart instance to 'my dataset' (note: must be
case sensitive and exactly as defined)

C] Re-invoke the chart builder. If it is a 'chart with axes' (e.g. a Bar
chart), ensure that you provide data definitions in the X series and Y
series data property sheets. If it is a 'chart without axes' (e.g. a Pie
chart), ensure that you have provided data definitions in the Base series
and Orthogonal series data property sheets.

An example of data definitions are:

For X series = row["CategoryData"] ... usually text values

For Y series = row["ValueData"] ... usually numerical values

So your dataset should containing the two columns:

CategoryData ValueData
------------ ---------
Hardware 25
Software 45
Middleware 33

The row["Expression"] can be set by invoking the expression builder from
the data definition fields (in each of the series property sheets) and by
double clicking the datafields from the 'bound dataset' in the tree on the
LHS.

Once this is done, you should be able to preview the output containing the
chart. We are working on presenting any errors gracefully in the UI.

If you are running BIRT using development source through the
runtime-workbench, you should see errors in the console of the parent
eclipse instance.

If you are running BIRT using plug-ins that are directly deployed in your
main eclipse instance, then 'viewtime errors and debug messages' may be
seen under the runtime workspace at
...\.metadata\.plugins\org.eclipse.tomcat\catalina.YYYY-MM-d d.log file

Tried sending you an email with a sample report (and dataset used)
containing a chart but it bounced back with the following error:

Subject: "RE: Working chart sample report"
could not be delivered to robotbait-mobiquity.net

Unable to resolve the domain <robotbait-mobiquity.net> for the following
users:
jmp@robotbait-mobiquity.net


Rohit Colaco
ECE Project Lead


---

J. Matthew Pryor wrote:

> I have been trying to get a chart based report working.

> I have grouped table reports working just fine, but as soon as I insert a
> chart & try and bind it, the preview window just shows a blank & I can't
> see any useful error logs anywhere.

> Can anyone post, or email me a working report example showing use of a bar
> or line chart. I had a sniff around CVS but couldn't see one there.

> Thanks,
> Matthew
Previous Topic:BIRT and Advanced Reporting
Next Topic:PropertyDefnFake in current CVS
Goto Forum:
  


Current Time: Sun May 11 08:42:45 EDT 2025

Powered by FUDForum. Page generated in 0.04328 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top