- Posts: 14
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Public Statistics
- maximum
- Topic Author
- Offline
- New Member
Less
More
9 years 1 month ago #117269
by maximum
Public Statistics was created by maximum
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:
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 .
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
9 years 1 month ago - 9 years 1 month ago #117281
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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
.
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: 9 years 1 month ago by tpartner.
The following user(s) said Thank You: maximum
The topic has been locked.
- maximum
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
9 years 1 month ago - 9 years 1 month ago #117301
by maximum
Replied by maximum on 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?
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: 9 years 1 month ago by maximum.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
9 years 1 month ago - 9 years 1 month ago #117314
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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:
2) Add this to the end of template.css:
1) You can force the images to scale but they may be blurred a bit. Add this to the end of template.css:
Code:
.statisticstable img { width: 95%; height: auto; }
2) Add this to the end of template.css:
Code:
.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: 9 years 1 month ago by tpartner.
The following user(s) said Thank You: maximum
The topic has been locked.
- maximum
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
9 years 1 month ago #117317
by maximum
Replied by maximum on 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.
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.
The topic has been locked.
- compuroad
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
5 years 10 months ago #168774
by compuroad
Replied by compuroad on 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?
Is it possible to configure the Public Statistics "On" by default in all surveys and questions?
The topic has been locked.