Chart incomplete in PDF [message #780666] |
Wed, 18 January 2012 18:00  |
Eclipse User |
|
|
|
Hello Community
I have a problem with my BIRT, i'm working in a report to pdf who includes a chart, i'm using scripted datasource...
I have two dataset, one of them should fill the chart's information
I'm sure that both datasets contains information because i put this fields in other section in the report and works ok, show the correct information, but for the chart, i put one field to x-axis and another to y-axis, but only the x-axis are correctly filled, not sure what's the problem...
In 'view report' and 'preview' the chart works ok...
Can you please help me ??
Any ideas??
Thanks a lot!!
Attachment: inPDF.jpg
(Size: 13.24KB, Downloaded 277 times)
Attachment: inPreview.jpg
(Size: 20.77KB, Downloaded 270 times)
|
|
|
Re: Chart incomplete in PDF [message #780885 is a reply to message #780666] |
Thu, 19 January 2012 14:28   |
Eclipse User |
|
|
|
Can you post the design?
Jason
On 1/18/2012 6:00 PM, Leticia Simental wrote:
> Hello Community
>
> I have a problem with my BIRT, i'm working in a report to pdf who includes a chart, i'm using scripted datasource...
>
> I have two dataset, one of them should fill the chart's information
>
> I'm sure that both datasets contains information because i put this fields in other section in the report and works ok, show the correct information, but for the chart, i put one field to x-axis and another to y-axis, but only the x-axis are correctly filled, not sure what's the problem...
>
> In 'view report' and 'preview' the chart works ok...
>
> Can you please help me ??
>
> Any ideas??
>
> Thanks a lot!!
|
|
|
|
|
|
|
|
|
Re: Chart incomplete in PDF [message #798575 is a reply to message #789218] |
Tue, 14 February 2012 16:23   |
Eclipse User |
|
|
|
Hi Jason, it's me again
I finally can find my problem (is about datatypes), but can't fixed =(
The situation:
I have a dataset who is filled by a POJO
if(count < stock.size()){
row["puntuationChart"] = stock.get(count).getSectionPoint();
row["sectionChart"] = stock.get(count).getSectionName();
row["resultChart"] = stock.get(count).getSectionResults();
count++;
return true;
}
return false;
The column named 'puntuationChart' is the problem.... This column is type=Decimal, and I filled it with a POJO's property type = double, just like this example http: //www.vogella.de/articles/EclipseBIRT/article. html (I did the example and works fine).
The only difference between my project and the example project is that in Java i first have a String, then convert to double and then I set it to the POJO's property:
public List<Answer> getAnswerValues(String answerTot) {
String[] answersStr = answerTot.split(",");
List<Answer> answers = new ArrayList<Answer>();
for (int s = 0; s < answersStr.length; s++) {
Answer answer = new Answer();
double point = Double.parseDouble(answersStr[s]);
answer.setSectionPoint(point);
answers.add(answer);
}
return answers;
}
When I execute the proyect, get this warning:
Feb 14, 2012 3:10:30 PM org.eclipse.birt.chart.internal.datafeed.ResultSetWrapper initializeMeta
WARNING: Unable to determine data types from resultset
But this warning only is showing when the project is executed, when use the BIRT preview works fine
Could you please help me?
Attached the XML Design
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28075 seconds