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

More
3 years 6 months ago #103027 by mrli999
mrli999 created the topic: Can I use pchart to display grahp in the END MESSAGE?
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.

Please Log in to join the conversation.

More
3 years 6 months ago - 3 years 6 months ago #103043 by DenisChenu
DenisChenu replied the topic: Can I use pchart to display grahp in the END MESSAGE?
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 3 years 6 months ago by DenisChenu.
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
3 years 6 months ago #103045 by Ben_V
Ben_V replied the topic: Can I use pchart to display grahp in the END MESSAGE?

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

Please Log in to join the conversation.

More
3 years 6 months ago #103052 by mrli999
mrli999 replied the topic: Can I use pchart to display grahp in the END MESSAGE?

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?

Please Log in to join the conversation.

More
3 years 6 months ago #103058 by Ben_V
Ben_V replied the topic: Can I use pchart to display grahp in the END MESSAGE?

...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

Please Log in to join the conversation.

More
3 years 6 months ago #103063 by mrli999
mrli999 replied the topic: Can I use pchart to display grahp in the END MESSAGE?

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.

Please Log in to join the conversation.

More
3 years 6 months ago #103065 by mrli999
mrli999 replied the topic: Can I use pchart to display grahp in the END MESSAGE?

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.

Please Log in to join the conversation.

More
3 years 6 months ago #103108 by DenisChenu
DenisChenu replied the topic: Can I use pchart to display grahp in the END MESSAGE?
Hi,

You can (it's an hack)
Do:
<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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 years 2 months ago #120475 by ordogz
ordogz replied the topic: Can I use pchart to display grahp in the END MESSAGE?
Hi!

It's possible to insert charts to show the scores on the results page, after the user clicking the sumbit button ? Thank you

Please Log in to join the conversation.

More
2 years 2 months ago #120477 by Ben_V
Ben_V replied the topic: Can I use pchart to display grahp in the END MESSAGE?
"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)

Please Log in to join the conversation.

More
1 year 1 month ago #137644 by jcbonillapardo
jcbonillapardo replied the 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

Please Log in to join the conversation.

More
1 year 1 month ago #137648 by holch
holch replied the topic: Can I use pchart to display grahp in the END MESSAGE?
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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now