Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Graph linked to equation

  • Giordo
  • Giordo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago - 3 years 4 months ago #207524 by Giordo
Graph linked to equation was created by Giordo
Hello, everyone.

I would like to build, for the survey I am working on, a graph linked to a limesurvey equation to show as the final output of the survey showing the respondent the score obtained in the questionnaire. The idea would be to build a speedometer from 0 to 199 (maximum value of the equation), with a "stick" indicating the exact value obtained by the respondent.

From what I've seen so far it seems that this can't be done in the final message of the survey (correct me if I'm wrong), but it seems it's possible to do it on a landing page by building the graph in php; what we don't get is how to transfer the value obtained by the respondent, calculated through the equation question, from the survey to this landing page.

Can anyone help us?
Last edit: 3 years 4 months ago by Giordo.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #207526 by Joffm
Replied by Joffm on topic Graph linked to equation
In the end-url that links to your page, add the equation code as parameter
.../mypage.php?p={eqCode}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago - 3 years 4 months ago #207528 by tpartner
Replied by tpartner on topic Graph linked to equation

From what I've seen so far it seems that this can't be done in the final message of the survey

Why not, there are many JavaScript charting libraries that could be used for this.

For example:

- developers.google.com/chart/interactive/docs/gallery/gauge

- www.highcharts.com/demo/gauge-speedometer

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 4 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose