Page 1 of 1

Sorting crosstab series

Posted: Mon Nov 16, 2009 12:18 pm
by 10054213
Hi,
when using a crosstab database, the series-indexes usually are not sorted neither by name nor size.

Is there a way to create an orderly looking legend?

Best regards,
Steffen

Re: Sorting crosstab series

Posted: Mon Nov 16, 2009 3:52 pm
by yeray
Hi Steffen,

I can see three options:

- Use ExchangeSeries to reorder your series list so that the legend will be reordered too. The problem here is that probably the order you want the series to be drawn with is not the same than the order you want the series to be listed in the legend.

- Customize your legend with OnGetLegendText and legend symbol OnDraw events. Doing it that way, you'll be able to change the items in the legend one by one. Take a look at the demo at All features\Welcome !\Miscellaneous\Legend\Symbol OnDraw.

- Draw you text and symbols by custom drawing techniques. Here is an example.