Skip to main content



      Home
Home » Archived » BIRT » mean chart question
mean chart question [message #166259] Thu, 01 June 2006 05:06 Go to next message
Eclipse UserFriend
What if... the number and names of series is unknown ??
David ?

Thomas.
Re: mean chart question [message #166399 is a reply to message #166259] Thu, 01 June 2006 07:56 Go to previous messageGo to next message
Eclipse UserFriend
Can you be more precise?

Thanks,

David

"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:d44f7d2982a9d49513241eb6d53e7bbd$1@www.eclipse.org...
> What if... the number and names of series is unknown ??
> David ?
>
> Thomas.
>
Re: mean chart question [message #166429 is a reply to message #166399] Thu, 01 June 2006 08:36 Go to previous messageGo to next message
Eclipse UserFriend
I mean :

The charts I set are based on known series from my dataset's columns. But
what if the number of fields in the resultset are unknown ?
For example, if the resultset is based on a GROUP BY style query.

It would be nice to define a "template" series to associate on all fields
from third field of the request (for example) ; taking the second field as
a name for the series... I don't know if this would be realistic, thought.

Any idea ?
Re: mean chart question [message #166460 is a reply to message #166429] Thu, 01 June 2006 09:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Thomas,

What do you mean by number of fields? number of rows, or number of columns?
If it's the number of columns, I don't know how it could be unknown in an
SQL query with GROUP BY, can you give me an example?

Thanks,

David

"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:f3332dab448cadfe8b2c5d0f5dd7c736$1@www.eclipse.org...
>I mean :
>
> The charts I set are based on known series from my dataset's columns. But
> what if the number of fields in the resultset are unknown ?
> For example, if the resultset is based on a GROUP BY style query.
>
> It would be nice to define a "template" series to associate on all fields
> from third field of the request (for example) ; taking the second field as
> a name for the series... I don't know if this would be realistic, thought.
>
> Any idea ?
>
Re: mean chart question [message #166500 is a reply to message #166460] Thu, 01 June 2006 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Hello David,

Yes, you're right, I meant "columns" by "fields". Let's consider that
SELECT * FROM MY_TABLE would do the trick, actually... I know that a data
model change would rarely occure, but it may in my case.

But I'm probably missing a point, as you mentionned, because my dataset
only has a dynamic number of columns BECAUSE I want to display several
series in my chart.
Is there another way to do it, as we cannot use several datasets, I guess ?

In my case, I'm collecting values set in time for several entities. So I
put the time on X axis and the values on Y, each entity having it's own
columns so to define the series.
But what if the number of entities raises up ?

Am I clear in this example ? My aim would to be to evolve easily with the
report if the model evolves. That may be hopeless.
Re: mean chart question [message #166569 is a reply to message #166500] Thu, 01 June 2006 11:29 Go to previous messageGo to next message
Eclipse UserFriend
Thomas,

With BIRT 2.1, you need to define column bindings on each report item,
including the chart. That doesn't leave any place for unknown columns. all
columns have to be defined with this binding, or you won't be able to use
them.

If your DB columns are subject to change it's probably a design issue with
the Database model.

So assuming you're running the chart engine as a standalone library outside
of BIRT, you could write some code to generate Series on the fly in your
chart model based on your columns from the resultset. That would work.

The question now is: are you using BIRT reports or Charts as a standlaone
library?

Thanks,

David

"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:f1980fa21de85e52cc8c0ca17d9f225a$1@www.eclipse.org...
> Hello David,
>
> Yes, you're right, I meant "columns" by "fields". Let's consider that
> SELECT * FROM MY_TABLE would do the trick, actually... I know that a data
> model change would rarely occure, but it may in my case.
>
> But I'm probably missing a point, as you mentionned, because my dataset
> only has a dynamic number of columns BECAUSE I want to display several
> series in my chart.
> Is there another way to do it, as we cannot use several datasets, I guess
> ?
>
> In my case, I'm collecting values set in time for several entities. So I
> put the time on X axis and the values on Y, each entity having it's own
> columns so to define the series.
> But what if the number of entities raises up ?
>
> Am I clear in this example ? My aim would to be to evolve easily with the
> report if the model evolves. That may be hopeless.
>
Re: mean chart question [message #166871 is a reply to message #166569] Fri, 02 June 2006 04:26 Go to previous message
Eclipse UserFriend
Thanks for your replies, David,

For the moment, I'm not using libraries, but planning to : I'm evaluating
BIRT for a quite heavy chart display web app, and several screens use the
same charts in combination with others (thus I'll need the library support
to code the charts only once).

Your xml report dynamic generating sounds like a VERY GOOD idea, actually
; and I'll recall this later if needed. I have to bypass my "owner file
coding" habits to take benefit of Open Source projects !
To others interested : see the recent thread about Excel translation with
XSL : that's great and hopefull to future issuers.
Previous Topic:Is it possible to generate reports in Excel Format
Next Topic:line chart customizing
Goto Forum:
  


Current Time: Sun Jul 27 07:52:14 EDT 2025

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

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

Back to the top