Skip to main content



      Home
Home » Archived » BIRT » Chart Object
Chart Object [message #26626] Thu, 14 April 2005 16:37 Go to next message
Eclipse UserFriend
Is there any documentation on how to use the Chart object from within the
designer. Then's plenty of documentation on how to programmatically use
it, but not from within the designer. I'm trying to do what I thought was
a simple bar chart of the SFDATA test data showing the following from
"items":
Data X Series: row["itemcode"]
Data Y Series: Sum of row["quantity"]

Basically I just want to see the itemcode vs total bought. Yet when I try
and bind that I keep getting
ERROR MESSAGE
Semantic errors in C:\eclipse\workspace\My Reports\charttest.rptdesign.
The value of the property "keyExpr" is required.
Re: Chart Object [message #26667 is a reply to message #26626] Thu, 14 April 2005 19:29 Go to previous message
Eclipse UserFriend
Hi Hank,

The documentation for using the chart within the BIRT designer is under
construction. As soon as we have something available, we will try and post
it. Also, we're working on some core integration points between charts and
the BIRT reporting system which may not work at your end (depending on the
sources/binaries that you are working with).

In general, as described in a previous post, here's how you would make a
chart work in the context of a BIRT report:

A] Create a new report; define a datasource and a dataset
B] Drop in a chart; select the appropriate chart type in the chart
selector; click on DEFINE CHART or OK
C] Select the dataset binding in the 'DATA' property sheet (or leave it as
none if the chart is embedded within a parent table/grid containing a
bound dataset)
D] Define the data definition for the X series ( e.g. row["itemcode"] )
E] Define the data definition for the Y series ( e.g. row["quantity"] )

Now, if you wanted to group data, the procedure would be:
A] First, drop a table into the report design
B] Insert a group into the table; define the grouping as column 'category'
C] Insert the chart into the HEADER or FOOTER of a table; do not define a
dataset binding in the DATA property sheet because all columns from the
table's inherited dataset should be made available to the chart data
definition; hide all other rows/columns of the table that are not needed
D] Define the data definition for the X series ( e.g. row["itemcode"] )
...
E] Define the data definition for the Y series ( e.g.
Total.sum(row["quantity"]) )

This grouping implementation is however not yet fully implemented due to
some improvements we are making to the underlying extension framework. I
will post a message as soon as we get this done.

Note: if you get the error 'The value of the property "keyExpr" is
required.', this usually indicates that a GROUP was created without
defining a group key.


Regards,

Rohit Colaço
ECE Project Lead


---

Subject: Chart Object
From: Hank.Birkdale@xxxxxxxxxxxx (Hank Birkdale)
Newsgroups: eclipse.birt
Organization: not organized
Date: Apr 14 2005 15:37:42

Is there any documentation on how to use the Chart object from within the
designer. Then's plenty of documentation on how to programmatically use
it, but not from within the designer. I'm trying to do what I thought was
a simple bar chart of the SFDATA test data showing the following from
"items":
Data X Series: row["itemcode"]
Data Y Series: Sum of row["quantity"]

Basically I just want to see the itemcode vs total bought. Yet when I try
and bind that I keep getting ERROR MESSAGE
Semantic errors in C:\eclipse\workspace\My Reports\charttest.rptdesign.
The value of the property "keyExpr" is required.
Previous Topic:How many records does preview fetch?
Next Topic:Installing the BIRT Viewer in Tomcat
Goto Forum:
  


Current Time: Sat Oct 18 18:14:35 EDT 2025

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

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

Back to the top