Public Statistics

More
3 years 10 months ago #117269 by maximum
maximum created the topic: Public Statistics
Hi, I can't get the questions in public statistics to display. I read the manual but the page that should explain how to set which questions should be included seems to be missing. Also, is the URL to access public statistics listed somewhere in the admin section? Can someone please help me with this?

From the manual:

Public statistics: Yes/No. Default No. If set to "Yes" users who have submitted the survey will be presented a link to statistics of the current survey. The admin can set which questions should be included at these statistics by applying the according question attribute .

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago - 3 years 10 months ago #117281 by tpartner
tpartner replied the topic: Public Statistics
1) In General settings -> Presentation & navigation, set "Public statistics?" to yes.

2) For every question you want to see in public stats, in the advanced settings, set "" to yes. Note that this will only be available for the certain question types - for example, text questions cannot be shown in public stats.

3) The URL for public stats will be (where 123456 is the survey ID) : path/to/LimeSurvey/index.php/statistics_user/action/surveyid/123456


.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 3 years 10 months ago by tpartner.
The following user(s) said Thank You: maximum

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago - 3 years 10 months ago #117301 by maximum
maximum replied the topic: Public Statistics
Thanks tpartner for the instructions. Points 1 and 2 work well but have issues with point 3 (public statistics URL).

The survey uses French and English. The base language is French.

I get "Bad Request Your request is invalid." when using: path/to/LimeSurvey/index.php/statistics_user/action/surveyid/123456

I get statistics in French when using:
path/to/LimeSurvey/index.php/statistics_user/action/surveyid/123456/language/
or
path/to/LimeSurvey/index.php/statistics_user/action/surveyid/123456/language/(anything)

How can I get a version in English?

Other issues in public statistics page:

Bar charts breaks, go way template width, Pie charts slightly over (template: Limespired)

Is there an easy way to remove the line "Field summary for ..." above each question?
Last Edit: 3 years 10 months ago by maximum.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago - 3 years 10 months ago #117314 by tpartner
tpartner replied the topic: Public Statistics
Ah, it seems that in multilingual surveys you need to add a language parameter to the URL and the stats are only available in the base language.

1) You can force the images to scale but they may be blurred a bit. Add this to the end of template.css:
.statisticstable img {
    width: 95%;
    height: auto;
}

2) Add this to the end of template.css:
.statisticstable thead tr:first-child {
    display: none;
}

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 3 years 10 months ago by tpartner.
The following user(s) said Thank You: maximum

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #117317 by maximum
maximum replied the topic: Public Statistics
Thanks again tpartner. Solutions 1 and 2 work great.

statistics can be output in both languages in the admin section. There should hopefully be a way to get public statistics in both languages as well.

Please Log in or Create an account to join the conversation.

More
6 months 4 weeks ago #168774 by compuroad
compuroad replied the topic: Public Statistics
Thanks again for your help. It works like a charm.

Is it possible to configure the Public statistics "On" by default in all surveys and questions?

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!