Skip to main content



      Home
Home » Archived » BIRT » Legend entries
Legend entries [message #222788] Wed, 07 March 2007 07:14 Go to next message
Eclipse UserFriend
Originally posted by: Ninja_Bunny.lycos.de

Hello!

I've a problem and it seems that I'm not able to solve it alone.

I've created a chart and want to group it by a value from the data set
called "Layer ID" but want to show the value "Layer Name" in the legend.
If I order by "Layer Name" the order is wrong, if I order by "Layer ID"
the legend shows -2 , -1, 0, 1 ...

I'm searching for a solution to say ' "sortBy(row["Layer ID"]);
legend.setText(row["Layer Name"]); '.

Does anyone of you have any suggestions?

Thank you!

Regards Nina
Re: Legend entries [message #223009 is a reply to message #222788] Wed, 07 March 2007 19:48 Go to previous message
Eclipse UserFriend
Nina,

The grouping in the chart itself cannot sort on another row. However you can
solve that issue by grouping in the sql query, as sql should allow you this
kind of grouping/sorting. Then you won't need to group in the chart, just
put one value series for each group.

Thanks,

David

"Nina" <Ninja_Bunny@lycos.de> wrote in message
news:b1b65733c0495e8f12d8cdd4c43ad87b$1@www.eclipse.org...
> Hello!
>
> I've a problem and it seems that I'm not able to solve it alone.
> I've created a chart and want to group it by a value from the data set
> called "Layer ID" but want to show the value "Layer Name" in the legend.
> If I order by "Layer Name" the order is wrong, if I order by "Layer ID"
> the legend shows -2 , -1, 0, 1 ...
> I'm searching for a solution to say ' "sortBy(row["Layer ID"]);
> legend.setText(row["Layer Name"]); '.
> Does anyone of you have any suggestions?
>
> Thank you!
>
> Regards Nina
>
Previous Topic:Difference Chart Area Color Error
Next Topic:unable to run chart example using birt 2.1.2
Goto Forum:
  


Current Time: Sun Nov 09 09:29:11 EST 2025

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

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

Back to the top