View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
05602Bug reportsStatisticspublic2012-03-14 21:08
Reporteruser16754Assigned Tomagiclko 
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.92RC3 
Fixed in Version1.92RC4 
Summary05602: Graphs show wrong counts
Description

The pie charts produced and put into the PDF report show wrong count numbers albeit the percentages of the pie chart slices are correct. This happened in our case only when a larger number of answers were possible.

In the attached image the counts in the chart for answers 2, 4 and "No answer" are correct (values 44, 6, 2) but the counts for the answers 1, 3 and 5 are wrong (values 650, 881, 425).

Steps To Reproduce

create a survey with questions that allow for many options, enter a sufficient number of results and produce the PDF with the statistics on all fields.

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)11232
I will donate to the project if issue is resolvedNo
Browserfirefox
Database type & versionunknown
Server OS (if known)unknown
Webserver software & version (if known)unknown
PHP Versionunknown

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-12-30 10:25

administrator   ~16768

As you already noticed this is hard to reproduce. Please provide a database dump of such a issue. You can send it to carsten.schmitz@limesurvey.org . All data is treated confidentially, of course.

user17471

2012-01-26 10:26

  ~16982

Last edited: 2012-01-26 10:30

I can reproduce this error. It occurs only if showaggregateddata=1 is turned on.
I could also locate the source of the error:
In file statistics_function.php the counts in $row[0] are increased for question types 5 and A (5 Point Choice, Array (5 Point Choice)) at lines 2200-2225.
The first value gets 3results added, the 3rd 4results and the last 2*results.
Lateron these counts are directly used in the chart.

The problem also occurs for HTML output.

magiclko

magiclko

2012-02-02 22:47

reporter   ~17192

Fixed in rev 12318 in _dev and 12319 in _yii.

user16754

2012-02-03 15:40

  ~17209

Thank you very much to all three of you!

c_schmitz

c_schmitz

2012-02-14 14:10

administrator   ~17416

1.92RC4 released

Related Changesets

LimeSurvey: Yii fec4454c

2012-02-02 13:45:42

ssachdeva

Details Diff
Fixed issue 05602: Graphs show wrong counts

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12319 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05602
mod - application/helpers/admin/statistics_helper.php Diff File

Issue History

Date Modified Username Field Change
2011-11-25 14:56 user16754 New Issue
2011-11-25 14:56 user16754 File Added: limesurvey_statistics_pdf_bug.png
2011-11-25 14:57 user16754 Issue Monitored: user16754
2011-12-30 10:25 c_schmitz Note Added: 16768
2011-12-30 10:25 c_schmitz Assigned To => c_schmitz
2011-12-30 10:25 c_schmitz Status new => feedback
2012-01-26 10:26 user17471 Note Added: 16982
2012-01-26 10:27 user17471 Note Edited: 16982
2012-01-26 10:29 user17471 Issue Monitored: user17471
2012-01-26 10:30 user17471 Note Edited: 16982
2012-02-02 01:18 c_schmitz Status feedback => assigned
2012-02-02 17:22 c_schmitz Assigned To c_schmitz => magiclko
2012-02-02 22:47 magiclko Note Added: 17192
2012-02-02 22:47 magiclko Status assigned => resolved
2012-02-02 22:47 magiclko Resolution open => fixed
2012-02-03 15:40 user16754 Note Added: 17209
2012-02-06 14:33 c_schmitz Product Version => 1.92RC3
2012-02-06 14:33 c_schmitz Fixed in Version => 1.92RC4
2012-02-14 14:10 c_schmitz Note Added: 17416
2012-02-14 14:10 c_schmitz Status resolved => closed
2012-03-14 21:08 Changeset attached => Import 2012-03-09 13:30:34 Yii fec4454c