Welcome, Guest
Username: Password: Remember me

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

Can I use pchart to display grahp in the END MESSAGE? 7 months 3 weeks ago #103027

  • mrli999
  • mrli999's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 95
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.

Can I use pchart to display grahp in the END MESSAGE? 7 months 3 weeks ago #103043

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6272
  • Thank you received: 800
  • Karma: 240
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
Last Edit: 7 months 3 weeks ago by DenisChenu.
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

Can I use pchart to display grahp in the END MESSAGE? 7 months 3 weeks ago #103045

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1068
  • Thank you received: 235
  • Karma: 74
Use a JS system (www.jqplot.com/ or www.highcharts.com/ or ...)

or... the very light and easy to use jscharts.com
.
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

Can I use pchart to display grahp in the END MESSAGE? 7 months 3 weeks ago #103052

  • mrli999
  • mrli999's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 95
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.

Can I use pchart to display grahp in the END MESSAGE? 7 months 3 weeks ago #103058

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1068
  • Thank you received: 235
  • Karma: 74
...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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

Can I use pchart to display grahp in the END MESSAGE? 7 months 3 weeks ago #103063

  • mrli999
  • mrli999's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 95
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.

Can I use pchart to display grahp in the END MESSAGE? 7 months 3 weeks ago #103065

  • mrli999
  • mrli999's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 95
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.

Can I use pchart to display grahp in the END MESSAGE? 7 months 3 weeks ago #103108

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6272
  • Thank you received: 800
  • Karma: 240
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.133 seconds
Donation Image