|
|
Re: specify position of dataEntry in radarchart [message #932913 is a reply to message #929696] |
Thu, 04 October 2012 15:06 |
hage Mising name Messages: 67 Registered: September 2011 |
Member |
|
|
Thx 4 the example Jason,
i allready sort my results in the java class that passes the result to the oda driver. My results look like this:
whith x.y being numbers like 1.0, 1.1, 1.2, 1.3, 1.11, 1.12,... which needs to be sorted the way i enlist them here ( 1.11 > 1.2 ). I wrote my own sorter to solve that, which is realized through an implementation of java.util.Comparator. Is there any possibilty to use that custom sorter instead of the predefined ones you can choose in the table sorting tab / chart data definition tab?
When i use one of the predefined table / chart sorters, (string descending) my dummy (label equals "") entries are sorted behind the real entries with first entry on position at 0 degrees (like i wanted it to), but this leads to 1.2 > 1.11 (and of course it's the wrong way, like 1.9 is enlisted before 1.8 (because it's descending, ascending puts the dummy entries in front, btw, which is absolutely logical but not what i wanted )
|
|
|
Re: specify position of dataEntry in radarchart [message #932995 is a reply to message #932913] |
Thu, 04 October 2012 16:35 |
|
Great question. When you use a sorting expression in BIRT, you can make the expression complex. Look at the sort tab on the attached example. Also note that you can call your own Java sorter from the expression as well:
importPackage(Packages.my.package)
var mySorter = new MySorter()
Just remember the sort expression gets called once for each value to be sorted.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03910 seconds