can i show subquestion text in simple stats? Or preselect expert stats options?

Mehr
2 Monate 1 Woche her - 2 Monate 1 Woche her #172283 von mikebb
mikebb erstellte das Thema can i show subquestion text in simple stats? Or preselect expert stats options?
I'm new to limesurvey and struggling with 'one-click' statistics/summaries for our users.

1. Simple statistics repeats the Question title for each subquestion graph, but does not show the subquestion title. So its unclear which subquestion the graphs relate to. see the first screenshot below where each question has two subquestions - Q1 is array (5 point) and Q2 is array (with three answer options). So...
- Is there a way to show subquestion titles? or is this a bug (i would have thought they would always show).

2. Subquestion titles show in 'expert mode (second screenshot), but even then I can't get the graphs to show without the table data summaries. So...
- Can I show graphs without data tables?
- and is there a way to pre-select the expert stats shown so the user does not have to set the data selection and output options

I'm using LS 3.14.3+180809 - same behaviour on fresh installations on (a) debian 8 (php 5.6.8) and (b) xammp (windows, php 7.2)

Thanks for your help on this!

*** Simple stats screenshot:



*** Expert stats screenshot:

Anhang:
Letzte Änderung: 2 Monate 1 Woche her von mikebb. Begründung: typos

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 1 Woche her #172286 von mikebb
mikebb antwortete auf das Thema: can i show subquestion text in simple stats? Or preselect expert stats options?
I may have solved my own problem in a hacky kind of way...

I think the problem is in ‘simple statistics’ the subquestion graph heading show the parent question’s text when questions are arrays (eg type=’F’ in statistics_helper.php) even when subquestions have their own texts. So all the subquestion graphs will show the same (parent) heading – and the user can’t easily tell which subquestion they are for.
Also if an array sub-question’s parent does not any text then there is no title to any of those sub-quesiton graphs – so no indication of what they were for. Eek!

My solution is to hack the following row into statistics_helper.php:
/* AT LINE 1165 - before switch ($qtype) statement: */
$parent_title = $qtitle;
// ....
/* AT LINE 1459 - before return of buildOutputList()*/
if (in_array($qtype, ['A','C','F' ] )){ // for these question types - show parent and subquestion text 
	$qquestion = rtrim($qquestion, $linefeed);// trim the linefeed that's been added
	$qquestion .= ((trim($qquestion==''))? ucfirst($parent_title) : null) . ": " .$atext . $linefeed; 
}
 

For the selected question types, it now shows the parent question text followed by the subquesiton text. If there is no parent question text (ie if its blank) then it shows the parent question’s title. screenshot below.

I’ve associated this with types A,C,F - it may help with other multiple sub-quesiton types but I haven’t used any others yet so aren’t clear how they behave.

I wonder if something like this could be added to limesurvey – it would make simple statistics much more useful with sub-questions. And you will probably do a cleaner job than my hack and know what else this may break!

Cheers
Mike
Anhang:
Folgende Benutzer bedankten sich: LouisGac

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 1 Woche her #172289 von jelo
jelo antwortete auf das Thema: can i show subquestion text in simple stats? Or preselect expert stats options?
Feel free to open a feature request or bug report via the bug tracker. If you are used to GIT you can submit a pullrequest via github.com/LimeSurvey/LimeSurvey

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 1 Woche her #172295 von mikebb
mikebb antwortete auf das Thema: can i show subquestion text in simple stats? Or preselect expert stats options?
OK - I've raised a feature request here: bugs.limesurvey.org/view.php?id=13955
(tho am wondering if the simple stats code was ever finished...)
Folgende Benutzer bedankten sich: LouisGac

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha