Welcome to the LimeSurvey Community Forum

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

Can I use pchart to display grahp in the END MESSAGE?

  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 2 months ago #103027 by mrli999
Can I use pchart to display grahp in the END MESSAGE?

If yes, what should I do? Fox example, if I get five scores(a,b,c,d,e) through Equation. I just want to draw a bar graph to show that five socres. The serial labels can be score one, score two, score three, score four,score five.


Thanks.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago - 10 years 2 months ago #103043 by DenisChenu
Hi,

Not directly, pchart is a PHP system.

But you can
- Use a JS system ( www.jqplot.com/ or www.highcharts.com/ or www.jscharts.com/ or ...)
- Do a plugin using 'afterSurveyComplete ' event

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 10 years 2 months ago by DenisChenu.
The following user(s) said Thank You: mrli999
The topic has been locked.
More
10 years 2 months ago #103045 by Ben_V

Use a JS system ( www.jqplot.com/ or www.highcharts.com/ or ...)


or... the very light and easy to use jscharts.com
.

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: mrli999
The topic has been locked.
  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 2 months ago #103052 by mrli999

DenisChenu wrote: Hi,

Not directly, pchart is a PHP system.

But you can
- Use a JS system ( www.jqplot.com/ or www.highcharts.com/ or www.jscharts.com/ or ...)
- Do a plugin using 'afterSurveyComplete ' event

Denis


thank you very much. I download jschart from it's website. Another question, which folder shoud I put jschart to?
The topic has been locked.
More
10 years 2 months ago #103058 by Ben_V

...which folder shoud I put jschart to?


your instalation "scripts" folder is probably the best place :)
Nevertheless, you can add your js file(s) wherever you want either in your "upload" directory or template folder
.

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: mrli999
The topic has been locked.
  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 2 months ago #103063 by mrli999

Ben_V wrote:

...which folder shoud I put jschart to?


your instalation "scripts" folder is probably the best place :)
Nevertheless, you can add your js file(s) wherever you want either in your "upload" directory or template folder
.


thank you very much!Success.
The topic has been locked.
  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 2 months ago #103065 by mrli999

Ben_V wrote:

...which folder shoud I put jschart to?


your instalation "scripts" folder is probably the best place :)
Nevertheless, you can add your js file(s) wherever you want either in your "upload" directory or template folder
.


sometimes when using java in the end message, limesurvey will add a unnessary span to the value. then I can't get the correct graph. please see my post www.limesurvey.org/en/forum/can-i-do-thi...-the-end-message-box

would you please let me know how to resolve this question? thank again.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #103108 by DenisChenu
Hi,

You can (it's an hack)
Do:
Code:
<div style="display:none>
<div id="mycode">{MYCODE}</mycode>
...
</div>
<script>
$(function() {
// Fill the js var
var mycode=$("#mycode").text();
}
</script>
Because if you use js: you only have to have a god js var.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
8 years 10 months ago #120475 by ordogz
Hi!

It's possible to insert charts to show the scores on the results page, after the user clicking the sumbit button ? Thank you
The topic has been locked.
More
8 years 10 months ago #120477 by Ben_V
"end message" is included on the "results page" ( {COMPLETED} placeholder replacement in completed.pstpl file )

As well you can add some javascript into assessments rules or assessment.pstpl file if assessment module is turned on for your survey...

So your question is already answered in this discussion (#103043)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
More
7 years 9 months ago #137644 by jcbonillapardo
Replied by jcbonillapardo on topic Can I use pchart to display grahp in the END MESSAGE?
Saludos Ben_V.

Deseo personalizar los gráficos estadísticos o crear nuevos con los resultados de una de mis encuestas y leí tu mensaje. Me puedes dar una ayuda de como hacerlo?

Gracias,

JULIO CESAR
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago #137648 by holch
Please do not use Spanish in the English forum responding to an English thread.
Por favor, no usar Español en una pregunta en Ingles en el foro en Ingles.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose