Problem with creating radar chart [message #890564] |
Fri, 22 June 2012 11:18  |
Eclipse User |
|
|
|
Hi there,
i'm trying to use a radarchart in my report. I pass a List<Double> to the Radar Value Definition (via a row of a dataset) and a List<String> to the Category Definition. When trying to run the report via the Preview within the designer, i get :
Caused by: java.lang.NullPointerException
at org.eclipse.birt.chart.examples.radar.render.Radar.getDsMinMax(Radar.java:176)
using the report engine integrated in my application i get:
Caused by: java.lang.NullPointerException
at org.eclipse.birt.chart.reportitem.ChartReportItemImpl.validate(ChartReportItemImpl.java:836)
(i'm using birt 3.7.0)
can anyone tell me, what i'm missing / doing wrong here? (or tell me what is that dsMinMax thing? is "ds" the dataSeries? the DataSet? I didn't find anything on google searching this
thx in advance,
hage
[Updated on: Fri, 22 June 2012 11:19] by Moderator
|
|
|
|
Re: Problem with creating radar chart [message #892176 is a reply to message #890602] |
Wed, 27 June 2012 05:59   |
Eclipse User |
|
|
|
after some debugging with the sources:
(ChartReportItemImpl.java, method valide(), lines 833-840)
SD: for ( SeriesDefinition vsd : ysds )
{
Series series = vsd.getDesignTimeSeries( );
if ( series.getDataDefinition( ).size( ) == 0 )
{
list.add( yException );
break SD;
}
(SeriesDefinitionImpl.java, lines 1076-1088)
public final Series getDesignTimeSeries( )
{
final EList el = getSeries( );
Series se;
for ( int i = 0; i < el.size( ); i++ )
{
se = (Series) el.get( i );
if ( se.getDataSet( ) == null )
{
return se;
}
}
return null;
(SeriesDefinitionImpl.java, lines 1076-1088)
the "getDesignTimeSeries()" mentioned above returns "null", because getSeries() returns an emtpy list here
The object "series" is described as:
The cached value of the '{@link #getSeries() <em>Series</em>}' containment reference list.
and never being set within the class.
So, this tells me, that i am missing something in my chart definition, right? Since i defined a series for x and y axis each, i don't know what i am missing here exactly. Any help appreciated.
[Updated on: Wed, 27 June 2012 06:08] by Moderator
|
|
|
Re: Problem with creating radar chart [message #892281 is a reply to message #892176] |
Wed, 27 June 2012 11:15  |
Eclipse User |
|
|
|
as it turns out, i was just missing some jars within my application. now it renders exactly the way i wanted it to.
edit: what disturbes me, is that i didn't get any ClassNotFoundExceptions or something like that. Just that NullPointer seems to be a little bit irritating
[Updated on: Fri, 29 June 2012 06:47] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03383 seconds