Home » Archived » BIRT » radar chart, highlighting only one radarline
radar chart, highlighting only one radarline [message #911357] |
Tue, 11 September 2012 08:46  |
Eclipse User |
|
|
|
Hi,
i'm still working on some radarchart issues. Currently i have a chart with 5 radarlines (1-5), my primary data is in range from 0 to 3 in normal cases. in exception it is 4 or 5. Charteditor gives me the possibility to format the radar lines. is it possible to format just one of them via script? i want something like a threshold within my chart at value 3, so radarline at 3 should be in a different colour (and bold). i already tried to implement an own series for this (constant value 3), but this leds to a polygon which is not really a circle (radarline). A similar problem is, how can i get the generated polygon of a series to be rendered as a filled circle in case that all values are equal (all values of one series are 2, so the area surrounded by the radarline of 2 should be filled, which results in a coloured circle)?
any help appreciated, thx in advance,
hage
|
|
| | |
Re: radar chart, highlighting only one radarline [message #911891 is a reply to message #911442] |
Wed, 12 September 2012 10:25   |
Eclipse User |
|
|
|
thx for your reply jason, but this is not what i intend to do. your code only changes the attributes of the line representing a data-series. i want to change the attributes of a single radarline (which represent a value on the "radar" itself). see the attached image, i want to change the attributes of the (black) line, representing the 3 (and that line only, not the attributes of lines representing 1,2 or 4). Currently its covered by my "threshold"-series, but that one is represented as a polygon, not as a circle like i want it to. Hope this points out what i want to do.
any help appreciated. thx in advance,
hage
[Updated on: Wed, 12 September 2012 10:33] by Moderator
|
|
| | | |
Re: radar chart, highlighting only one radarline [message #913003 is a reply to message #912806] |
Fri, 14 September 2012 11:20   |
Eclipse User |
|
|
|
i tried the following:
for(EObject eO : chart.eContents()){
RadarSeriesImpl webSeries = null;
if(object instanceof RadarSeriesImpl){
RadarSeriesImpl rs = (RadarSeriesImpl)object;
for(EObject eo1 : rs.eContents()){
if(eo1 instanceof LineAttributesImpl){
for(EObject eo2 : eo1.eContents()){
if(eo2 instanceof ColorDefinitionImpl){
ColorDefinitionImpl cdi = (ColorDefinitionImpl)eo2;
if(cdi.getRed() == 25 && cdi.getGreen() == 223 && cdi.getBlue() == 36){
webSeries = rs;
break;
}
}
}
if(webSeries != null){
break;
}
}
}
if(webSeries != null){
log(webSeries.getDisplayName());
log(webSeries.getLabel().getCaption().getValue());
log(webSeries.getCatLabel().getCaption().getValue());
log(webSeries.getWebLabel().getCaption().getValue());
}
}
is this the right approach? i coloured the weblines within the designer with a unique colour, so i can be sure while iterating all eObject that i found the weblines object when i get an LineAttribute child with the values from that condition. now i need to split that somehow, is that possible in any way.
(i already iterated over all children (webSeries.eAllContents) but that returns nothing that seems usefull to me)
(btw, none of the logged values are set but the display value, which always equals "Radar Series", all other values equals an emtpy string)
any help appreciated, regarding this approach or the one from above, using the 360 entries series, not displaying their orthogonal lines.
hage
[Updated on: Fri, 14 September 2012 11:22] by Moderator
|
|
| | | | |
Goto Forum:
Current Time: Sun May 11 02:38:37 EDT 2025
Powered by FUDForum. Page generated in 0.04446 seconds
|